NoPaste

index.php

von irgendwas

SNIPPET_TEXT:
  1. <?php
  2.  
  3. /************************************************************
  4.  * InfiniteWP Admin panel                                                                       *
  5.  * Copyright (c) 2012 Revmakx                                                           *
  6.  * www.revmakx.com                                                                                      *
  7.  *                                                                                                                      *
  8. ************************************************************/
  9.  
  10. include("includes/app.php");
  11. onBrowserLoad();
  12. initMenus();
  13.  
  14. if(function_exists('multiUserStatus')){
  15.    multiUserStatus();
  16. }else{
  17.    if(userStatus() != 'admin'){
  18.            userLogout();
  19.    }
  20. }
  21.  
  22. $mainJson = jsonEncoder(panelRequestManager::getSitesUpdates());
  23. $toolTipData = jsonEncoder(panelRequestManager::getUserHelp());
  24. $favourites =  jsonEncoder(panelRequestManager::getFavourites());
  25. $sitesData = jsonEncoder(panelRequestManager::getSites());
  26. $sitesListData = jsonEncoder(panelRequestManager::getSitesList());
  27. $groupData = jsonEncoder(panelRequestManager::getGroupsSites());
  28. $updateAvailable = jsonEncoder(checkUpdate(false, false));
  29. $updateAvailableNotify = jsonEncoder(panelRequestManager::isUpdateHideNotify());
  30. $totalSettings =  jsonEncoder(array("data"=>panelRequestManager::requiredData(array("getSettingsAll"=>1))));
  31. $fixedNotifications = jsonEncoder(getNotifications(true));
  32. $cronFrequency = jsonEncoder(getRealSystemCronRunningFrequency());
  33. $clientUpdatesAvailable=jsonEncoder(panelRequestManager::getClientUpdateAvailableSiteIDs());
  34. $purchasedAddons = jsonEncoder(Reg::get('purchasedAddons'));
  35. $allAddonsBought = jsonEncoder(Reg::get('addonDetails'));
  36. //$allAddonsBought = jsonEncoder(Reg::get('activeAddons'));
  37. //$allAddonsBought = jsonEncoder(Reg::get('allPurchasedAddonsNameAndSlug'));
  38.  
  39. $multiUserAllowAccess = jsonEncoder(panelRequestManager::requiredData(array("multiUserAllowAccess"=>1)));
  40.  
  41. //for notification center html
  42. $notifCenterData = jsonEncoder(panelRequestManager::requiredData(array("updateNotificationContent"=>1)));
  43. $favouritesGroupData = json_encode(panelRequestManager::getFavouritesGroups());
  44.  
  45. $isAddonSuiteMiniLimitExceeded = panelRequestManager::checkIsAddonSuiteMiniLimitExceeded();
  46. $isMiniExpired = panelRequestManager::checkIsMiniExpired();
  47. $addonSuiteMiniActivity = panelRequestManager::getAddonSuiteMiniActivity();
  48. $addonSuiteMiniLimit = panelRequestManager::getAddonSuiteMiniLimit();
  49. $IDToBeUpgradedFromMini = panelRequestManager::getIDToBeUpgradedFromMini();
  50. $IDForAddonSuite = panelRequestManager::getIDForAddonSuite();
  51. $priceForSuiteUpgradedFromMini = panelRequestManager::getPriceForSuiteUpgradedFromMini();
  52. $priceForAddonSuite = panelRequestManager::getPriceForAddonSuite();
  53. $addonSuiteOrMiniPurchasedDate = panelRequestManager::getAddonSuiteOrMiniPurchasedDate();
  54. $currentTimestamp = panelRequestManager::getCurrentTimestamp();
  55. $addonSuiteLimitExceededIllegally = jsonEncoder(Reg::get('addonSuiteLimitExceededIllegally'));
  56. $appRegisteredUser = getOption("appRegisteredUser");
  57. $completedInitialSetup = panelRequestManager::isInitialSetupCompleted();
  58.  
  59. ?>
  60. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  61. <html xmlns="//www.w3.org/1999/xhtml">
  62. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  63. <meta name="robots" content="noindex">
  64. <title>InfiniteWP</title>
  65. <link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,800italic,400,300,700,800' rel='stylesheet' type='text/css'>
  66. <link rel="stylesheet" href="css/select2.css?<?php echo APP_VERSION; ?>" type="text/css" />
  67. <link rel="stylesheet" href="css/core.css?<?php echo APP_VERSION; ?>" type="text/css" />
  68. <link rel="stylesheet" href="css/datepicker.css?<?php echo APP_VERSION; ?>" type="text/css" />
  69. <link rel="stylesheet" href="css/nanoscroller.css?<?php echo APP_VERSION; ?>" type="text/css" />
  70. <link rel="stylesheet" href="css/jPaginator.css?<?php echo APP_VERSION; ?>" type="text/css" media="screen"/>
  71. <link rel="stylesheet" href="css/jquery-ui.min.css?<?php echo APP_VERSION; ?>" type="text/css" media="all" />
  72. <link rel="stylesheet" href="css/jquery.qtip.css?<?php echo APP_VERSION; ?>" type="text/css" media="all" />
  73. <link rel="stylesheet" href="css/custom_checkbox.css?<?php echo APP_VERSION; ?>" type="text/css" media="all" />
  74. <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"/>
  75. <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
  76. <!--[if lt IE 9]>
  77.         <link rel="stylesheet" type="text/css" href="css/ie8nlr.css?<?php echo APP_VERSION; ?>" />
  78. <![endif]-->
  79. <script src="js/jquery.min.js?<?php echo APP_VERSION; ?>" type="text/javascript" charset="utf-8"></script>
  80. <script src="js/jquery-ui.min.js?<?php echo APP_VERSION; ?>" type="text/javascript"></script>
  81. <script src="js/ZeroClipboard.js?<?php echo APP_VERSION; ?>" type="text/javascript"></script>
  82. <script src="js/select2.min.js?<?php echo APP_VERSION; ?>" type="text/javascript"></script>
  83. <script src="js/fileuploader.js?<?php echo APP_VERSION; ?>" type="text/javascript"></script>
  84. <script src="js/apps.js?<?php echo APP_VERSION; ?>" type="text/javascript" charset="utf-8"></script>
  85. <script src="js/load.js?<?php echo APP_VERSION; ?>" type="text/javascript" charset="utf-8"></script>
  86. <script src="js/jPaginator-min.js?<?php echo APP_VERSION; ?>" type="text/javascript"></script>
  87. <script src="js/jquery.qtip.js?<?php echo APP_VERSION; ?>" type="text/javascript"></script>
  88. <script src="js/jquery.mousewheel.js?<?php echo APP_VERSION; ?>" type="text/javascript"></script>
  89. <script src="js/jquery.unveil.js?<?php echo APP_VERSION; ?>" type="text/javascript"></script>
  90.  
  91. var globalMessageFlagForMini=0;
  92. var permissions = <?php echo $multiUserAllowAccess; ?>;
  93. var systemURL = "<?php echo APP_URL;?>";
  94. var serviceURL = "<?php echo getOption('serviceURL');?>";
  95. $(document).ready(function(){
  96.     iwpCronInvitied = "<?php echo getOption('iwpCronInvited');?>";
  97.     var notifyUser = "<?php echo getOption('iwpCrontInvitedNotificationReq');?>";
  98.     if(iwpCronInvitied && notifyUser){
  99.        showIWPCronInviteDialog();
  100.         resetBottomToolbar();
  101.     }
  102. });
  103.  
  104. var appVersion = "<?php echo APP_VERSION; ?>";
  105. var appInstallHash = "<?php echo APP_INSTALL_HASH; ?>";
  106. var IP = "<?php echo $_SERVER['REMOTE_ADDR']; ?>";
  107. var APP_PHP_CRON_CMD = "<?php echo APP_PHP_CRON_CMD; ?>";
  108. var APP_ROOT = decodeURIComponent("<?php echo rawurlencode(APP_ROOT); ?>");
  109. var tempCronFrequency = "<?php echo $cronFrequency; ?>";
  110. if (tempCronFrequency == 0) {
  111.   var CRON_FREQUENCY = '<div class="rep_sprite_backup block_fail_icon">Server cron is not running.</div>' ;
  112. } else {
  113.   var CRON_FREQUENCY = '<div class="rep_sprite_backup block_success_icon">This cron is running every '+tempCronFrequency+' min</div>' ;
  114. }
  115. var GAHelpTracking = "<?php echo GA_HELP_TRACKING ?>";
  116. var supportURL = "<?php echo SUPPORT_URL ?>";
  117. var WPChangeLogURL = "<?php echo WP_CHANGELOG_URL?>";
  118. var WPPluginChangeLogURL = "<?php echo WP_PLUGIN_CHANGELOG_URL?>";
  119. var mainJson = <?php echo $mainJson?>;
  120. var sitesjson = mainJson.siteView;
  121. var pluginsjson = mainJson.pluginsView.plugins;
  122. var themesjson = mainJson.themesView.themes;
  123. var translationsjson=mainJson.translationsView.translations;
  124. var wpjson = mainJson.coreView.core;
  125. var toolTipData = <?php echo $toolTipData;?>;
  126. var favourites = <?php echo $favourites; ?>;
  127. var site = <?php echo  $sitesData;?>;
  128. var sitesList = <?php echo  $sitesListData;?>;
  129. var group = <?php echo  $groupData;?>;
  130. var favouritesGroupData = <?php echo $favouritesGroupData ?>;
  131. var totalSites = getPropertyCount(site);
  132. var totalGroups = getPropertyCount(group);
  133. var totalUpdates =  getPropertyCount(mainJson);
  134. var pluginsStatus,themesStatus;
  135. var updateAvailable   = <?php echo $updateAvailable;?>;
  136. var updateAvailableNotify=<?php echo $updateAvailableNotify;?>;
  137. var fixedNotifications = <?php echo $fixedNotifications;?>;
  138. var settingsData = <?php echo $totalSettings; ?>;
  139. var fromEmailDetails = "<?php echo getDefaultFromEmail(); ?>";
  140. var clientUpdatesAvailable=<?php echo $clientUpdatesAvailable;?>;
  141. settingsData['data']['getSettingsAll']['settings']['timeZone'] = '';
  142. var forcedAjaxInterval = <?php echo FORCED_AJAX_CALL_MIN_INTERVAL; ?>
  143. var completedInitialSetup = <?php echo $completedInitialSetup; ?>;
  144. var isShowBetaWelcome ="<?php echo isShowBetaWelcome();?>"
  145. var isShow2_7AddonUpdatePopup ="<?php echo isShow2_7AddonUpdatePopup();?>"
  146. //notification center JS object
  147. var notifCenterAllData = {};
  148. notifCenterAllData['data'] = {};
  149. notifCenterAllData['data'] = <?php echo $notifCenterData;?>;
  150. var isDisabled2FA = <?php echo (defined('DISABLE_2FA'))?1:0; ?>;
  151. var isHTTPSDefined = <?php echo $GLOBALS['isHTTPSDefined']; ?>;
  152. var currentUserAccessLevel = "<?php echo userStatus(); ?>";
  153. var isDirectFS = "<?php echo getOption('isDirectFS');  ?>"
  154. var isAddonSuiteMiniLimitExceeded = parseInt("<?php echo($isAddonSuiteMiniLimitExceeded); ?>");
  155. var addonSuiteMiniActivity = "<?php echo($addonSuiteMiniActivity); ?>";
  156. var addonSuiteMiniLimit = parseInt("<?php echo($addonSuiteMiniLimit); ?>");
  157. var addonSuiteLimitExceededIllegally = parseInt("<?php echo($addonSuiteLimitExceededIllegally); ?>");
  158. var isAddonSuiteLimitExceededAttempt = 0;
  159. var IDToBeUpgradedFromMini = parseInt("<?php echo($IDToBeUpgradedFromMini); ?>");
  160. var IDForAddonSuite = parseInt("<?php echo($IDForAddonSuite); ?>");
  161. var isMiniExpired = parseInt("<?php echo($isMiniExpired); ?>");
  162. var isConfigWritable=<?php echo isConfigWritable(); ?>;
  163. var isFSMethodDefined=<?php echo defined('FS_METHOD')?1 :0; ?>;
  164. var priceForSuiteUpgradedFromMini = parseInt("<?php echo($priceForSuiteUpgradedFromMini); ?>");
  165. var priceForAddonSuite = parseInt("<?php echo($priceForAddonSuite); ?>");
  166. var addonSuiteOrMiniPurchasedDate = parseInt("<?php echo($addonSuiteOrMiniPurchasedDate); ?>");
  167. var currentTimestamp = parseInt("<?php echo($currentTimestamp); ?>");
  168. var appRegisteredUser = "<?php echo($appRegisteredUser); ?>";
  169. var IWPSiteURL = "<?php echo(IWP_SITE_URL); ?>";
  170. var googleSettings='';
  171. var cpBrandingSettings='';
  172. var uptimeMonitoringSettings='';
  173. var googleAnalyticsAccess='';
  174. var googleWebMastersAccess='';
  175. var googlePageSpeedAccess='';
  176. var scheduledBackupSettings = '';
  177. var purchasedAddonsGlobal = <?php echo $allAddonsBought; ?>;
  178. var markBottomLines = <?php echo jsonEncoder(json_decode(getOption('markBottomLines'), true)); ?>;// jsonEncoder(json_decode()) this will help empty content to hv null data
  179. var threeSitesTweetStatus = '<?php if(!getOption("tweet_status_three_sites")){ echo "no"; }else{ echo getOption("tweet_status_three_sites"); } ?>';  //storing global variable for displaying tweet
  180. var updateAllTweetStatus = '<?php if(!getOption("tweet_status_update_all")){ echo "no"; }else{ echo getOption("tweet_status_update_all"); } ?>';
  181.  
  182. <?php echo getAddonHeadJS(); ?>
  183. <?php if(!empty($_REQUEST['page'])) {?>
  184.         reloadStatsControl=0;
  185. <?php } ?>
  186.  
  187. <script type="text/javascript" src="js/init.js?<?php echo APP_VERSION; ?>" charset="utf-8"></script>
  188. <script type="text/javascript" src="js/jquery.nanoscroller.min.js?<?php echo APP_VERSION; ?>"></script>
  189. <script type="text/javascript" src="js/datepicker.js?<?php echo APP_VERSION; ?>"></script>
  190. <script type="text/javascript" src="js/eye.js?<?php echo APP_VERSION; ?>"></script>
  191. <script type="text/javascript" src="js/utils.js?<?php echo APP_VERSION; ?>"></script>
  192. <script type="text/javascript" src="js/layout.js?<?php echo APP_VERSION; ?>"></script>
  193.  
  194. <?php if(userStatus() != 'admin'){ ?>
  195. $(function () {
  196.         $(".settingsButtons").click();
  197. });
  198. <?php } ?>
  199. <!-- addon ext src starts here -->
  200. <?php
  201. if($addonSuiteLimitExceededIllegally==0) echo getAddonsHTMLHead();
  202. ?>
  203. <?php if(!empty($_REQUEST['page']))
  204. { ?>
  205.         <script>
  206.     $(function () {
  207.         reloadStatsControl=0;
  208.         <?php if($_REQUEST['page']=="addons") ?>
  209.             $("#iwpAddonsBtn").click();        
  210.         processPage("<?php echo $_REQUEST['page'];?>");
  211.    
  212.     });
  213.     </script>
  214. <?php } ?>
  215. @media only screen and (max-width : 1360px) {
  216. ul#header_nav li.resp_hdr_logout { display:inline; }
  217. #header_bar a.logout { display:none;}
  218. }
  219. </head>
  220. <div class="notification_cont"></div>
  221. <div id="fb-root"></div>
  222. <div id="updateOverLay" style='display:none;-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; background-color:#000; opacity:0.7;position:fixed;top: 0;left: 0;width: 100%;height: 100%; z-index:1020'></div>
  223. <div id="loadingDiv" style="display:none">Loading...</div>
  224. <div id="modalDiv"></div>
  225.  
  226. <!--<div class="overlay_test"></div>-->
  227. <div id="dynamic_resize">
  228. <div id="header_bar"> <div class="header_container"><a href="<?php echo APP_URL; ?>" style="text-decoration:none;">
  229.     <div id="logo"></div></a>
  230.     <div id="admin_panel_label">Admin Panel v<?php echo APP_VERSION; ?></div>
  231.    
  232.     <a class="float-left fb_icon_hdr" href="//www.facebook.com/infinitewp" target="_blank"></a><a class="float-left twitter_icon_hdr" href="//twitter.com/infinitewp" target="_blank"></a>
  233.     <ul id="header_nav">
  234.       <!--<li><a href="">Suggest an Idea</a></li>-->
  235.       <li class="notif_wrap" style="margin-right:16px; position:relative;"> <a class="notif_btn" style="display:none" ><i class="fa fa-bell-o"></i></a> <span class="notif_count" style="display:none" > </span>
  236.         <div class="notification_centre_cont" style= "display:none">
  237.           <div style="">
  238.             <ul class="notif_data_list">
  239.             </ul>
  240.             <div class="weekly_deal_cont cf">
  241.             </div>
  242.           </div>
  243.         </div>
  244.       </li>
  245.       <?php if(userStatus() == 'admin'){ ?><li class="restrictCronToggle"><a class="updates_centre first-level" id="updateCentreBtn">IWP Update Centre<span id="updateCenterCount" style="display:none" class="count">1</span></a>
  246.        
  247.         <div id="updates_centre_cont" style="display:none">
  248.                    
  249.           <div class="th rep_sprite" style="border-top: 1px solid #C1C4C6; height: 38px; border-bottom: 0;">
  250.             <div class="btn_action float-right"><a class="rep_sprite updateActionBtn">Check Now</a></div>
  251.            
  252.           </div>
  253.         </div>
  254.       </li>
  255.        <li><a class="first-level" id="iwpAddonsBtn">Addons <span class="count" style="<?php if(($addonUpdate = getAddonAlertCount()) < 1){ ?>display:none;<?php } ?>"><?php echo $addonUpdate; ?></span></a></li><?php } ?>
  256.        <li><a class="first-level" href="https://support.infinitewp.com/support/discussions/forums/290737?utm_source=application&utm_medium=userapp&utm_campaign=ideas" target="_blank">Got an idea?</a></li>
  257.       <li class="help"><a class="first-level">Help <span style="font-size:7px;"></span></a>
  258.         <ul class="sub_menu_ul">
  259.                   <?php /* <li><a href="https://support.infinitewp.com/?utm_source=application&utm_medium=userapp&utm_campaign=support" target="_blank">Discussion Forum</a></li> */ ?>
  260.             <li><a href="javascript:loadReport('',1)">Report Issue</a></li>
  261. <!--             <li><a class="takeTour">Take the tour</a></li> -->
  262.         </ul>
  263.       </li>
  264.       <li class="user_mail"><a id="user_email_acc" style="color:#e9e9e9;"><?php echo $GLOBALS['email']; ?> </a><li>
  265.       <li class="settings" title="Settings" id="mainSettings">
  266.         <a id="settings_btn">Settings</a>
  267.       </li>
  268.           <li class="resp_hdr_logout"><a class="first-level" href="login.php?logout=now">Logout</a></li>
  269.     </ul>
  270.     <div class="clear-both"></div></div><a href="login.php?logout=now" class="logout">Logout</a>
  271.   </div>
  272. <div id="site_cont">
  273.  
  274.   <div id="main_cont">
  275.    
  276.     <ul class="site_nav">
  277.         <?php printMenus(); ?>
  278.     </ul>
  279.    
  280.     <div class="btn_reload rep_sprite float-right"><a class="rep_sprite_backup user_select_no" id="reloadStats">Reload Data</a></div>
  281.         <div class="checkbox user_select_no" style="float:right; width:70px; cursor:pointer;" id="clearPluginCache">Clear cache</div>
  282.     <div id="lastReloadTime"></div>
  283.     <ul class="site_nav single_nav float-left"><li class="l1 navLinks" page="history"><a>Activity Log</a></li></ul>
  284.     <div class="clear-both"></div>
  285.     <hr class="dotted" />
  286.     <div class="page_section_title">UPDATES</div>
  287.     <div id="pageContent">
  288.       <div class="empty_data_set welcome">
  289.         <div class="line1">Hey there. Welcome to InfiniteWP.</div>
  290.         <div class="line2">Lets now manage WordPress, the IWP way!</div>
  291.         <div class="line3">
  292.           <div class="welcome_arrow"></div>
  293.           Add a WordPress site to IWP.<br />
  294.           <span style="font-size:12px">(Before adding the website please install and activate InfiniteWP Client Plugin in your WordPress site)</span> </div>
  295.         <a href="//www.youtube.com/watch?v=q94w5Vlpwog" target="_blank">See How</a>. </div>
  296.     </div>
  297.   </div>
  298. </div>
  299. </div>
  300. <div id="bottom_toolbar" class="siteSearch">
  301.   <div id="activityPopup"> </div>
  302. </div>
  303. <script type="text/javascript" language="javascript">
  304.         jQuery(document).ready(function() {
  305.                 if(!isNaN(addonSuiteLimitExceededIllegally) && addonSuiteLimitExceededIllegally==1) {
  306.                         globalMessageFlagForMini=1;
  307.                         addonSuiteMiniLimitExceeded('addonSuiteLimitExceededIllegally');
  308.                 }
  309.         });
  310. !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
  311.  
  312.  (function() {
  313.     var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
  314.     po.src = '//apis.google.com/js/plusone.js';
  315.     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  316.  
  317. })();
  318.         //to display notification center content
  319.         processUpdateNotificationContent(notifCenterAllData);  
  320. </body>
  321. </html>

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN