Exemple #1
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
AUTH::require_valid_app_key('stats202', $_SESSION['user_api_key'], $_SESSION['user_stats202_app_key']);
template_top('My Offer Stats');
include_once '../top.php';
#function display_calendar($page, $show_time, $show_adv, $show_bottom, $show_limit, $show_breakdown, $show_type, $show_cpc_or_cpv = true) {
$page = '/stats202/ajax/getOfferStats.php';
$show_time = true;
$show_adv = false;
$show_bottom = true;
$show_limit = true;
$show_breakdown = false;
$show_cpc_or_cpv = false;
$show_type = false;
display_calendar($page, $show_time, $show_adv, $show_bottom, $show_limit, $show_breakdown, $show_type, $show_cpc_or_cpv);
?>
 

<script type="text/javascript">
 loadContent('/stats202/ajax/getOfferStats.php',null);
</script>



<?php 
template_bottom();
Exemple #2
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//show the template
template_top('Hourly Overview', NULL, NULL, NULL);
?>

<div id="info">
	<h2>Hourly Overview</h2>
	The breakdown overview allows you to see your stats per hour average.
</div>

<?php 
display_calendar('/tracking202/ajax/sort_hourly.php', true, true, true, false, true, true);
?>
    

<script type="text/javascript">
   loadContent('/tracking202/ajax/sort_hourly.php',null);
</script>

<?php 
template_bottom();
Exemple #3
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//set the timezone for the user, for entering their dates.
AUTH::set_timezone($_SESSION['user_timezone']);
//show the template
template_top('Spy View', NULL, NULL, NULL);
?>

<div id="info">
	<h2>Spy View</h2>
	Spy is a live view of visitors interacting with your affiliate campaigns.
</div>


<?php 
display_calendar('/tracking202/ajax/click_history.php?spy=1', false, true, true, false, false, true, false);
?>
	
<script type="text/javascript">
	if($('s-status-loading')) {   $('s-status-loading').style.display='';       }  
   	runSpy();
   	new PeriodicalExecuter(runSpy, 5); 
</script>  

<?php 
template_bottom();
Exemple #4
0
}
if (isset($_GET['delete_rotator_id'])) {
    $mysql['user_id'] = $db->real_escape_string($_SESSION['user_id']);
    $mysql['rotator_id'] = $db->real_escape_string($_GET['delete_rotator_id']);
    $delete_sql = "DELETE FROM 202_rotators WHERE id='" . $mysql['rotator_id'] . "' AND user_id='" . $mysql['user_id'] . "'";
    if (_mysqli_query($delete_sql)) {
        $rule_sql = "DELETE FROM 202_rotator_rules WHERE rotator_id='" . $mysql['rotator_id'] . "'";
        if (_mysqli_query($rule_sql)) {
            $criteria_sql = "DELETE FROM 202_rotator_rules_criteria WHERE rotator_id='" . $mysql['rotator_id'] . "'";
            if (_mysqli_query($criteria_sql)) {
                $delete_success = true;
            }
        }
    }
}
template_top('Smart Rotator', NULL, NULL, NULL);
?>

<div class="row" style="margin-bottom: 15px;">
	<div class="col-xs-12">
		<div class="row">
			<div class="col-xs-5">
				<h6>Smart Rotator & Split Testing Setup</h6>
			</div>
			<div class="col-xs-7">
				<div class="error pull-right" id="form_erors" style="display: none;margin-top: 20px;">
					<small><span class="fui-alert"></span> Hey! Make sure all field are filled.</small>
				</div>
				<div class="<?php 
