コード例 #1
0
ファイル: list-campaigns.php プロジェクト: BersnardC/DROPINN
echo language('TABLE_created_date');
?>
</td>
            	  <td width="16%"><?php 
echo language('TABLE_actions');
?>
</td>
       	    </tr>
       	   </table>
        </div>
        </div>
        <?php 
$sql = "SELECT * FROM `app_campaigns` WHERE `unique_user` = '" . $_SESSION[unique] . "' ORDER BY `date` DESC ";
$result = mysql_query($sql);
while ($campaigns = mysql_fetch_array($result)) {
    $campaign = new class_campaigns($campaigns[unique]);
    ?>
      <div class="box list" id="<?php 
    echo $campaign->get_unique();
    ?>
">
          <table width="100%" border="0">
            <tr>
              <td width="52%"><strong><?php 
    echo $campaign->get_name();
    ?>
</strong></td>
              <td width="18%" class="<?php 
    echo $campaign->get_status();
    ?>
 none"><?php 
コード例 #2
0
<?php

include "app_needed/config.php";
require_once "app_classes/module_campaigns.inc";
$campaign = new class_campaigns($_GET[unique]);
if (!$_SESSION[unique]) {
    header("Location: " . APP_WEBSITE . "/login.html");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo language("CHARSET");
?>
" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title><?php 
if ($_GET[unique]) {
    echo language('PAGE_edit_banner_title');
} else {
    echo language('PAGE_create_banner_title');
}
?>
 - <?php 
echo $config->get_value('platform_title');
?>
</title>
<link rel="shortcut icon" type="image/png" href="<?php 
echo $config->get_value('platform_favicon');
?>
コード例 #3
0
ファイル: ajax.functions.php プロジェクト: BersnardC/DROPINN
        echo language('SUCCESS_status_changed');
    }
    if ($type == "t") {
        $unique = substr($_POST[unique], 1);
        $tag = new class_tags($unique);
        $tag->hold();
        echo language('SUCCESS_status_changed');
    }
    if ($type === "x") {
        $unique = substr($_POST[unique], 1);
        $config->switcher($unique);
        echo language('SUCCESS_status_changed');
    }
}
if ($_POST[delete_campaign]) {
    $campaign = new class_campaigns($_POST[unique]);
    $campaign->del();
    echo language('SUCCESS_campaign_deleted');
}
if ($_POST[delete_tag]) {
    $tag = new class_tags($_POST[unique]);
    $tag->del();
    echo language('SUCCESS_tag_deleted');
}
if ($_POST[general_settings]) {
    $platform_title = mysql_real_escape_string($_POST[platform_title]);
    $watermark = mysql_real_escape_string($_POST[watermark]);
    $watermark_title = mysql_real_escape_string($_POST[watermark_title]);
    $platform_logo = mysql_real_escape_string($_POST[platform_logo]);
    $platform_favicon = mysql_real_escape_string($_POST[platform_favicon]);
    $watermark_url = mysql_real_escape_string($_POST[watermark_url]);
コード例 #4
0
ファイル: stats-agents.php プロジェクト: BersnardC/DROPINN
<?php

include "app_needed/config.php";
require_once "app_classes/module_statistics.inc";
require_once "app_classes/module_campaigns.inc";
require_once "app_classes/module_tags.inc";
if ($_GET[unique]) {
    $tag = new class_tags($_GET[unique]);
    $campaign = new class_campaigns($_GET[unique]);
} else {
    $tag = new class_tags($_POST['this']);
    $campaign = new class_campaigns($_POST['this']);
}
$unique_user = $campaign->get_unique_user() . $tag->get_unique_user();
$new_user = new class_users($unique_user);
if (!$unique_user) {
    $new_user = new class_users($logged->get_unique());
}
$stats = new class_statistics();
if (!$_SESSION[unique]) {
    header("Location: " . APP_WEBSITE . "/login.html");
}
if (!$_POST[start_date]) {
    $start_date = date("Y-m-d", strtotime("-7 days"));
} else {
    $start_date = $_POST[start_date];
}
if (!$_POST[end_date]) {
    $end_date = date("Y-m-d");
} else {
    $end_date = $_POST[end_date];