本文整理汇总了PHP中phpAds_PageHeader函数的典型用法代码示例。如果您正苦于以下问题:PHP phpAds_PageHeader函数的具体用法?PHP phpAds_PageHeader怎么用?PHP phpAds_PageHeader使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了phpAds_PageHeader函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: startMVC
public function startMVC()
{
$oRequest = new OX_Admin_UI_Controller_Request();
//setup controller
$oController = $this->createController();
ob_start();
$oController->process($oRequest);
$actionContent = ob_get_contents();
ob_end_clean();
//create view
if ($oController->hasViewScript()) {
$view = $this->createView($oController->getAction());
//pass model variables to view
$oController->assignModelToView($view);
}
//LAYOUT
// setup dummy installer section display
$oMenu = OA_Admin_Menu::singleton();
$oMenu->add(new OA_Admin_Menu_Section('install', '', ''));
if ($oController->hasLayout()) {
//layout
$oPageHeader = $oController->getModelProperty('pageHeader');
phpAds_PageHeader('install', $oPageHeader, $imgPath, false, true, false);
}
if ($view) {
$view->display();
}
echo $actionContent;
if ($oController->hasLayout()) {
phpAds_PageFooter($imgPath);
// Do not remove. This is a marker that AJAX response parsers look for to
// determine whether the response did not redirect to the installer.
echo "<!-- install -->";
}
}
示例2: displayPage
function displayPage($form, $aMessages = '')
{
phpAds_PageHeader('devtools-plugins', '', '../../');
$oTpl = new OA_Plugin_Template('oxPlugin.html', 'oxPlugin');
//$oTpl->debugging = true;
$oTpl->assign('aMessages', $aMessages);
$oTpl->assign('form', $form->serialize());
$oTpl->display();
phpAds_PageFooter();
}
示例3: OA_HeaderNavigation
function OA_HeaderNavigation()
{
global $agencyid;
if (OA_Permission::isAccount(OA_ACCOUNT_ADMIN)) {
phpAds_PageHeader("agency-access");
$doAgency = OA_Dal::staticGetDO('agency', $agencyid);
MAX_displayInventoryBreadcrumbs(array(array("name" => $doAgency->name)), "agency");
} else {
phpAds_PageHeader("agency-user");
}
}
示例4: display
/**
* A method to launch and display the widget
*
*/
function display()
{
$aConf = $GLOBALS['_MAX']['CONF'];
phpAds_PageHeader(null, new OA_Admin_UI_Model_PageHeaderModel(), '', false, false);
$oTpl = new OA_Admin_Template('dashboard/main.html');
if (!$aConf['ui']['dashboardEnabled'] || !$aConf['sync']['checkForUpdates']) {
$dashboardUrl = MAX::constructURL(MAX_URL_ADMIN, 'dashboard.php?widget=Disabled');
} else {
$dashboardUrl = MAX::constructURL(MAX_URL_ADMIN, 'dashboard.php?widget=Grid');
}
$oTpl->assign('dashboardURL', $dashboardUrl);
$oTpl->display();
phpAds_PageFooter('', true);
}
示例5: parseDay
/**
* A method to parse the day paramer, check it's validity, and store it
* in the provided $aDates array.
*
* @param array $aDates A references to an array that will be set to
* contain the valid day as the "day_begin" and
* "day_end" values.
*/
function parseDay(&$aDates)
{
$day = MAX_getValue('day', '');
if (!preg_match('/^(\\d\\d\\d\\d)(\\d\\d)(\\d\\d)$/D', $day, $matches)) {
phpAds_PageHeader('2');
phpAds_Die($GLOBALS['strAccessDenied'], $GLOBALS['strNotAdmin']);
}
if (!checkdate($matches[2], $matches[3], $matches[1])) {
phpAds_PageHeader('2');
phpAds_Die($GLOBALS['strAccessDenied'], $GLOBALS['strNotAdmin']);
}
$aDates = array();
$aDates['day_begin'] = "{$matches[1]}-{$matches[2]}-{$matches[3]}";
$aDates['day_end'] = "{$matches[1]}-{$matches[2]}-{$matches[3]}";
}
示例6: OA_headerNavigation
function OA_headerNavigation()
{
$oHeaderModel = buildAdvertiserHeaderModel($GLOBALS['clientid']);
if (OA_Permission::isAccount(OA_ACCOUNT_MANAGER)) {
phpAds_PageHeader("advertiser-access", $oHeaderModel);
phpAds_ShowSections(array("4.1.2", "4.1.3", "4.1.5", "4.1.5.2"));
} else {
$sections = array();
if (OA_Permission::hasPermission(OA_PERM_BANNER_ACTIVATE) || OA_Permission::hasPermission(OA_PERM_BANNER_EDIT)) {
$sections[] = '2.2';
}
$sections[] = '2.3';
$sections[] = '2.3.2';
phpAds_PageHeader('advertiser-access', $oHeaderModel);
phpAds_ShowSections($sections);
}
}
示例7: display
/**
* A method to launch and display the widget
*
*/
function display()
{
$aConf = $GLOBALS['_MAX']['CONF'];
phpAds_PageHeader(null, new OA_Admin_UI_Model_PageHeaderModel(), '', false, false);
$oTpl = new OA_Admin_Template('dashboard/main.html');
if (!$aConf['ui']['dashboardEnabled'] || !$aConf['sync']['checkForUpdates']) {
$dashboardUrl = MAX::constructURL(MAX_URL_ADMIN, 'dashboard.php?widget=Disabled');
} else {
$m2mTicket = OA_Dal_Central_M2M::getM2MTicket(OA_Permission::getAccountId());
if (empty($m2mTicket)) {
$dashboardUrl = MAX::constructURL(MAX_URL_ADMIN, 'dashboard.php?widget=Reload');
} else {
$dashboardUrl = $this->buildDashboardUrl($m2mTicket, null, '&');
}
}
$oTpl->assign('dashboardURL', $dashboardUrl);
$oTpl->display();
phpAds_PageFooter('', true);
}
示例8: phpAds_PageHeader
phpAds_PageHeader("4.1.3.2", $extra);
echo "<img src='images/icon-client.gif' align='absmiddle'> " . phpAds_getParentName($campaignid);
echo " <img src='images/" . $phpAds_TextDirection . "/caret-rs.gif'> ";
echo "<img src='images/icon-campaign.gif' align='absmiddle'> <b>" . phpAds_getClientName($campaignid) . "</b><br><br><br>";
phpAds_ShowSections(array("4.1.3.2", "4.1.3.3", "4.1.3.4"));
} else {
if (isset($move) && $move == 't') {
// Convert client to campaign
phpAds_PageHeader("4.1.3.2");
echo "<img src='images/icon-client.gif' align='absmiddle'> " . phpAds_getClientName($clientid);
echo " <img src='images/" . $phpAds_TextDirection . "/caret-rs.gif'> ";
echo "<img src='images/icon-campaign.gif' align='absmiddle'> <b>" . $strUntitled . "</b><br><br><br>";
phpAds_ShowSections(array("4.1.3.2"));
} else {
// New campaign
phpAds_PageHeader("4.1.3.1");
echo "<img src='images/icon-client.gif' align='absmiddle'> " . phpAds_getClientName($clientid);
echo " <img src='images/" . $phpAds_TextDirection . "/caret-rs.gif'> ";
echo "<img src='images/icon-campaign.gif' align='absmiddle'> <b>" . $strUntitled . "</b><br><br><br>";
phpAds_ShowSections(array("4.1.3.1"));
}
}
if ($campaignid != "" || isset($move) && $move == 't') {
// Edit or Convert
// Fetch exisiting settings
// Parent setting for converting, campaign settings for editing
if ($campaignid != "") {
$ID = $campaignid;
}
if (isset($move) && $move == 't') {
if (isset($clientid) && $clientid != "") {
示例9: phpAds_SettingsWriteAdd
}
}
phpAds_SettingsWriteAdd('type_html_auto', isset($type_html_auto));
phpAds_SettingsWriteAdd('type_html_php', isset($type_html_php));
if (!count($errormessage)) {
if (phpAds_SettingsWriteFlush()) {
header("Location: settings-admin.php");
exit;
}
}
}
/*********************************************************/
/* HTML framework */
/*********************************************************/
phpAds_PrepareHelp();
phpAds_PageHeader("5.1");
phpAds_ShowSections(array("5.1", "5.3", "5.4", "5.2"));
phpAds_SettingsSelection("banner");
/*********************************************************/
/* Cache settings fields and get help HTML Code */
/*********************************************************/
// Split FTP settings
if (!empty($phpAds_config['type_web_ftp'])) {
if ($ftpserver = @parse_url($phpAds_config['type_web_ftp'])) {
// Decode URL parts
$ftpserver['user'] = urldecode($ftpserver['user']);
$ftpserver['pass'] = urldecode($ftpserver['pass']);
$ftpserver['path'] = urldecode($ftpserver['path']);
$ftpserver['path'] = preg_replace('#^/#', '', $ftpserver['path']);
$ftpserver['path'] = preg_replace('#/$#', '', $ftpserver['path']);
$phpAds_config['type_web_ftp_host'] = $ftpserver['host'] . (isset($ftpserver['port']) && $ftpserver['port'] != '' ? ':' . $ftpserver['port'] : '');
示例10: array_keys
//was empty, is still empty - just pick one, no need for redirect
$ids = array_keys($aAdvertisers);
$clientid = !empty($ids) ? $ids[0] : -1;
//if no advertisers set to non-existent id
}
} else {
if (!isset($aAdvertisers[$clientid])) {
$page = basename($_SERVER['SCRIPT_NAME']);
OX_Admin_Redirect::redirect($page);
}
}
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
$oHeaderModel = buildHeaderModel($clientid, $aAdvertisers);
phpAds_PageHeader(null, $oHeaderModel);
/*-------------------------------------------------------*/
/* Get preferences */
/*-------------------------------------------------------*/
if (!isset($hideinactive)) {
if (isset($session['prefs']['advertiser-campaigns.php'][$clientid]['hideinactive'])) {
$hideinactive = $session['prefs']['advertiser-campaigns.php'][$clientid]['hideinactive'];
} else {
$pref =& $GLOBALS['_MAX']['PREF'];
$hideinactive = $pref['ui_hide_inactive'] == true;
}
}
if (!isset($listorder)) {
if (isset($session['prefs']['advertiser-campaigns.php'][$clientid]['listorder'])) {
$listorder = $session['prefs']['advertiser-campaigns.php'][$clientid]['listorder'];
} else {
示例11: phpAds_registerGlobal
/* 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-statistics.inc.php";
require "../libraries/lib-reports.inc.php";
// Register input variables
phpAds_registerGlobal('startday', 'startmonth', 'startyear', 'endday', 'endmonth', 'endyear');
// Security check
phpAds_checkAccess(phpAds_Admin + phpAds_Agency);
if (phpAds_isUser(phpAds_Agency)) {
$query = "SELECT clientid FROM " . $phpAds_config['tbl_clients'] . " WHERE clientid=" . $clientid . " AND agencyid=" . phpAds_getUserID();
$res = phpAds_dbQuery($query) or phpAds_sqlDie();
if (phpAds_dbNumRows($res) == 0) {
phpAds_PageHeader("2");
phpAds_Die($strAccessDenied, $strNotAdmin);
}
}
/*********************************************************/
/* Main code */
/*********************************************************/
if (isset($clientid) && $clientid != '') {
if (isset($startyear) && isset($startmonth) && isset($startday) && $startyear != '' && $startmonth != '' && $startday != '') {
$first_unixtimestamp = mktime(0, 0, 0, $startmonth, $startday, $startyear);
} else {
$first_unixtimestamp = 0;
}
if (isset($endyear) && isset($endmonth) && isset($endday)) {
$last_unixtimestamp = mktime(23, 59, 59, $endmonth, $endday, $endyear);
} else {
示例12: pageHeader
/**
* Display page header
*
*/
function pageHeader()
{
phpAds_PageHeader(phpAds_PasswordRecovery);
echo "<br><br>";
}
示例13: phpAds_registerGlobal
*/
// Require the initialisation file
require_once '../../init.php';
// Required files
require_once MAX_PATH . '/lib/OA/Dal.php';
require_once MAX_PATH . '/lib/max/language/Loader.php';
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/lib/max/other/lib-userlog.inc.php';
// Register input variables
phpAds_registerGlobal('start');
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN);
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageHeader("userlog-index");
phpAds_UserlogSelection("maintenance");
// Load the required language files
Language_Loader::load('userlog');
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
$doUserLog = OA_Dal::factoryDO('userlog');
if (!($count = $doUserLog->count())) {
$count = 0;
}
$limit = 10;
$start = isset($start) ? (int) $start : 0;
$doUserLog = OA_Dal::factoryDO('userlog');
$doUserLog->orderBy('timestamp DESC');
$doUserLog->limit($start * $limit, $limit);
示例14: phpAds_PageHeader
}
}
}
}
}
}
}
}
}
}
}
}
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageHeader("plugin-index", new OA_Admin_UI_Model_PageHeaderModel($GLOBALS['strPlugins']), '', false, true);
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
if (is_null($oTpl)) {
if (array_key_exists('selection', $_REQUEST) && $_REQUEST['selection'] == 'groups') {
$oTpl = new OA_Admin_Template('plugin-group-index-list.html');
$oTpl->assign('aWarnings', $oComponentGroupManager->aWarnings);
$oTpl->assign('selected', 'groups');
$oTpl->assign('aPlugins', $oComponentGroupManager->getComponentGroupsList());
} else {
$oTpl = new OA_Admin_Template('plugin-index.html');
$oTpl->assign('selected', 'plugins');
$oTpl->assign('aPackages', $oPluginManager->getPackagesList());
$oTpl->assign('aWarnings', $oPluginManager->aWarnings);
$oTpl->assign('aErrors', $oPluginManager->aErrors);
示例15: phpAds_PageHeader
if (!empty($advertiserId)) {
OA_Permission::enforceAccessToObject('clients', $advertiserId);
}
if (!empty($campaignId)) {
OA_Permission::enforceAccessToObject('campaigns', $campaignId);
}
if (!empty($publisherId)) {
OA_Permission::enforceAccessToObject('affiliates', $publisherId);
}
if (!empty($zoneId)) {
OA_Permission::enforceAccessToObject('zones', $zoneId);
}
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageHeader("5.4");
if (OA_Permission::isAccount(OA_ACCOUNT_ADMIN)) {
// Show all "My Account" sections
phpAds_ShowSections(array("5.1", "5.2", "5.3", "5.5", "5.6", "5.4"));
phpAds_UserlogSelection("index");
} else {
if (OA_Permission::isAccount(OA_ACCOUNT_MANAGER)) {
// Show the "Preferences", "User Log" and "Channel Management" sections of the "My Account" sections
phpAds_ShowSections(array("5.1", "5.2", "5.4", "5.7"));
} else {
if (OA_Permission::isAccount(OA_ACCOUNT_TRAFFICKER) || OA_Permission::isAccount(OA_ACCOUNT_ADVERTISER)) {
phpAds_ShowSections(array("5.1", "5.2", "5.4"));
}
}
}
// Paging related input variables