• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP phpAds_registerGlobal函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中phpAds_registerGlobal函数的典型用法代码示例。如果您正苦于以下问题:PHP phpAds_registerGlobal函数的具体用法?PHP phpAds_registerGlobal怎么用?PHP phpAds_registerGlobal使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了phpAds_registerGlobal函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: check

 /**
  * @param OA_Admin_Menu_Section $oSection
  */
 public function check($oSection)
 {
     // this checker is called 6 times, not sure why, but we cache the lookup in a static variable
     static $cache = array();
     if (isset($cache[$oSection->getId()])) {
         return $cache[$oSection->getId()];
     }
     $enabled = false;
     require_once MAX_PATH . '/www/admin/plugins/videoReport/stats-api.php';
     $vast = new OX_Video_Report();
     phpAds_registerGlobal('clientid', 'campaignid', 'bannerid', 'zoneid');
     global $clientid, $campaignid, $bannerid, $zoneid, $affiliateid;
     //        echo "<pre>";debug_print_backtrace();
     switch ($oSection->getId()) {
         case 'stats-vast-advertiser':
             $enabled = $vast->doesAdvertiserHaveVast((int) $clientid);
             break;
         case 'stats-vast-campaign':
             $enabled = $vast->doesCampaignHaveVast((int) $campaignid);
             break;
         case 'stats-vast-banner':
             $enabled = $vast->doesBannerHaveVast((int) $bannerid);
             break;
         case 'stats-vast-zone':
             $enabled = $vast->isZoneVast((int) $zoneid);
             break;
         case 'stats-vast-website':
             $enabled = $vast->doesWebsiteHaveVast((int) $affiliateid);
             break;
         case 'players-vast':
             return true;
             break;
         case 'zone-invocation':
             if (!empty($zoneid) && $vast->isZoneVast((int) $zoneid)) {
                 $oSection->setNameKey('Video Invocation Code');
                 $oSection->setLink('plugins/videoReport/zone-invocation-code.php?zoneid=' . (int) $zoneid . '&affiliateid=' . (int) $affiliateid);
             }
             $enabled = true;
             break;
     }
     $cache[$oSection->getId()] = $enabled;
     return $enabled;
 }
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:46,代码来源:oxVastMenuChecker.php


示例2: check

 public function check($oSection)
 {
     phpAds_registerGlobal('clientid', 'campaignid');
     global $clientid, $campaignid;
     $sectionId = $oSection->getId();
     static $cache = array();
     $oMarkedTextAdvertiserComponent = OX_Component::factory('admin', 'oxMarkedTextAdvertiser');
     $oEntityHelper = $oMarkedTextAdvertiserComponent->getEntityHelper();
     $enabled = true;
     switch ($sectionId) {
         case 'advertiser-edit':
         case 'advertiser-trackers':
         case 'advertiser-access':
         case 'campaign-edit_new':
         case 'campaign-edit':
         case 'campaign-trackers':
         case 'campaign-banners':
             if (isset($cache[$clientid])) {
                 return $cache[$clientid];
             }
             break;
         case 'banner-edit':
             if (isset($cache[$clientid])) {
                 return $cache[$clientid];
             }
             break;
         case 'banner-acl':
         case 'banner-zone':
         case 'banner-advanced':
         case 'campaign-zone':
     }
     $sessionClientId = $this->getSessionClientId();
     if (isset($sessionClientId)) {
         $this->clearMarketEntitiesInSession();
     }
     return $enabled;
 }
开发者ID:rcdesign-cemetery,项目名称:openx-markedtext,代码行数:37,代码来源:oxMarkedTextAdvertiserEntityChecker.php


示例3: define

