本文整理汇总了PHP中phpAds_MaintenanceSelection函数的典型用法代码示例。如果您正苦于以下问题:PHP phpAds_MaintenanceSelection函数的具体用法?PHP phpAds_MaintenanceSelection怎么用?PHP phpAds_MaintenanceSelection使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了phpAds_MaintenanceSelection函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: phpAds_PageHeader
| License: GPLv2 or later, see the LICENSE.txt file. |
+---------------------------------------------------------------------------+
*/
// Require the initialisation file
require_once '../../init.php';
// Required files
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/www/admin/lib-maintenance.inc.php';
require_once MAX_PATH . '/lib/OA/Sync.php';
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN);
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageHeader("updates-index");
phpAds_MaintenanceSelection("product", "updates");
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
// Determine environment
$doApplicationVariable = OA_Dal::factoryDO('application_variable');
$doApplicationVariable->name = 'oa_version';
$doApplicationVariable->find();
$doApplicationVariable->fetch();
$current = $strCurrentlyUsing . ' ' . MAX_PRODUCT_NAME . ' v' . OA_VERSION . ' ' . ($doApplicationVariable->value != OA_VERSION ? '(warning: database is stamped as v' . $doApplicationVariable->value . ') ' : '');
$current .= $strRunningOn . ' ' . str_replace('/', ' ', ereg_replace(" .*\$", '', $_SERVER["SERVER_SOFTWARE"])) . ', ';
$current .= 'PHP ' . phpversion() . ' ' . $strAndPlain . ' ' . phpAds_dbmsname;
// Get the database version number.
$connection = DBC::getCurrentConnection();
$connectionId = $connection->getConnectionId();
$aVersion = $connectionId->getServerVersion();
示例2: phpAds_checkAccess
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
// Include required files
require "config.php";
require "lib-maintenance.inc.php";
require "lib-statistics.inc.php";
require "lib-zones.inc.php";
// Security check
phpAds_checkAccess(phpAds_Admin);
/*********************************************************/
/* HTML framework */
/*********************************************************/
phpAds_PageHeader("5.3");
phpAds_ShowSections(array("5.1", "5.3", "5.4", "5.2"));
phpAds_MaintenanceSelection("storage");
/*********************************************************/
/* Main code */
/*********************************************************/
echo "<br>";
echo $strStorageExplaination;
echo "<br><br>";
phpAds_ShowBreak();
echo "<img src='images/" . $phpAds_TextDirection . "/icon-undo.gif' border='0' align='absmiddle'> <a href='maintenance-storage-move.php'>{$strMoveToDirectory}</a> ";
phpAds_ShowBreak();
/*********************************************************/
/* HTML framework */
/*********************************************************/
phpAds_PageFooter();
示例3: phpAds_PageHeader
| |
| You should have received a copy of the GNU General Public License |
| along with this program; if not, write to the Free Software |
| Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
+---------------------------------------------------------------------------+
$Id: maintenance-appendcodes.php 37157 2009-05-28 12:31:10Z andrew.hill $
*/
// Require the initialisation file
require_once '../../init.php';
// Required files
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/www/admin/lib-maintenance.inc.php';
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN);
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageHeader("maintenance-index");
phpAds_MaintenanceSelection("appendcodes");
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
echo "<br />";
echo "<img src='" . OX::assetPath() . "/images/" . $phpAds_TextDirection . "/icon-undo.gif' border='0' align='absmiddle'>" . $strAppendCodesDesc . "<br /><br />";
echo " <a href='maintenance-appendcode-check.php'>" . $strCheckAppendCodes . "</a> ";
echo "<br /><br />";
phpAds_ShowBreak();
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageFooter();
示例4: phpAds_PageHeader
*/
// Require the initialisation file
require_once '../../init.php';
// Required files
require_once MAX_PATH . '/lib/OA/Dal.php';
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/www/admin/lib-maintenance.inc.php';
require_once MAX_PATH . '/www/admin/lib-statistics.inc.php';
require_once MAX_PATH . '/www/admin/lib-zones.inc.php';
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN);
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageHeader("maintenance-index");
phpAds_MaintenanceSelection("priority");
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
function phpAds_showBanners()
{
$conf = $GLOBALS['_MAX']['CONF'];
global $strUntitled, $strName, $strID, $strWeight;
global $strProbability, $strPriority, $strRecalculatePriority;
global $phpAds_TextDirection;
$doAdZoneAssoc = OA_Dal::factoryDO('ad_zone_assoc');
$doAdZoneAssoc->selectAdd();
$doAdZoneAssoc->selectAs(array('ad_id'), 'bannerid');
$doAdZoneAssoc->selectAdd('priority');
$doAdZoneAssoc->zoneid = 0;
$doAdZoneAssoc->OrderBy('priority DESC');
示例5: phpAds_PageHeader
| Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
+---------------------------------------------------------------------------+
$Id: maintenance-plugins.php 37157 2009-05-28 12:31:10Z andrew.hill $
*/
// Require the initialisation file
require_once '../../init.php';
// Required files
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/www/admin/lib-maintenance.inc.php';
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN);
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageHeader("maintenance-index");
phpAds_MaintenanceSelection("plugins");
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
echo "<br />";
echo $strPluginsPrecis;
echo "<br /><br />";
phpAds_registerGlobal('action', 'returnurl');
if (!empty($action)) {
switch ($action) {
case 'rep':
// generates brief display and detailed log
// with debug info on plugin installations and status
require_once LIB_PATH . '/Extension/ExtensionCommon.php';
$oExtensionManager = new OX_Extension_Common();
$aPlugins = $oExtensionManager->getPluginsDiagnostics();
示例6: phpAds_PageHeader
// Required files
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/www/admin/lib-maintenance.inc.php';
require_once MAX_PATH . '/www/admin/lib-statistics.inc.php';
$file = MAX_PATH . '/lib/max/deliverycache/cache-file.inc.php';
if (file_exists($file)) {
include_once $file;
}
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN);
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageHeader("5.5");
phpAds_ShowSections(array("5.1", "5.2", "5.3", "5.5", "5.6", "5.4"));
phpAds_MaintenanceSelection("zones");
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
function phpAds_showCache()
{
$conf = $GLOBALS['_MAX']['CONF'];
global $strSize, $strKiloByte;
global $phpAds_TextDirection;
$rows = phpAds_cacheInfo();
if (is_array($rows)) {
$i = 0;
// Header
echo "<table width='100%' border='0' align='center' cellspacing='0' cellpadding='0'>";
echo "<tr height='25'>";
echo "<td height='25'><b>" . $strSize . "</b></td>";
示例7: phpAds_PageHeader
| Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
+---------------------------------------------------------------------------+
$Id: maintenance-banners.php 37157 2009-05-28 12:31:10Z andrew.hill $
*/
// Require the initialisation file
require_once '../../init.php';
// Required files
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/www/admin/lib-maintenance.inc.php';
require_once MAX_PATH . '/www/admin/lib-statistics.inc.php';
require_once MAX_PATH . '/www/admin/lib-zones.inc.php';
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN);
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageHeader("maintenance-index");
phpAds_MaintenanceSelection("banners");
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
echo "<br />";
echo $strBannerCacheExplaination;
echo "<br /><br />";
phpAds_ShowBreak();
echo "<img src='" . OX::assetPath() . "/images/" . $phpAds_TextDirection . "/icon-undo.gif' border='0' align='absmiddle'> <a href='maintenance-banners-check.php'>{$strCheckBannerCache}</a> ";
phpAds_ShowBreak();
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageFooter();
示例8: phpAds_registerGlobal
// Require the initialisation file
require_once '../../init.php';
// Required files
require_once MAX_PATH . '/lib/OA/Dal.php';
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/lib/max/Plugin.php';
require_once MAX_PATH . '/lib/max/other/lib-acl.inc.php';
require_once MAX_PATH . '/www/admin/lib-maintenance.inc.php';
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN);
phpAds_registerGlobal('action');
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageHeader("maintenance-index");
phpAds_MaintenanceSelection("acls");
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
if (!empty($action) && $action == 'Recompile') {
MAX_AclReCompileAll();
echo "<strong>{$strAllBannerChannelCompiled}</strong><br />";
}
echo $strBannerChannelResult;
phpAds_ShowBreak();
// Check the ACLs in the database against the compiled limitation strings...
echo "<strong>" . $strChannels . ":</strong>";
phpAds_showBreak();
// Check all the channels...
OX_increaseMemoryLimit(OX_getMinimumRequiredMemory('maintenance'));
$dalChannel = OA_Dal::factoryDAL('channel');
示例9: phpAds_PageHeader
| Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
+---------------------------------------------------------------------------+
$Id: maintenance-encoding.php 37157 2009-05-28 12:31:10Z andrew.hill $
*/
// Require the initialisation file
require_once '../../init.php';
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/www/admin/lib-maintenance.inc.php';
require_once LIB_PATH . '/Extension/invocationTags/InvocationTagsOptions.php';
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN);
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageHeader("maintenance-index");
phpAds_MaintenanceSelection("encoding");
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
// Note: Taken from EncodingMigration.php (with the idfields and joinon arrays removed and updated for use with DataObjects)
/**
* An array to hold all the tables and fields that should be converted
*
* @var array of arrays(
* 'fields' => array: field names that should be converted,
* 'idfields' => array: fields identifying the primary (multi?) key used for the WHERE clause on update
* 'joinon' string: Identifies which field in the table should be used to build the join up (to get the agency ID where applicable)
*/
$aTableFields = array('acls' => array('fields' => array('data'), 'idfields' => array('bannerid', 'executionorder')), 'acls_channel' => array('fields' => array('data'), 'idfields' => array('channelid', 'executionorder')), 'affiliates' => array('fields' => array('name', 'mnemonic', 'comments', 'contact', 'email', 'website'), 'idfields' => array('affiliateid')), 'agency' => array('fields' => array('name', 'contact', 'email'), 'idfields' => array('agencyid')), 'application_variable' => array('fields' => array('name', 'value'), 'idfields' => array('name')), 'banners' => array('fields' => array('htmltemplate', 'htmlcache', 'target', 'url', 'alt', 'bannertext', 'description', 'append', 'comments', 'keyword', 'statustext'), 'idfields' => array('bannerid')), 'campaigns' => array('fields' => array('campaignname', 'comments'), 'idfields' => array('campaignid')), 'channel' => array('fields' => array('name', 'description', 'comments'), 'idfields' => array('channelid')), 'clients' => array('fields' => array('clientname', 'contact', 'email', 'comments'), 'idfields' => array('clientid')), 'tracker_append' => array('fields' => array('tagcode'), 'idfields' => array('tracker_append_id')), 'trackers' => array('fields' => array('trackername', 'description', 'appendcode'), 'idfields' => array('trackerid')), 'userlog' => array('fields' => array('details'), 'idfields' => array('userlogid')), 'users' => array('fields' => array('contact_name', 'email_address', 'comments'), 'idfields' => array('user_id')), 'variables' => array('fields' => array('name', 'description', 'variablecode'), 'idfields' => array('variableid')), 'zones' => array('fields' => array('zonename', 'description', 'prepend', 'append', 'comments', 'what'), 'idfields' => array('zoneid')));
if (!empty($_POST['encConfirm'])) {
_iterateTableFields($aTableFields, true);
示例10: phpAds_registerGlobal
/************************************************************************/
// Include required files
require "config.php";
require "lib-maintenance.inc.php";
require "lib-statistics.inc.php";
require "lib-zones.inc.php";
// Register input variables
phpAds_registerGlobal('action');
// Security check
phpAds_checkAccess(phpAds_Admin);
/*********************************************************/
/* HTML framework */
/*********************************************************/
phpAds_PageHeader("5.3");
phpAds_ShowSections(array("5.1", "5.3", "5.4", "5.2"));
phpAds_MaintenanceSelection("stats");
/*********************************************************/
/* Main code */
/*********************************************************/
if (isset($action) && $action == 'start') {
echo "<br><br>";
echo "<div id='busy'>";
echo "<img src='images/install-busy.gif' align='absmiddle'> ";
echo "<b>" . $strConvertingStats . "</b><br><br>";
echo $strConvertingExplaination;
echo "</div>";
echo "<div id='done' style='display:none;'>";
echo "<img src='images/info.gif' align='absmiddle'> ";
echo "<b>" . $strConvertFinished . "</b><br><br>";
echo $strConvertFinishedExplaination;
echo "</div>";
示例11: phpAds_checkAccess
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
// Include required files
require "config.php";
require "lib-maintenance.inc.php";
require "lib-statistics.inc.php";
require "lib-zones.inc.php";
// Security check
phpAds_checkAccess(phpAds_Admin);
/*********************************************************/
/* HTML framework */
/*********************************************************/
phpAds_PageHeader("5.3");
phpAds_ShowSections(array("5.1", "5.3", "5.4", "5.2"));
phpAds_MaintenanceSelection("maintenance");
/*********************************************************/
/* Main code */
/*********************************************************/
echo "<br>";
$last_cron_run = $phpAds_config['maintenance_cron_timestamp'];
// Make sure that negative values don't break the script
if ($last_cron_run > 0) {
$last_cron_run = strtotime(date('Y-m-d H:00:00', $last_cron_run));
}
if (time() >= $last_cron_run + 3600) {
// Scheduled maintenance wasn't run in the last hour
echo "<b>Scheduled maintenance hasn't run in the past hour. This may mean that you have not set it up correctly.</b>" . "<br><br>";
$last_run = $phpAds_config['maintenance_timestamp'];
// Make sure that negative values don't break the script
if ($last_run > 0) {
示例12: phpAds_registerGlobal
+---------------------------------------------------------------------------+
$Id: maintenance-menus.php 37157 2009-05-28 12:31:10Z andrew.hill $
*/
// Require the initialisation file
require_once '../../init.php';
// Required files
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/www/admin/lib-maintenance.inc.php';
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN);
phpAds_registerGlobal('action', 'returnurl');
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageHeader("maintenance-index");
phpAds_MaintenanceSelection("menus");
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
echo "<br />";
echo $strMenusPrecis;
echo "<br /><br />";
if (!empty($action)) {
switch ($action) {
case 'build':
require_once LIB_PATH . '/Extension/admin.php';
$oExtensionManager = new OX_Extension_admin();
$oExtensionManager->runTasksOnDemand();
break;
default:
}
示例13: _showPageHeader
function _showPageHeader()
{
phpAds_PageHeader("maintenance-index");
phpAds_MaintenanceSelection("banners");
}
示例14: OA_Upgrade
}
}
// Required files
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/www/admin/lib-maintenance.inc.php';
require_once MAX_PATH . '/lib/OA/Sync.php';
require_once MAX_PATH . '/lib/OA/Upgrade/Upgrade.php';
$oUpgrader = new OA_Upgrade();
require_once MAX_PATH . '/lib/xajax.inc.php';
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN);
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageHeader("updates-index");
phpAds_MaintenanceSelection("history", "updates");
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
function getDBAuditTable($aAudit)
{
$td = "<td class=\"tablebody\">%s</td>";
$th = "<th align=\"left\" style='background-color: #ddd; border-bottom: 1px solid #ccc;'><b>%s</b></th>";
$schemas = "<table width='100%' cellpadding='8' cellspacing='0' style='border: 1px solid #ccc; background-color: #eee;'>";
$schemas .= "<tr>";
//$schemas.= sprintf($th, 'schema');
//$schemas.= sprintf($th, 'version');
$schemas .= sprintf($th, 'Table origin');
$schemas .= sprintf($th, 'Backup table');
$schemas .= sprintf($th, 'Size');
$schemas .= sprintf($th, 'Rows');
示例15: phpAds_checkAccess
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
require_once "config.php";
require "lib-maintenance.inc.php";
// Security check
phpAds_checkAccess(phpAds_Admin);
// Register Input Variables
phpAds_registerGlobal('collapse', 'expand', 'listorder', 'orderdirection', 'parent', 'source_del', 'source_new', 'source_old', 'source_parent_del', 'submit');
/*********************************************************/
/* HTML framework */
/*********************************************************/
phpAds_PageHeader("5.3");
phpAds_ShowSections(array("5.1", "5.3", "5.4", "5.2", "5.5"));
phpAds_MaintenanceSelection("source-edit");
$pageID = "maintenance-source-edit.php";
// Check if Posting Information
if (isset($submit)) {
// Make sure that this process finishes...
@set_time_limit(300);
@ignore_user_abort(1);
if (isset($source_old) & isset($source_new)) {
for ($i = 0; $i < sizeof($source_old); $i++) {
if ($source_old[$i] != $source_new[$i]) {
$old_source = strlen($parent) > 0 ? $parent . '/' . $source_old[$i] : $source_old[$i];
$new_source = strlen($parent) > 0 ? $parent . '/' . $source_new[$i] : $source_new[$i];
phpAds_updateSources($old_source, $new_source);
}
}
}