Esempio n. 1
0
function run_cron()
{
    campaign_limit_update();
    execute();
    update_configvar('last_cron_job', time());
    add_syslog('daily_cron', '');
}
Esempio n. 2
0
<?php

global $current_section;
$current_section = 'configuration';
require_once '../../init.php';
// Required files
require_once MAD_PATH . '/www/cp/auth.php';
require_once MAD_PATH . '/functions/adminredirect.php';
require_once MAD_PATH . '/www/cp/restricted.php';
require_once MAD_PATH . '/www/cp/admin_functions.php';
require_once MAD_PATH . '/www/cp/templates/header.tpl.php';
if (!check_permission('configuration', $user_detail['user_id'])) {
    exit;
}
if (isset($_GET['update_default'])) {
    update_configvar('default_creative_server', $_GET['id']);
}
if (isset($_GET['delete'])) {
    if ($_GET['delete'] == 1 && is_numeric($_GET['delid'])) {
        delete_creativeserver($_GET['delid']);
    }
}
?>
<div id="content">		
		
		<div id="contentHeader">
			<h1>Creative Server Management</h1>
		</div> <!-- #contentHeader -->	
		
		<div class="container">
				
Esempio n. 3
0
function campaign_limit_update()
{
    global $maindb;
    $last_limit_update = getconfig_var('last_limit_update');
    $diff = time() - $last_limit_update;
    if ($diff < 86300 && is_numeric($last_limit_update)) {
        return false;
    }
    global $maindb;
    mysql_query("UPDATE md_campaign_limit SET total_amount_left=total_amount WHERE total_amount>0 AND cap_type='1'", $maindb);
    update_configvar('last_limit_update', time());
    add_syslog('campaign_limit_update', '');
}