if ($error) {
    echo "error";
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/clickserver_api_management.php';
AUTH::require_user();
//get all of the user data
$mysql['user_id'] = $db->real_escape_string($_SESSION['user_id']);
$user_sql = "\tSELECT \t`clickserver_api_key`\n\t\t\t\t FROM   \t`202_users` \n\t\t\t\t WHERE  \t`202_users`.`user_id`='" . $mysql['user_id'] . "'";
$user_result = $db->query($user_sql);
$user_row = $user_result->fetch_assoc();
if ($user_row['clickserver_api_key']) {
    $clickservers = clickserver_api_domain_list($user_row['clickserver_api_key']);
}
template_top('ClickServer Management', NULL, NULL, NULL);
?>

<div class="row account">
	<div class="col-xs-12">
		<div class="row">
			<div class="col-xs-4">
				<h6>Manage Your ClickServers</h6>
			</div>
			<div class="col-xs-8">
				<div id="response-body" style="text-align:right">
					<span id="response-text"></span>
				</div>
			</div>
		</div>
	</div>
	<div class="col-xs-4">
		<div class="panel panel-default account_left">
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//set the timezone for the user, for entering their dates.
AUTH::set_timezone($_SESSION['user_timezone']);
//show the template
template_top('Rotators Breakdown Overview', NULL, NULL, NULL);
?>
<div class="row" style="margin-bottom: 15px;">
	<div class="col-xs-12">
		<h6>Rotators Breakdown Overview</h6>
		<small>The breakdown overview allows you to see your rotators stats per day, per hour, or an interval that you set.</small>
	</div>
</div>                                      

<?php 
display_calendar('/tracking202/ajax/sort_rotator.php', true, false, true, false, true, true, true);
?>
 
    
<script type="text/javascript">
   loadContent('/tracking202/ajax/sort_rotator.php',null);
</script>




<?php 
template_bottom();
Exemple #7
0
	function showHeader($total_list){
		
		$str  = '';
		//goi phan template
		$str .= template_top($this->title,$this->urlsearch());
		
	if($this->quickEdit){
		//phan quick edit
		$str .= '<form action="quickedit.php?url=' . base64_encode($_SERVER['REQUEST_URI']) . '" method="post" enctype="multipart/form-data" name="listing">
						<input type="hidden" name="iQuick" value="update">';
	}
	
		$str .= '	<table id="listing" cellpadding="5" cellspacing="0" border="1" bordercolor="' . $this->fs_border . '" width="100%" class="table">';
		
	if($this->showid){
		$str .= '		<th class="h" width="30">Stt</th>';
	}	
	
	if($this->delete){ 
		$str .= '		<th class="h check"><input type="checkbox" id="check_all" onclick="checkall(' . $total_list . ')"></th>';
	}
	
	if($this->quickEdit){
		//phan quick edit
		$str .= '		<th class="h"><img src="' . $this->image_path . 'save.png" onclick="document.listing.submit()" style="cursor: pointer;" border="0"></th>';
	}
		
foreach($this->arrayLabel as $key=>$lable){
	if($this->arrayShow[$key] == 0){
		$str .= '		<th class="h">' . $lable . $this->urlsort($this->arrayField[$key]) . ' </th>';
   }
}

		return $str;		
	} // End function showHeader
Exemple #8
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//check if its the latest verison
$_SESSION['update_needed'] = update_needed();
//check to see if this user has stats202 enabled
$_SESSION['stats202_enabled'] = AUTH::is_valid_app_key('stats202', $_SESSION['user_api_key'], $_SESSION['user_stats202_app_key']);
template_top();
?>

<div class="slim">
		<div class="welcome">
			<table cellspacing="0" cellpadding="0" class="section">
				<tr>
					<td class="left" ><h2>Sponsor <a href="http://prosper202.com/advertise/" style="font-size: 10px;">(advertise)</span></h2></td>
					<td><hr></td>
				</tr> 
			</table>
			<p><iframe class="advertise" src="http://prosper202.com/ads/prosper202/" scrolling="no" frameborder="0"></iframe></p> 
			
			<table cellspacing="0" cellpadding="0" class="section">
				<tr>
					<td class="left" ><h2>Prosper202 Development Blog</h2></td>
					<td><hr></td>
				</tr>
			</table><?php 
$rss = fetch_rss('http://prosper202.com/blog/rss/');
if (isset($rss->items) && 0 != count($rss->items)) {
    $rss->items = array_slice($rss->items, 0, 5);
    foreach ($rss->items as $item) {
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
template_top($server_row, 'Get Advanced Landing Page Code', NULL, NULL, NULL);
?>

	<div id="info">
		<h2>Setup an Advanced Landing Page - Get Code</h2>
		Select what landing page you wish to use, and then add all the different campaigns you plan on running with the landing page.<br/><br/>
</div>


	<h1></h1>

	
	<form id="tracking_form" method="post">
		<input type="hidden" id="counter" name="counter" value="0"/>
		<table class="setup">
			<tr>
				<td class="left_caption">Landing Page</td>
				<td>
					<select name="landing_page_id" id="landing_page_id" onchange="">					
						<option value="0"> -- </option> <?php 
$mysql['user_id'] = mysql_real_escape_string($_SESSION['user_id']);
$landing_page_sql = "SELECT * FROM 202_landing_pages WHERE user_id='" . $mysql['user_id'] . "' AND landing_page_type='1' AND landing_page_deleted='0'";
$landing_page_result = _mysql_query($landing_page_sql);
// or record_mysql_error($landing_page_sql);
while ($landing_page_row = mysql_fetch_array($landing_page_result, MYSQL_ASSOC)) {
    $html['landing_page_id'] = htmlentities($landing_page_row['landing_page_id'], ENT_QUOTES, 'UTF-8');
    $html['landing_page_nickname'] = htmlentities($landing_page_row['landing_page_nickname'], ENT_QUOTES, 'UTF-8');
Exemple #10
0
$class_menu			= new menu();
$listAll				= $class_menu->getAllChild("categories_multi", "cat_id", "cat_parent_id", 0, "cat_type='static' AND lang_id = " . $lang_id, "cat_id,cat_name,cat_type", "cat_order ASC,cat_name ASC", "cat_has_child", 0);
unset($class_menu);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?php 
echo $load_header;
?>
</head>
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<? /*------------------------------------------------------------------------------------------------*/ ?>
<?php 
echo template_top(translate_text("Records Add"));
?>
<? /*------------------------------------------------------------------------------------------------*/ ?>
<?
$form = new form();
$form->create_form("form_name",$fs_action,"post","multipart/form-data",'onsubmit="validateForm();return false;"  id="form_name" ');
$form->create_table();
?>
<?php 
echo $form->text_note('Những ô dấu sao (<font class="form_asterisk">*</font>) là bắt buộc phải nhập.');
echo $form->errorMsg($errorMsg);
?>

<?php 
echo $form->select_db_multi("Danh mục", "sta_category_id", "sta_category_id", $listAll, "cat_id", "cat_name", $sta_category_id, "Danh mục", 1, "", 1, 0, "", "");
echo $form->text("Tiêu đề", "sta_title", "sta_title", $sta_title, "Tiêu đề", 1, 250, "", 255, "", "", "");
if ($_GET['edit_aff_campaign_id']) {
    $mysql['user_id'] = $db->real_escape_string($_SESSION['user_id']);
    $mysql['aff_campaign_id'] = $db->real_escape_string($_GET['edit_aff_campaign_id']);
    $aff_campaign_sql = "SELECT \t* \n\t\t\t\t\t\t FROM   \t`202_aff_campaigns`\n\t\t\t\t\t\t WHERE  \t`aff_campaign_id`='" . $mysql['aff_campaign_id'] . "'\n\t\t\t\t\t\t AND    \t\t`user_id`='" . $mysql['user_id'] . "'";
    $aff_campaign_result = $db->query($aff_campaign_sql) or record_mysql_error($aff_campaign_sql);
    $aff_campaign_row = $aff_campaign_result->fetch_assoc();
    $selected['aff_network_id'] = $aff_campaign_row['aff_network_id'];
    $html = array_map('htmlentities', $aff_campaign_row);
    $html['aff_campaign_id'] = htmlentities($_GET['edit_aff_campaign_id'], ENT_QUOTES, 'UTF-8');
}
//this will override the edit, if posting and edit fail
if ($_SERVER['REQUEST_METHOD'] == 'POST' and $add_success != true) {
    $selected['aff_network_id'] = $_POST['aff_network_id'];
    $html = array_map('htmlentities', $_POST);
}
template_top('Affiliate Campaigns Setup', NULL, NULL, NULL);
?>

<div class="row" style="margin-bottom: 15px;">
	<div class="col-xs-12">
		<div class="row">
			<div class="col-xs-4">
				<h6>Campaign Setup</h6>
			</div>
			<div class="col-xs-8">
				<div class="<?php 
if ($error) {
    echo "error";
} else {
    echo "success";
}
Exemple #12
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//show the template
template_top('Breakdown Overview', NULL, NULL, NULL);
?>

<div id="info">
	<h2>Breakdown Overview</h2>
	The breakdown overview allows you to see your stats per day, per hour, or an interval that you set. 
</div>

<?php 
display_calendar('/tracking202/ajax/sort_breakdown.php', true, true, true, false, true, true);
?>
    

<script type="text/javascript">
   loadContent('/tracking202/ajax/sort_breakdown.php',null);
</script>

<?php 
template_bottom();
Exemple #13
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/xtracks-app/bootstrap.php';
AUTH::require_user();
//before loading the offers202 page, check to make sure this users api key is valid,
//if they do not have one, they will have to generated one
AUTH::require_valid_api_key();
template_top('RSS Feeds');
include_once '../top.php';
?>

<br/><br/>

<table style="margin: 0px auto;"> 
	<tr>
		<td>
			<h3 class="green">Offer RSS Feeds</h3>
			<p>Here are list of the rss feeds you can subscribe to. </p>
		</td>
	</tr>
	<tr>
		<td>
			<h3 class="green" style="margin: 40px 0px 10px;">All Networks RSS Feeds (most recent 500 offers) &amp; Customizable Offer RSS Feeds</h3>
			<p style="margin: 8px 0px;">Here are a few offer RSS feeds.  One showing the entire offer feed, and the other two showing customizable examples.</p>
			<table class="setup-table" cellpadding="0" cellspacing="0" style="margin: 0px;">
				<tr>
					<th>Affiliate Network</th> 
					<th>RSS Feed</th>
				</tr>
				<tr>
					<td>All Offers, All Networks</th>
Exemple #14
0
if ($_GET['addAlert']) {
    if (isset($_GET['alertValue'])) {
        $get = array('apiKey' => $_SESSION['user_api_key'], 'alertType' => $_GET['alertType'], 'alertValue' => $_GET['alertValue']);
        $url = TRACKING202_API_URL . '/alerts202/addAlert?' . http_build_query($get);
        $addAlert = getUrl($url);
        $addAlert = convertXmlIntoArray($addAlert);
        $errors = $addAlert['errors']['error'];
        if (!$errors) {
            header('location: ?addSuccess=1');
        } else {
            $html = array_map('htmlentities', $_GET);
        }
    }
}
//now grab all of my alerts
template_top('Offer Alerts');
?>

<table cellspacing="0" cellpadding="0" border="0" style="margin: 50px auto 0px;">
	<tbody>
		<tr>
			<td style="padding-right: 50px;">
				<table border="0">
					<tbody>
						<tr>
							<td>
								<h3>Welcome to Alerts202</h3>
								Alerts202 are email updates of the latest relevant offers based on your choice of query or topic.
								<br/>
								<br/>
								Some handy uses of Alerts202 include:
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
template_top('Pixel And Postback URLs');
//the pixels
$unSecuredPixel = '<img height="1" width="1" border="0" style="display: none;" src="http://' . getTrackingDomain() . '/tracking202/static/gpx.php?amount=" />';
$unSecuredPixel_2 = '<img height="1" width="1" border="0" style="display: none;" src="http://' . getTrackingDomain() . '/tracking202/static/gpx.php?amount=&cid=" />';
//post back urls
$unSecuredPostBackUrl = 'http://' . getTrackingDomain() . '/tracking202/static/gpb.php?amount=&subid=';
$unSecuredPostBackUrl_2 = 'http://' . getTrackingDomain() . '/tracking202/static/gpb.php?amount=&subid=';
//universal pixel
$unSecuredUniversalPixel = '<iframe height="1" width="1" border="0" style="display: none;" frameborder="0" scrolling="no" src="http://' . getTrackingDomain() . '/tracking202/static/upx.php?amount=" seamless></iframe>';
$unSecuredUniversalPixelJS = '
<script>
 var vars202={amount:"",cid:""};(function(d, s) {
 	var js, upxf = d.getElementsByTagName(s)[0], load = function(url, id) {
 		if (d.getElementById(id)) {return;}
 		if202 = d.createElement("iframe");if202.src = url;if202.id = id;if202.height = 1;if202.width = 0;if202.frameBorder = 1;if202.scrolling = "no";if202.noResize = true;
 		upxf.parentNode.insertBefore(if202, upxf);
 	};
 	load("http://' . getTrackingDomain() . '/tracking202/static/upx.php?amount="+vars202[\'amount\']+"&cid="+vars202[\'cid\'], "upxif");
 }(document, "script"));</script>
<noscript>
 	<iframe height="1" width="1" border="0" style="display: none;" frameborder="0" scrolling="no" src="http://' . getTrackingDomain() . '/tracking202/static/upx.php?amount=&cid=" seamless></iframe>
</noscript>';
?>

<div class="row" style="margin-bottom: 15px;">
	<div class="col-xs-12">
		<h6>Get your Pixel or Post Back URL</h6>
Exemple #16
0
											  FROM admin_user
											  WHERE adm_loginname NOT IN('admin') AND adm_delete = 0
											  ORDER BY adm_loginname ASC, adm_active DESC");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?php 
echo $load_header;
?>
</head>
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<? /*------------------------------------------------------------------------------------------------*/ ?>
<?php 
echo template_top(translate_text("Member management listing"));
?>
		<? /*---------Body------------*/ ?>
		<table width="100%" border="1" cellpadding="3" cellspacing="0" class="table" bordercolor="<?php 
echo $fs_border;
?>
">
			<tr height="25">
			<td width="20" class="bold bg">No</td>
			<td align="center" class="bold bg" nowrap="nowrap"><?php 
echo translate_text("Họ tên");
?>
</td>
			<td align="center" class="bold bg"><?php 
echo translate_text("Email");
?>
Exemple #17
0
        if (!$error) {
            $user_pass = salt_user_pass($_POST['new_user_pass']);
            $mysql['user_pass'] = mysql_real_escape_string($user_pass);
            $mysql['user_id'] = mysql_real_escape_string($_SESSION['user_id']);
            $user_sql = "\tUPDATE \t`202_users`\n\t\t\t\t\t\t\tSET    \t\t`user_pass`='" . $mysql['user_pass'] . "'\n\t\t\t\t\t\t\tWHERE  \t`user_id`='" . $mysql['user_id'] . "'";
            $user_result = _mysql_query($user_sql);
            $change_user_pass = true;
        }
    }
    $html = array_merge($html, array_map('htmlentities', $_POST));
}
$html['user_id'] = htmlentities($_SESSION['user_id'], ENT_QUOTES, 'UTF-8');
$html['user_username'] = htmlentities($_SESSION['user_username'], ENT_QUOTES, 'UTF-8');
//check to see if this user has stats202 enabled
$_SESSION['stats202_enabled'] = AUTH::is_valid_app_key('stats202', $_SESSION['user_api_key'], $_SESSION['user_stats202_app_key']);
template_top('User Profile', NULL, NULL, NULL);
?>
 

<style>
.my-account-tables { margin: 0px auto; }
.my-account-tables td { width: 150px; }
</style>

<form method="post"  action="" enctype="multipart/form-data">   
    <input type="hidden" name="update_profile" value="1" />                   
    <input type="hidden" name="token" value="<?php 
echo $_SESSION['token'];
?>
" />
    <table class="my-account-tables"  cellpadding="5" cellspacing="0">
Exemple #18
0
if ($_GET['edit_ppc_account_id']) {
    $mysql['user_id'] = mysql_real_escape_string($_SESSION['user_id']);
    $mysql['ppc_account_id'] = mysql_real_escape_string($_GET['edit_ppc_account_id']);
    $ppc_account_sql = "SELECT  *\n\t\t\t\t\t\t FROM   `202_ppc_accounts`\n\t\t\t\t\t\t WHERE  `ppc_account_id`='" . $mysql['ppc_account_id'] . "'\n\t\t\t\t\t\t AND    `user_id`='" . $mysql['user_id'] . "'";
    $ppc_account_result = _mysql_query($ppc_account_sql);
    //($ppc_account_sql);
    $ppc_account_row = mysql_fetch_assoc($ppc_account_result);
    $selected['ppc_network_id'] = $ppc_account_row['ppc_network_id'];
    $html['ppc_account_name'] = htmlentities($ppc_account_row['ppc_account_name'], ENT_QUOTES, 'UTF-8');
}
if ($error) {
    //if someone happend take the post stuff and add it
    $selected['ppc_network_id'] = $_POST['ppc_network_id'];
    $html['ppc_account_name'] = htmlentities($_POST['ppc_account_name'], ENT_QUOTES, 'UTF-8');
}
template_top('Pay Per Click Accounts', NULL, NULL, NULL);
?>


<div id="info">
	<h2>PPC Account Setup</h2>
	Just add the PPC networks you use, and usernames for each PPC account you have.
</div>

<table cellspacing="0" cellpadding="0" class="setup">
	<tr valign="top">
		<td>
			<?php 
if ($error) {
    ?>
				<div class="warning"><div><h3>There were errors with your submission.</h3></div></div>
Exemple #19
0
        $mysql['aff_network_time'] = time();
        $aff_network_sql = "INSERT INTO `202_aff_networks`\n\t\t\t\t\t\t\tSET         `user_id`='" . $mysql['user_id'] . "',\n\t\t\t\t\t\t\t\t\t\t`aff_network_name`='" . $mysql['aff_network_name'] . "',\n\t\t\t\t\t\t\t\t\t\t`aff_network_time`='" . $mysql['aff_network_time'] . "'";
        $aff_network_result = mysql_query($aff_network_sql) or record_mysql_error($aff_network_sql);
        $add_success = true;
    }
}
if (isset($_GET['delete_aff_network_id'])) {
    $mysql['user_id'] = mysql_real_escape_string($_SESSION['user_id']);
    $mysql['aff_network_id'] = mysql_real_escape_string($_GET['delete_aff_network_id']);
    $mysql['aff_network_time'] = time();
    $delete_sql = " UPDATE  `202_aff_networks`\n\t\t\t\t\tSET     `aff_network_deleted`='1',\n\t\t\t\t\t\t\t`aff_network_time`='" . $mysql['aff_network_time'] . "'\n\t\t\t\t\tWHERE   `user_id`='" . $mysql['user_id'] . "'\n\t\t\t\t\tAND     `aff_network_id`='" . $mysql['aff_network_id'] . "'";
    if ($delete_result = mysql_query($delete_sql) or record_mysql_error($delete_result)) {
        $delete_success = true;
    }
}
template_top('Affiliate Networks Setup', NULL, NULL, NULL);
?>
 
<div id="info">
    <h2>Affiliate Network Setup</h2>
    Please add the affiliate networks you work with here.
</div>

<table cellspacing="0" cellpadding="0" class="setup">
	<tr valign="top">
		<td>
			<?php 
if ($error) {
    ?>
				<div class="warning"><div><h3>There were errors with your submission.</h3></div></div>
			<?php 
Exemple #20
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/xtracks-app/bootstrap.php';
AUTH::require_user();
//set no time limit on this
set_time_limit(0);
ini_set("memory_limit", "50M");
ini_set('max_execution_time', 60 * 10);
//10 minutes
template_top('Export202 - Conversion Results', NULL, NULL, NULL);
include_once '../form.php';
$export_session_id_public = $_GET['id'];
$mysql['export_session_id_public'] = mysql_real_escape_string($export_session_id_public);
$export_session_sql = "SELECT export_session_id FROM 202_export_sessions WHERE export_session_id_public='" . $mysql['export_session_id_public'] . "'";
$export_session_result = _mysql_query($export_session_sql);
$export_session_row = mysql_fetch_assoc($export_session_result);
if (!$export_session_row) {
    $error = 1;
}
if (!$error) {
    //open the file CSV, we will be using
    $export_session_id = $export_session_row['export_session_id'];
    $mysql['export_session_id'] = mysql_real_escape_string($export_session_id);
    ?>
	<table class="csv-table">
 	<tr>
 		<td colspan="2" class="csv-data">
 			<h2>Yahoo Search Marketing</h2>
 			
 			 <div>
	 			 <p><strong>Special Instructions:</strong>  Please follow these steps to convert this into the correct Yahoo SEM file format. </p>
Exemple #21
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//show the template
template_top('Account Overview', NULL, NULL, NULL);
?>

<div class="row" style="margin-bottom: 15px;">
	<div class="col-xs-12">
		<h6>Account Overview Screen</h6>
		<small>The account overview screen gives you a quick glance at how all of your campaigns are currently performing.</small>
	</div>
</div>

<?php 
display_calendar('/tracking202/ajax/account_overview.php', true, false, true, false, true, true);
?>
	<script type="text/javascript">
		 loadContent('/tracking202/ajax/account_overview.php',null);
	</script>

<?php 
template_bottom();
Exemple #22
0
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?php 
echo $load_header;
?>
<? $myform->checkjavascript(); ?>
</head>
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<? /*------------------------------------------------------------------------------------------------*/ ?>
<?php 
echo template_top(translate_text("Configuration"));
?>
	<form action="<?php 
echo $_SERVER['SCRIPT_NAME'] . "?" . @$_SERVER['QUERY_STRING'];
?>
" method="post" name="setting" enctype="multipart/form-data">
			<? /*---------------------------------*/ ?>
         <? if($errorMsg!=''){?><h1 class="error"><?php 
echo $errorMsg;
?>
</h1><? }?>
			<table border="0" cellpadding="5" cellspacing="0" width="100%">
				<?
				for($i = 0; $i < count($arrayField); $i++){
				?>
				<tr <?php 
Exemple #23
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/xtracks-app/bootstrap.php';
AUTH::require_user();
template_top($server_row, 'Get Trackers', NULL, NULL, NULL);
?>

<div id="info">
	<h2>Get the Destination URLs to be used in your Text Ads</h2>
	Here is where you generate your tracking links to be used in your PPC advertisements.  Please make sure to test your links.<br/>If you are using a landing page, you should have already installed your landing page code prior to coming to this step.
</div>

	<form id="tracking_form" method="post">
		<table class="setup">
			<tr valign="top">
				<td class="left_caption">Get Text Ad Code For</td>	
				<td>
					<input type="radio" name="tracker_type" value="0" onClick="tracker_select(this.value);" CHECKED > Direct Link Setup, or Simple Landing Page Setup<br/>
					<input type="radio" name="tracker_type" value="1" onClick="tracker_select(this.value);"> Advanced Landing Page Setup
					<?php 
echo $error['landing_page_type'];
?>
				</td>
			</tr>
			
			<tr><td colspan="2"><hr/></td></tr>
			
			<tr  id="tracker_aff_network" >
				<td class="left_caption">Affiliate Network</td>
				<td>
	                    <img id="aff_network_id_div_loading" style="display: none;" src="/xtracks-img/loader-small.gif"/>
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
template_top('API Key Required');
?>
 


<div class="big-alert">

	The application you are trying to use requires a valid Tracking202 API Key. <br/>
	You may enter in your API Key by visiting the <a href="/202-account/account.php">My Account</a> tab in Prosper202.

</div>

        
<?php 
template_bottom();
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
template_top($server_row, 'Get Simple Landing Page Code', NULL, NULL, NULL);
?>

<div class="row" style="margin-bottom: 15px;">
	<div class="col-xs-12">
		<h6>Setup a Simple Landing Page</h6>
	</div>
	<div class="col-xs-12">
		<small>Here is where you need to setup your landing pages, installing the javascript and PHP code prior to getting your Text Ad Tracking Urls.</small>
	</div>
</div>		

<div class="row form_seperator" style="margin-bottom:15px;">
	<div class="col-xs-12"></div>
</div>

<div class="row">
	<div class="col-xs-5">
		<form id="tracking_form" method="post" action="" class="form-horizontal" role="form" style="margin:0px 0px 0px 15px;">
			<div class="form-group" style="margin-bottom: 0px;">
			    <label for="aff_campaign_id" class="col-xs-5 control-label" style="text-align: left;">Category:</label>
			    <div class="col-xs-6">
			        <img id="aff_network_id_div_loading" class="loading" src="/202-img/loader-small.gif"/>
	                <div id="aff_network_id_div"></div>
			    </div>
			</div>
Exemple #26
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/xtracks-app/bootstrap.php';
AUTH::require_user();
//before loading the offers202 page, check to make sure this users api key is valid,
//if they do not have one, they will have to generated one
AUTH::require_valid_api_key();
template_top('Offers202');
include_once 'top.php';
include_once 'form.php';
template_bottom();
Exemple #27
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/xtracks-app/bootstrap.php';
AUTH::require_user();
//this deletes all this users cached data to the old result sets, we want new stuff because they just updated old clicks
memcache_delete_user_keys();
template_top('Update CPC', NULL, NULL, NULL);
?>

<div id="info">
	<h2>Here is where you can update your CPCs</h2>
	Because XTracks assumes that you are paying full CPC each time, we understand you won't be paying this each time.  So to refine your stats you can update your old history's cpc to make them more accurate.  Simply choose your setup below to update your cpc for a specific time period, and a specific set of variables.
</div>

	<form id="cpc_form" method="post">
		<table class="setup">
			<tr valign="top">
				<td class="left_caption">Adjust CPC For</td>	
				<td>
					<input type="radio" name="tracker_type" value="0" onClick="tracker_select(this.value);" CHECKED > Direct Link Setup, or Simple Landing Page Setup<br/>
					<input type="radio" name="tracker_type" value="1" onClick="tracker_select(this.value);"> Advanced Landing Page Setup
					<?php 
echo $error['landing_page_type'];
?>
				</td>
			</tr>
			
			<tr><td colspan="2"><hr/></td></tr>
			
			<tr  id="tracker_aff_network" >
				<td class="left_caption">Affiliate Network</td>
Exemple #28
0
        $click_result = mysql_query($click_sql) or record_mysql_error($click_sql);
        $click_row = mysql_fetch_assoc($click_result);
        $mysql['click_id'] = mysql_real_escape_string($click_row['click_id']);
        if (is_numeric($mysql['click_id'])) {
            $update_sql = "\n\t\t\t\tUPDATE\n\t\t\t\t\t202_clicks\n\t\t\t\tSET\n\t\t\t\t\tclick_lead='1',\n\t\t\t\t\t`click_filtered`='0'\n\t\t\t\tWHERE\n\t\t\t\t\tclick_id='" . $mysql['click_id'] . "'\n\t\t\t\t\tAND user_id='" . $mysql['user_id'] . "'\n\t\t\t";
            $update_result = mysql_query($update_sql) or die(mysql_error());
            $update_sql = "\n\t\t\t\tUPDATE\n\t\t\t\t\t202_clicks_spy\n\t\t\t\tSET\n\t\t\t\t\tclick_lead='1',\n\t\t\t\t\t`click_filtered`='0'\n\t\t\t\tWHERE\n\t\t\t\t\tclick_id='" . $mysql['click_id'] . "'\n\t\t\t\t\tAND user_id='" . $mysql['user_id'] . "'\n\t\t\t";
            $update_result = mysql_query($update_sql) or die(mysql_error());
        }
    }
    $success = true;
    //this deletes all this users cached data to the old result sets, we want new stuff because they just updated old clicks
    //memcache_delete_user_keys();
}
//show the template
template_top('Update Subids');
?>

<div id="info">
    <h2>Update Your Subids</h2>
	Here is where you can update your income for tracking202, by importing your subids from your affiliate marketing reports.
</div>

	<div style="margin: 15px 30px; padding: 20px; border: 1px solid rgb(175,175,175); font-size: 1.5em; text-align: center; background: rgb(244,244,244); ">
		<img src="/202-img/icons/16x16/new.png" style="margin: 0px 6px -4px 0px;" title="new" alt="new"/>You can now automatically update your subids by setting up your <a href="/stats202/postback/">Stats202</a> Postback URL.
	</div>	
    
    <?php 
if ($success == true) {
    ?>
        <div class="success"><div><h3>Your submission was successful</h3>Your account income now reflects the subids from the commisisons you just uploaded.</div></div>
Exemple #29
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
AUTH::require_valid_app_key('stats202', $_SESSION['user_api_key'], $_SESSION['user_stats202_app_key']);
template_top('My Subid Stats');
include_once '../top.php';
#function display_calendar($page, $show_time, $show_adv, $show_bottom, $show_limit, $show_breakdown, $show_type, $show_cpc_or_cpv = true) {
$page = '/stats202/ajax/getSubids.php';
$show_time = true;
$show_adv = false;
$show_bottom = true;
$show_limit = true;
$show_breakdown = false;
$show_cpc_or_cpv = false;
$show_type = false;
display_calendar($page, $show_time, $show_adv, $show_bottom, $show_limit, $show_breakdown, $show_type, $show_cpc_or_cpv);
?>
 

<script type="text/javascript">
 loadContent('/stats202/ajax/getSubids.php',null);
</script>



<?php 
template_bottom();
Exemple #30
0
    }
}
//build the get query for the offers202 restful api
$get = array();
$get['apiKey'] = $_SESSION['user_api_key'];
$get['stats202AppKey'] = $_SESSION['user_stats202_app_key'];
$query = http_build_query($get);
//build the offers202 api string
$url = TRACKING202_API_URL . "/stats202/getPostBacks?{$query}";
#echo "<p>$url</p>";
//grab the url
$data = getUrl($url);
//parse out the array
$xmlToArray = new XmlToArray($data);
$getPostBacks = $xmlToArray->createArray();
template_top('Postback URLs');
include_once '../top.php';
//check for api errors
checkForApiErrors($getPostBacks);
?>


<?php 
if ($_GET['delete']) {
    echo "<div class='success'><div><h3>Your submission was successful</h3>You have deleted a postback url.</div></div>";
}
if ($success) {
    echo "<div class='success'><div><h3>Your submission was successful</h3>You have modified or created a new postback url</div></div>";
}
if ($errors) {
    echo "<div class='warning'><div><h3>There were errors with your submission</h3>Please look at the errors below</div></div>";