/*                                                                      */
/* Copyright (c) 2000-2007 by the Openads developers                    */
/* For more information visit: http://www.openads.org                   */
/*                                                                      */
/* 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.       */
/************************************************************************/
// Prevent full path disclosure
if (!defined('phpAds_path')) {
    die;
}
// Define constant used to place code generator
define('phpAds_adLayerLoaded', true);
// Register input variables
phpAds_registerGlobal('ltr', 'loop', 'speed', 'pause', 'shiftv', 'transparent', 'backcolor', 'limited', 'lmargin', 'rmargin');
/*********************************************************/
/* Place ad-generator settings                           */
/*********************************************************/
function phpAds_placeLayerSettings()
{
    global $ltr, $loop, $speed, $pause, $shiftv, $transparent, $backcolor;
    global $limited, $lmargin, $rmargin;
    global $tabindex;
    if (!isset($ltr)) {
        $ltr = 't';
    }
    if (!isset($loop)) {
        $loop = 'n';
    }
    if (!isset($speed)) {
开发者ID:henryhe514,项目名称:ChineseCommercial,代码行数:31,代码来源:invocation.inc.php


示例4: phpAds_registerGlobal

/************************************************************************/
/* Openads 2.0                                                          */
/* ===========                                                          */
/*                                                                      */
/* Copyright (c) 2000-2007 by the Openads developers                    */
/* For more information visit: http://www.openads.org                   */
/*                                                                      */
/* 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-statistics.inc.php";
// Register input variables
phpAds_registerGlobal('all');
// Security check
phpAds_checkAccess(phpAds_Admin);
/*********************************************************/
/* Main code                                             */
/*********************************************************/
// Banner
if (isset($bannerid) && $bannerid != '') {
    // Delete stats for this banner
    phpAds_deleteStats($bannerid);
    // Return to campaign statistics
    Header("Location: stats-campaign-banners.php?clientid=" . $clientid . "&campaignid=" . $campaignid);
} elseif (isset($campaignid) && $campaignid != '') {
    // Get all banners for this client
    $idresult = phpAds_dbQuery(" SELECT\n\t\t\t\t\t\t\t\tbannerid\n\t\t\t\t\t\t\t  FROM\n\t\t\t\t\t\t\t  \t" . $phpAds_config['tbl_banners'] . "\n\t\t\t\t\t\t\t  WHERE\n\t\t\t\t\t\t\t\tclientid = '{$campaignid}'\n\t\t  \t\t\t\t ");
    // Loop to all banners for this client
开发者ID:henryhe514,项目名称:ChineseCommercial,代码行数:31,代码来源:stats-reset.php


示例5: phpAds_registerGlobal

| Revive Adserver                                                           |
| http://www.revive-adserver.com                                            |
|                                                                           |
| Copyright: See the COPYRIGHT.txt file.                                    |
| License: GPLv2 or later, see the LICENSE.txt file.                        |
+---------------------------------------------------------------------------+
*/
// 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-statistics.inc.php';
require_once MAX_PATH . '/lib/max/other/html.php';
// Register input variables
phpAds_registerGlobal('action', 'variablemethod');
// Since there may be an unknown number of variables posted (which are accessed by $_POST directly in the code below),
// clean the whole $_POST array
MAX_commonRemoveSpecialChars($_POST);
/*-------------------------------------------------------*/
/* Affiliate interface security                          */
/*-------------------------------------------------------*/
OA_Permission::enforceAccount(OA_ACCOUNT_MANAGER);
OA_Permission::enforceAccessToObject('clients', $clientid);
OA_Permission::enforceAccessToObject('trackers', $trackerid);
/*-------------------------------------------------------*/
/* Store preferences									 */
/*-------------------------------------------------------*/
$session['prefs']['inventory_entities'][OA_Permission::getEntityId()]['clientid'] = $clientid;
phpAds_SessionDataStore();
/*-------------------------------------------------------*/
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:31,代码来源:tracker-variables.php


示例6: phpAds_registerGlobal

| License: GPLv2 or later, see the LICENSE.txt file.                        |
+---------------------------------------------------------------------------+
*/
// Require the initialisation file
require_once '../../init.php';
// Required files
require_once MAX_PATH . '/lib/OA/Dal.php';
//require_once MAX_PATH . '/lib/max/deliverycache/cache-'.$conf['delivery']['cache'].'.inc.php';
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/www/admin/lib-storage.inc.php';
require_once MAX_PATH . '/www/admin/lib-zones.inc.php';
require_once MAX_PATH . '/www/admin/lib-statistics.inc.php';
require_once MAX_PATH . '/lib/OA/Maintenance/Priority.php';
require_once OX_PATH . '/lib/pear/DB/DataObject.php';
// Register input variables
phpAds_registerGlobal('returnurl', 'agencyid');
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN);
// CVE-2013-5954 - see OA_Permission::checkSessionToken() method for details
OA_Permission::checkSessionToken();
/*-------------------------------------------------------*/
/* Main code                                             */
/*-------------------------------------------------------*/
if (!empty($agencyid)) {
    $doAgency = OA_Dal::factoryDO('agency');
    $doAgency->agencyid = $agencyid;
    $doAgency->get($agencyid);
    $doAgency->delete();
}
// Run the Maintenance Priority Engine process
OA_Maintenance_Priority::scheduleRun();
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:31,代码来源:agency-delete.php


示例7: phpAds_registerGlobal

/* Openads 2.0                                                          */
/* ===========                                                          */
/*                                                                      */
/* Copyright (c) 2000-2007 by the Openads developers                    */
/* For more information visit: http://www.openads.org                   */
/*                                                                      */
/* 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-storage.inc.php";
require "lib-statistics.inc.php";
// Register input variables
phpAds_registerGlobal('returnurl', 'moveto', 'duplicate');
// Security check
phpAds_checkAccess(phpAds_Admin);
/*********************************************************/
/* Main code                                             */
/*********************************************************/
if (isset($zoneid) && $zoneid != '') {
    if (isset($moveto) && $moveto != '') {
        // Move the zone
        $res = phpAds_dbQuery("UPDATE " . $phpAds_config['tbl_zones'] . " SET affiliateid = '" . $moveto . "' WHERE zoneid = '" . $zoneid . "'") or phpAds_sqlDie();
        // Prevent HTTP response splitting
        if (!preg_match('/[\\r\\n]/', $returnurl)) {
            $url = stripslashes($returnurl);
            header("Location: " . $returnurl . "?affiliateid=" . $moveto . "&zoneid=" . $zoneid);
            exit;
        }
开发者ID:henryhe514,项目名称:ChineseCommercial,代码行数:31,代码来源:zone-modify.php


示例8: phpAds_registerGlobal

/* Openads 2.0                                                          */
/* ===========                                                          */
/*                                                                      */
/* Copyright (c) 2000-2007 by the Openads developers                    */
/* For more information visit: http://www.openads.org                   */
/*                                                                      */
/* 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-statistics.inc.php";
require "lib-expiration.inc.php";
// Register input variables
phpAds_registerGlobal('period', 'start', 'limit', 'source');
// Security check
phpAds_checkAccess(phpAds_Admin + phpAds_Affiliate);
/*********************************************************/
/* Affiliate interface security                          */
/*********************************************************/
if (phpAds_isUser(phpAds_Affiliate)) {
    if (isset($zoneid) && $zoneid > 0) {
        $result = phpAds_dbQuery("\n\t\t\tSELECT\n\t\t\t\taffiliateid\n\t\t\tFROM\n\t\t\t\t" . $phpAds_config['tbl_zones'] . "\n\t\t\tWHERE\n\t\t\t\tzoneid = '{$zoneid}'\n\t\t\t") or phpAds_sqlDie();
        $row = phpAds_dbFetchArray($result);
        if ($row["affiliateid"] == '' || phpAds_getUserID() != $row["affiliateid"]) {
            phpAds_PageHeader("1");
            phpAds_Die($strAccessDenied, $strNotAdmin);
        } else {
            $affiliateid = phpAds_getUserID();
        }
开发者ID:henryhe514,项目名称:ChineseCommercial,代码行数:31,代码来源:stats-linkedbanner-history.php


示例9: phpAds_registerGlobal

| Copyright: See the COPYRIGHT.txt file.                                    |
| 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/lib-maintenance-priority.inc.php';
require_once MAX_PATH . '/lib/OA/Dal.php';
require_once MAX_PATH . '/lib/OA/Dll.php';
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/www/admin/lib-statistics.inc.php';
require_once MAX_PATH . '/lib/max/other/html.php';
require_once MAX_PATH . '/lib/OX/Translation.php';
// Register input variables
phpAds_registerGlobal('hideinactive', 'listorder', 'orderdirection');
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_MANAGER, OA_ACCOUNT_ADVERTISER);
if (!empty($clientid) && !OA_Permission::hasAccessToObject('clients', $clientid)) {
    //check if can see given advertiser
    $page = basename($_SERVER['SCRIPT_NAME']);
    OX_Admin_Redirect::redirect($page);
}
if (!empty($campaignid) && !OA_Permission::hasAccessToObject('campaigns', $campaignid)) {
    $page = basename($_SERVER['SCRIPT_NAME']);
    OX_Admin_Redirect::redirect("{$page}?clientid={$clientid}");
}
/*-------------------------------------------------------*/
/* Init data                                             */
/*-------------------------------------------------------*/
//get advertisers and set the current one
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:31,代码来源:campaign-banners.php


示例10: phpAds_registerGlobal

/* phpAdsNew 2                                                          */
/* ===========                                                          */
/*                                                                      */
/* Copyright (c) 2000-2002 by the phpAdsNew developers                  */
/* For more information visit: http://www.phpadsnew.com                 */
/*                                                                      */
/* 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-statistics.inc.php";
require "lib-data-statistics.inc.php";
// Register input variables
phpAds_registerGlobal('limit', 'period', 'start', 'hideinactive', 'listorder', 'orderdirection');
// Security check
phpAds_checkAccess(phpAds_Admin + phpAds_Agency + phpAds_Client);
if (isset($Session['prefs']['stats-advertiser-history.php']['listorder']) && !isset($listorder)) {
    $listorder = $Session['prefs']['stats-advertiser-history.php']['listorder'];
}
if (isset($Session['prefs']['stats-advertiser-history.php']['orderdirection']) && !isset($orderdirection)) {
    $orderdirection = $Session['prefs']['stats-advertiser-history.php']['orderdirection'];
}
if (isset($Session['prefs']['stats-advertiser-history.php']['hide']) && !isset($hideinactive)) {
    $hideinactive = $Session['prefs']['stats-advertiser-history.php']['hide'];
}
if (isset($Session['prefs']['stats-advertiser-history.php']['limit']) && !isset($limit)) {
    $limit = $Session['prefs']['stats-advertiser-history.php']['limit'];
}
if (isset($Session['prefs']['stats-advertiser-history.php']['period']) && !isset($period)) {
开发者ID:miller-tamil,项目名称:openads-plus,代码行数:31,代码来源:stats-advertiser-history.php


示例11: phpAds_registerGlobal

| 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: tracker-invocation.php 37157 2009-05-28 12:31:10Z andrew.hill $
*/
// 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-statistics.inc.php';
require_once MAX_PATH . '/lib/max/Admin/Invocation.php';
require_once MAX_PATH . '/lib/max/other/html.php';
// Register input variables
phpAds_registerGlobal('trackername', 'description', 'move', 'submit', 'invtype', 'trackerid', 'clientid');
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_MANAGER);
OA_Permission::enforceAccessToObject('clients', $clientid);
OA_Permission::enforceAccessToObject('trackers', $trackerid);
/*-------------------------------------------------------*/
/* Store preferences									 */
/*-------------------------------------------------------*/
$session['prefs']['inventory_entities'][OA_Permission::getEntityId()]['clientid'] = $clientid;
phpAds_SessionDataStore();
/*-------------------------------------------------------*/
/* Process submitted form                                */
/*-------------------------------------------------------*/
if (isset($submit)) {
    // If ID is not set, it should be a null-value for the auto_increment
    $doTrackers = OA_Dal::factoryDO('trackers');
开发者ID:villos,项目名称:tree_admin,代码行数:31,代码来源:tracker-invocation.php


示例12: phpAds_registerGlobal

/* ===========                                                          */
/*                                                                      */
/* Copyright (c) 2000-2007 by the Openads developers                    */
/* For more information visit: http://www.openads.org                   */
/*                                                                      */
/* 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-statistics.inc.php";
require "lib-zones.inc.php";
require "../libraries/lib-priority.inc.php";
// Register input variables
phpAds_registerGlobal('value');
// Security check
phpAds_checkAccess(phpAds_Admin + phpAds_Client);
/*********************************************************/
/* Main code                                             */
/*********************************************************/
if ($value == "t") {
    $value = "f";
} else {
    $value = "t";
}
if (phpAds_isUser(phpAds_Client)) {
    if ($value == 'f' && phpAds_isAllowed(phpAds_DisableBanner) || $value == 't' && phpAds_isAllowed(phpAds_ActivateBanner)) {
        $result = phpAds_dbQuery("\n\t\t\tSELECT\n\t\t\t\tclientid\n\t\t\tFROM\n\t\t\t\t" . $phpAds_config['tbl_banners'] . "\n\t\t\tWHERE\n\t\t\t\tbannerid = '{$bannerid}'\n\t\t\t") or phpAds_sqlDie();
        $row = phpAds_dbFetchArray($result);
        if ($row["clientid"] == '' || phpAds_getUserID() != phpAds_getParentID($row["clientid"])) {
开发者ID:henryhe514,项目名称:ChineseCommercial,代码行数:31,代码来源:banner-activate.php


示例13: phpAds_registerGlobal

/* ===========                                                          */
/*                                                                      */
/* Copyright (c) 2000-2007 by the Openads developers                    */
/* For more information visit: http://www.openads.org                   */
/*                                                                      */
/* 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-statistics.inc.php";
require "lib-size.inc.php";
require "lib-zones.inc.php";
// Register input variables
phpAds_registerGlobal('listorder', 'orderdirection');
// Security check
phpAds_checkAccess(phpAds_Admin + phpAds_Affiliate);
/*********************************************************/
/* Affiliate interface security                          */
/*********************************************************/
if (phpAds_isUser(phpAds_Affiliate)) {
    $affiliateid = phpAds_getUserID();
}
/*********************************************************/
/* Get preferences                                       */
/*********************************************************/
if (!isset($listorder)) {
    if (isset($Session['prefs']['affiliate-zones.php']['listorder'])) {
        $listorder = $Session['prefs']['affiliate-zones.php']['listorder'];
    } else {
开发者ID:henryhe514,项目名称:ChineseCommercial,代码行数:31,代码来源:affiliate-zones.php


示例14: define

// Figure out our location
define('phpAds_path', '.');
/*********************************************************/
/* Include required files                                */
/*********************************************************/
require phpAds_path . "/config.inc.php";
require_once phpAds_path . "/libraries/lib-io.inc.php";
require phpAds_path . "/libraries/lib-db.inc.php";
require phpAds_path . "/libraries/lib-remotehost.inc.php";
require phpAds_path . "/libraries/lib-log.inc.php";
require phpAds_path . "/libraries/lib-cache.inc.php";
require phpAds_path . "/libraries/lib-view-tracker.inc.php";
/*********************************************************/
/* Register input variables                              */
/*********************************************************/
phpAds_registerGlobal('block', 'capping', 'session_capping', 'trackerid');
/*********************************************************/
/* Main code                                             */
/*********************************************************/
// Determine the user ID
$userid = phpAds_getUniqueUserID(false);
$conversionsid = NULL;
// Send the user ID
// phpAds_setCookie("phpAds_id", $userid, time()+365*24*60*60);
if (!phpAds_isConversionBlocked($trackerid)) {
    if ($phpAds_config['log_adconversions']) {
        phpAds_dbConnect();
        $conversionid = phpAds_logConversion($userid, $trackerid);
    }
    // Handles variable retrieval from the page
    echo phpAds_buildJavascriptVariablesScript($trackerid, $conversionid);
开发者ID:miller-tamil,项目名称:openads-plus,代码行数:31,代码来源:adconversionjs.php


示例15: phpAds_registerGlobal

/************************************************************************/
/* phpAdsNew 2                                                          */
/* ===========                                                          */
/*                                                                      */
/* Copyright (c) 2000-2002 by the phpAdsNew developers                  */
/* For more information visit: http://www.phpadsnew.com                 */
/*                                                                      */
/* 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-statistics.inc.php";
// Register input variables
phpAds_registerGlobal('collapse', 'expand', 'hideinactive', 'listorder', 'orderdirection', 'period');
// Security check
phpAds_checkAccess(phpAds_Admin + phpAds_Agency);
// Set default values
if (!isset($period)) {
    $period = '';
}
$tabindex = 1;
/*********************************************************/
/* HTML framework                                        */
/*********************************************************/
if (phpAds_isUser(phpAds_Admin)) {
    $extra = "<br><br><br>";
    $extra .= "<b>{$strMaintenance}</b><br>";
    $extra .= "<img src='images/break.gif' height='1' width='160' vspace='4'><br>";
    $extra .= "<a href='stats-reset.php?all=true'" . phpAds_DelConfirm($strConfirmResetStats) . ">";
开发者ID:miller-tamil,项目名称:openads-plus,代码行数:31,代码来源:stats-global-advertiser.php


示例16: phpAds_registerGlobal

| http://www.revive-adserver.com                                            |
|                                                                           |
| Copyright: See the COPYRIGHT.txt file.                                    |
| License: GPLv2 or later, see the LICENSE.txt file.                        |
+---------------------------------------------------------------------------+
*/
// 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-storage.inc.php';
require_once MAX_PATH . '/www/admin/lib-zones.inc.php';
require_once MAX_PATH . '/www/admin/lib-statistics.inc.php';
// Register input variables
phpAds_registerGlobal('returnurl');
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_MANAGER);
OA_Permission::enforceAccessToObject('clients', $clientid);
/*-------------------------------------------------------*/
/* Main code                                             */
/*-------------------------------------------------------*/
if (!empty($trackerid)) {
    $ids = explode(',', $trackerid);
    while (list(, $trackerid) = each($ids)) {
        $doTrackers = OA_Dal::factoryDO('trackers');
        $doTrackers->trackerid = $trackerid;
        if ($doTrackers->find()) {
            // Clone the found DB_DataObject, as cannot delete() once
            // it has been fetch()ed
            $doTrackersClone = clone $doTrackers;
开发者ID:Apeplazas,项目名称:plazadelatecnologia,代码行数:31,代码来源:tracker-delete.php


示例17: phpAds_registerGlobal

// $Revision: 2.4 $
/************************************************************************/
/* phpAdsNew 2                                                          */
/* ===========                                                          */
/*                                                                      */
/* Copyright (c) 2000-2002 by the phpAdsNew developers                  */
/* For more information visit: http://www.phpadsnew.com                 */
/*                                                                      */
/* 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
include "lib-settings.inc.php";
// Register input variables
phpAds_registerGlobal('acl', 'allow_invocation_frame', 'allow_invocation_interstitial', 'allow_invocation_js', 'allow_invocation_local', 'allow_invocation_plain', 'allow_invocation_plain_nocookies', 'allow_invocation_popup', 'allow_invocation_xmlrpc', 'con_key', 'delivery_caching', 'mult_key', 'p3p_compact_policy', 'p3p_policies', 'p3p_policy_location', 'use_keywords');
// Security check
phpAds_checkAccess(phpAds_Admin + phpAds_Agency);
$errormessage = array();
$sql = array();
if (isset($HTTP_POST_VARS['submit']) && $HTTP_POST_VARS['submit'] == 'true') {
    phpAds_SettingsWriteAdd('allow_invocation_plain', isset($allow_invocation_plain));
    phpAds_SettingsWriteAdd('allow_invocation_plain_nocookies', isset($allow_invocation_plain_nocookies));
    phpAds_SettingsWriteAdd('allow_invocation_js', isset($allow_invocation_js));
    phpAds_SettingsWriteAdd('allow_invocation_frame', isset($allow_invocation_frame));
    phpAds_SettingsWriteAdd('allow_invocation_xmlrpc', isset($allow_invocation_xmlrpc));
    phpAds_SettingsWriteAdd('allow_invocation_local', isset($allow_invocation_local));
    phpAds_SettingsWriteAdd('allow_invocation_interstitial', isset($allow_invocation_interstitial));
    phpAds_SettingsWriteAdd('allow_invocation_popup', isset($allow_invocation_popup));
    if (isset($delivery_caching)) {
        phpAds_SettingsWriteAdd('delivery_caching', $delivery_caching);
开发者ID:miller-tamil,项目名称:openads-plus,代码行数:31,代码来源:settings-invocation.php


示例18: phpAds_registerGlobal

/* <html>                                                               */
/*  ...                                                                 */
/*  <img src="graph-daily.php?title=foo&width=500&data=a^15^^b^20^^">   */
/*  ...                                                                 */
/* </html>                                                              */
/************************************************************************/
/* you can use as many data items as you want                           */
/* you need the GD library in your php module                           */
/* don't forget to encode you parameters (unicode)                      */
/************************************************************************/
// Include required files
require "../libraries/lib-io.inc.php";
require "../libraries/lib-cache.inc.php";
require "lib-gd.inc.php";
// Register input variables
phpAds_registerGlobal('width', 'data');
/*********************************************************/
/* Prepare data for graph                                */
/*********************************************************/
// Prevent errors
if (!isset($width) || $width <= 0) {
    exit;
}
// Decode data
$data = isset($data) ? urldecode($data) : '';
// Start positions of graph
$x = 27;
$y = 12;
// Right margin
$right_margin = 5;
$bar_width = 5;
开发者ID:henryhe514,项目名称:ChineseCommercial,代码行数:31,代码来源:graph-daily.php


示例19: phpAds_registerGlobal

| Revive Adserver                                                           |
| http://www.revive-adserver.com                                            |
|                                                                           |
| Copyright: See the COPYRIGHT.txt file.                                    |
| License: GPLv2 or later, see the LICENSE.txt file.                        |
+---------------------------------------------------------------------------+
*/
// 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;
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:31,代码来源:userlog-maintenance.php


示例20: phpAds_registerGlobal

/* Openads 2.0                                                          */
/* ===========                                                          */
/*                                                                      */
/* Copyright (c) 2000-2007 by the Openads developers                    */
/* For more information visit: http://www.openads.org                   */
/*                                                                      */
/* 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-statistics.inc.php";
require "lib-size.inc.php";
// Register input variables
phpAds_registerGlobal('expand', 'collapse', 'listorder', 'orderdirection', 'period', 'period_range');
// Security check
phpAds_checkAccess(phpAds_Admin + phpAds_Affiliate);
// Set default values
$tabindex = 1;
/*********************************************************/
/* Affiliate interface security                          */
/*********************************************************/
if (phpAds_isUser(phpAds_Affiliate)) {
    if (isset($zoneid) && $zoneid > 0) {
        $result = phpAds_dbQuery("\n\t\t\tSELECT\n\t\t\t\taffiliateid\n\t\t\tFROM\n\t\t\t\t" . $phpAds_config['tbl_zones'] . "\n\t\t\tWHERE\n\t\t\t\tzoneid = '{$zoneid}'\n\t\t\t") or phpAds_sqlDie();
        $row = phpAds_dbFetchArray($result);
        if ($row["affiliateid"] == '' || phpAds_getUserID() != $row["affiliateid"]) {
            phpAds_PageHeader("1");
            phpAds_Die($strAccessDenied, $strNotAdmin);
        } else {
开发者ID:henryhe514,项目名称:ChineseCommercial,代码行数:31,代码来源:stats-zone-linkedbanners.php



注:本文中的phpAds_registerGlobal函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP phpAds_registerGlobalUnslashed函数代码示例发布时间:2022-05-15
下一篇:
PHP phpAds_isUser函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap