Advertisement
Guest User

Untitled

a guest
Aug 9th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.08 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.7.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.06.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. if (!(file_exists( 'inc/db.ini.php' ))) {
  15. header( 'Location: installer.php' );
  16. exit( );
  17. }
  18.  
  19. include 'inc/session.php';
  20. include 'inc/config.php';
  21. $show_white_label = 0;
  22.  
  23. if (($_SESSION['PRODUCTNAME'] == 'MUMARAESP') && !($_SESSION['primary_admin'])) {
  24. $show_white_label = 1;
  25. }
  26. else {
  27. $app_type = 2;
  28. }
  29.  
  30. echo "\r\n";
  31. include 'inc/template_start.php';
  32. include 'inc/page_head.php';
  33. echo "\r\n";
  34. if (file_exists( 'installer.php' ) || file_exists( 'install.php' )) {
  35. @unlink( 'installer.php' );
  36. @unlink( 'install.php' );
  37. echo ' <div id="error-container">' . "\r\n" . ' ' . "\r\n" . ' <div class="row">' . "\r\n" . ' <div class="col-sm-8 col-sm-offset-2 text-center">' . "\r\n" . ' <h1 class="animation-fadeIn"><i class="fa fa-times-circle-o text-muted"></i></h1>' . "\r\n" . ' <h2 class="h3">Remove installer.php and install.php to continue..</h2>' . "\r\n" . ' </div>' . "\r\n" . ' ' . "\r\n" . ' </div>' . "\r\n" . ' </div>' . "\r\n" . ' ';
  38. exit( );
  39. }
  40.  
  41. echo '<!-- Page content -->' . "\r\n" . '<div id="page-content">' . "\r\n" . ' <!-- Dashboard Header -->' . "\r\n" . ' <!-- For an image header add the class \'content-header-media\' and an image as in the following example -->' . "\r\n" . ' <div class="content-header content-header-media">' . "\r\n" . ' <div class="header-section">' . "\r\n" . ' <div class="row">' . "\r\n" . ' <!-- Main Title (hidden on small devices for the statistics to fit) -->' . "\r\n" . ' <div class="col-md-8 col-lg-9 hidden-xs hidden-sm">' . "\r\n" . ' <h1>';
  42. (isset( $_SESSION['white_label']['tag_line'] ) ? print( $_SESSION['white_label']['tag_line'] ) : 'Welcome');
  43. echo ' <strong>';
  44. print( ($_SESSION['full_name'] ? $_SESSION['full_name'] : 'Admin') );
  45. echo '</strong> </h1>' . "\r\n" . ' </div>' . "\r\n" . ' <!-- END Main Title -->' . "\r\n\r\n\t\t\t\t";
  46. $monthly_credits = show_monthly_limits_used( $_SESSION['account_id'] );
  47.  
  48. if ($monthly_credits !== 0) {
  49. echo ' <!-- Top Stats -->' . "\r\n" . ' <div class="col-md-2 col-lg-3">' . "\r\n" . ' <div class="row text-right">' . "\r\n" . ' ' . "\r\n" . ' <div class="col-xs-6">' . "\r\n" . ' <h2 class="animation-hatch">' . "\r\n" . ' <strong>';
  50. print( number_format( $monthly_credits['limit'] ) );
  51. echo '</strong><br>' . "\r\n" . ' <small> Total Credits </small>' . "\r\n" . ' </h2>' . "\r\n" . ' </div>' . "\r\n" . ' <!-- We hide the last stat to fit the other 3 on small devices -->' . "\r\n" . ' <div class="col-sm-6 hidden-xs">' . "\r\n" . ' <h2 class="animation-hatch">' . "\r\n" . ' <strong>';
  52. print( number_format( $monthly_credits['used'] ) );
  53. echo '</strong><br>' . "\r\n" . ' <small> Used Credits </small>' . "\r\n" . ' </h2>' . "\r\n" . ' </div>' . "\r\n" . ' <div class="col-sm-6 hidden-xs">' . "\r\n" . ' <h2 class="animation-hatch">' . "\r\n" . ' <strong>';
  54. print( number_format( $monthly_credits['limit'] - $monthly_credits['used'] ) );
  55. echo '</strong><br>' . "\r\n" . ' <small> Remaining Credits</small>' . "\r\n" . ' </h2>' . "\r\n" . ' </div>' . "\r\n" . ' </div>' . "\r\n" . ' </div>' . "\r\n\t\t\t\t";
  56. }
  57.  
  58. echo ' <!-- END Top Stats -->' . "\r\n\t\t\t\t\r\n" . ' </div>' . "\r\n" . ' </div>' . "\r\n" . ' <!-- For best results use an image with a resolution of 2560x248 pixels (You can also use a blurred image with ratio 10:1 - eg: 1000x100 pixels - it will adjust and look great!) -->' . "\r\n" . ' <!-- <img src="img/placeholders/headers/dashboard_header.jpg" alt="header image" class="animation-pulseSlow"> -->' . "\r\n" . ' </div>' . "\r\n" . ' <!-- END Dashboard Header -->' . "\r\n\r\n\t" . '<div class="row">' . "\r\n" . ' <div class="col-sm-6 col-lg-';
  59. print( ($app_type == 1 ? 2 : 2) );
  60. echo '">' . "\r\n" . ' <!-- Widget -->' . "\r\n" . ' <div class="widget">' . "\r\n" . ' <div class="widget-simple">' . "\r\n" . ' <a href="view_lists.php" class="widget-icon pull-left themed-background-flatie animation-fadeIn">' . "\r\n" . ' <i class="gi gi-notes_2"></i>' . "\r\n" . ' </a>' . "\r\n\t\t\t\t\t\r\n" . ' <h3 class="widget-content text-right animation-stretchRight">' . "\r\n" . ' <strong>' . "\r\n\t\t\t\t\t\t";
  61. $q = 'select count(list_id) from list ' . "\r\n\t\t\t\t\t\t\t" . 'LEFT JOIN user_account as list_owner on account_id_fk = list_owner.user_account_id' . "\r\n" . ' ' . "\t\t\t\t\t\t\t" . 'LEFT JOIN user_role_access ON user_role_access.user_role_id_fk = \'' . $_SESSION['user_role_id_fk'] . '\' AND entity_type = \'list\' AND entity_id = list_id ' . "\r\n\t\t\t\t\t\t\t" . 'WHERE true ';
  62.  
  63. if (!($_SESSION['primary_admin'])) {
  64. $q .= ' AND ( list.account_id_fk = \'' . $_SESSION['account_id'] . '\' OR entity_id = list_id ) ';
  65. }
  66.  
  67. $r = mysql_query( $q );
  68. $row = mysql_fetch_row( $r );
  69. print( number_format( $row[0] ) );
  70. echo "\t\t\t\t\t\t\r\n\t\t\t\t\t\t" . '</strong><br>' . "\r\n" . ' ' . "\t" . '<small>Contact Lists</small>' . "\r\n" . ' </h3>' . "\r\n" . ' </div>' . "\r\n" . ' </div>' . "\r\n" . ' <!-- END Widget -->' . "\r\n" . ' </div>' . "\r\n" . ' ';
  71. $show_widget = 1;
  72. $smtp_approved = false;
  73.  
  74. if ($app_type == 1) {
  75. $smtp_approved = true;
  76. echo ' <div class="col-sm-6 col-lg-';
  77. print( ($app_type == 1 ? 2 : 2) );
  78. echo '">' . "\r\n" . ' <!-- Widget -->' . "\r\n" . ' <div class="widget">' . "\r\n" . ' <div class="widget-simple">' . "\r\n" . ' <a href="view_campaign.php" class="widget-icon pull-left themed-background-modern animation-fadeIn">' . "\r\n" . ' <i class="fa fa-envelope"></i>' . "\r\n" . ' </a>' . "\r\n" . ' <h3 class="widget-content text-right animation-stretchRight">' . "\r\n" . ' <strong>' . "\r\n" . ' ' . "\t\t" . ' <a href="#import-contacts" data-toggle="modal" >Import </a>' . "\t\t\t\r\n" . ' </strong> ' . "\r\n" . ' <small>Contacts</small>' . "\r\n" . ' </h3>' . "\r\n" . ' </div>' . "\r\n" . ' </div>' . "\r\n" . ' <!-- END Widget -->' . "\r\n" . ' </div> ' . "\r\n" . ' ';
  79. ++$show_widget;
  80. }
  81.  
  82. echo ' ' . "\r\n" . ' <div class="col-sm-6 col-lg-';
  83. print( ($app_type == 1 ? 2 : 2) );
  84. echo '">' . "\r\n" . ' <!-- Widget -->' . "\r\n" . ' <div class="widget">' . "\r\n" . ' <div class="widget-simple">' . "\r\n" . ' <a href="view_campaign.php" class="widget-icon pull-left themed-background-fire animation-fadeIn">' . "\r\n" . ' <i class="fa fa-exchange"></i>' . "\r\n" . ' </a>' . "\r\n" . ' <h3 class="widget-content text-right animation-stretchRight">' . "\r\n" . ' <strong>' . "\r\n\t\t\t\t\t\t";
  85. $q = 'select count(email_campaign_id) from email_campaign WHERE account_id_fk = \'' . $_SESSION['account_id'] . '\' ';
  86. $r = mysql_query( $q );
  87. $row = mysql_fetch_row( $r );
  88. print( number_format( $row[0] ) );
  89. echo "\t\t\t\t\t\t\r\n\t\t\t\t\t\t" . '</strong><br>' . "\r\n" . ' <small>Email Campaigns</small>' . "\r\n" . ' </h3>' . "\r\n" . ' </div>' . "\r\n" . ' </div>' . "\r\n" . ' <!-- END Widget -->' . "\r\n" . ' </div>' . "\r\n\r\n" . ' ';
  90. ++$show_widget;
  91. ++$show_widget;
  92. echo "\t\t" . '<div class="col-sm-6 col-lg-2">' . "\r\n" . ' <!-- Widget -->' . "\r\n" . ' <div class="widget">' . "\r\n" . ' <div class="widget-simple">' . "\r\n" . ' <a href="view_autoresponders.php" class="widget-icon pull-left themed-background-fancy animation-fadeIn">' . "\r\n" . ' <i class="fa fa-bullhorn"></i>' . "\r\n" . ' </a>' . "\r\n" . ' <h3 class="widget-content text-right animation-stretchRight">' . "\r\n\t\t\t\t\t\t" . '<strong>' . "\r\n\t\t\t\t\t\t";
  93. $q = 'select count(autoresponder_id) from autoresponder WHERE account_id_fk = \'' . $_SESSION['account_id'] . '\' ';
  94. $r = mysql_query( $q );
  95. $row = mysql_fetch_row( $r );
  96. print( number_format( $row[0] ) );
  97. echo "\t\t\t\t\t\t\r\n\t\t\t\t\t\t" . '</strong><br />' . "\r\n" . ' <small>Auto-Responder(s)</small>' . "\r\n" . ' </h3>' . "\r\n" . ' </div>' . "\r\n" . ' </div>' . "\r\n" . ' <!-- END Widget -->' . "\r\n" . ' </div>' . "\r\n" . ' ';
  98.  
  99. if ($show_white_label) {
  100. ++$show_widget;
  101. echo "\t\t\t\t\t\r\n\t\t\t\t\t" . '<div class="col-sm-6 col-lg-2">' . "\r\n\t\t\t\t\t\t" . '<!-- Widget -->' . "\r\n\t\t\t\t\t\t" . '<div class="widget">' . "\r\n\t\t\t\t\t\t\t" . '<div class="widget-simple">' . "\r\n\t\t\t\t\t\t\t\t" . '<a href="view_trigger.php" class="widget-icon pull-left themed-background-amethyst animation-fadeIn">' . "\r\n\t\t\t\t\t\t\t\t\t" . '<i class="fa fa-user"></i>' . "\r\n\t\t\t\t\t\t\t\t" . '</a>' . "\r\n\t\t\t\t\t\t\t\t" . '<h3 class="widget-content text-right animation-stretchRight">' . "\r\n\t\t\t\t\t\t\t\t\t" . '<strong><a href="new_sender_info.php" > Add Sender </a></strong> ' . "\r\n" . ' <small>Information</small>' . "\r\n\t\t\t\t\t\t\t\t" . '</h3>' . "\r\n\t\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\t" . '<!-- END Widget -->' . "\r\n\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t";
  102. }
  103.  
  104. if ($PRODUCTNAME == 'MUMARAESP') {
  105. if ($_SESSION['primary_admin']) {
  106. ..............................................................................................
  107. ............................................................
  108. ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement