Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.0.7.0
- * @ Author : DeZender
- * @ Release on : 22.06.2017
- * @ Official site : http://DeZender.Net
- *
- */
- if (!(file_exists( 'inc/db.ini.php' ))) {
- header( 'Location: installer.php' );
- exit( );
- }
- include 'inc/session.php';
- include 'inc/config.php';
- $show_white_label = 0;
- if (($_SESSION['PRODUCTNAME'] == 'MUMARAESP') && !($_SESSION['primary_admin'])) {
- $show_white_label = 1;
- }
- else {
- $app_type = 2;
- }
- echo "\r\n";
- include 'inc/template_start.php';
- include 'inc/page_head.php';
- echo "\r\n";
- if (file_exists( 'installer.php' ) || file_exists( 'install.php' )) {
- @unlink( 'installer.php' );
- @unlink( 'install.php' );
- 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" . ' ';
- exit( );
- }
- 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>';
- (isset( $_SESSION['white_label']['tag_line'] ) ? print( $_SESSION['white_label']['tag_line'] ) : 'Welcome');
- echo ' <strong>';
- print( ($_SESSION['full_name'] ? $_SESSION['full_name'] : 'Admin') );
- echo '</strong> </h1>' . "\r\n" . ' </div>' . "\r\n" . ' <!-- END Main Title -->' . "\r\n\r\n\t\t\t\t";
- $monthly_credits = show_monthly_limits_used( $_SESSION['account_id'] );
- if ($monthly_credits !== 0) {
- 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>';
- print( number_format( $monthly_credits['limit'] ) );
- 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>';
- print( number_format( $monthly_credits['used'] ) );
- 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>';
- print( number_format( $monthly_credits['limit'] - $monthly_credits['used'] ) );
- 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";
- }
- 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-';
- print( ($app_type == 1 ? 2 : 2) );
- 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";
- $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 ';
- if (!($_SESSION['primary_admin'])) {
- $q .= ' AND ( list.account_id_fk = \'' . $_SESSION['account_id'] . '\' OR entity_id = list_id ) ';
- }
- $r = mysql_query( $q );
- $row = mysql_fetch_row( $r );
- print( number_format( $row[0] ) );
- 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" . ' ';
- $show_widget = 1;
- $smtp_approved = false;
- if ($app_type == 1) {
- $smtp_approved = true;
- echo ' <div class="col-sm-6 col-lg-';
- print( ($app_type == 1 ? 2 : 2) );
- 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" . ' ';
- ++$show_widget;
- }
- echo ' ' . "\r\n" . ' <div class="col-sm-6 col-lg-';
- print( ($app_type == 1 ? 2 : 2) );
- 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";
- $q = 'select count(email_campaign_id) from email_campaign WHERE account_id_fk = \'' . $_SESSION['account_id'] . '\' ';
- $r = mysql_query( $q );
- $row = mysql_fetch_row( $r );
- print( number_format( $row[0] ) );
- 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" . ' ';
- ++$show_widget;
- ++$show_widget;
- 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";
- $q = 'select count(autoresponder_id) from autoresponder WHERE account_id_fk = \'' . $_SESSION['account_id'] . '\' ';
- $r = mysql_query( $q );
- $row = mysql_fetch_row( $r );
- print( number_format( $row[0] ) );
- 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" . ' ';
- if ($show_white_label) {
- ++$show_widget;
- 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";
- }
- if ($PRODUCTNAME == 'MUMARAESP') {
- if ($_SESSION['primary_admin']) {
- ..............................................................................................
- ............................................................
- ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement