Fourth pass at adding key files
This commit is contained in:
parent
08eb7b7da2
commit
67ccdbcc34
104
site/slowtwitch.com/www/.htaccess
Normal file
104
site/slowtwitch.com/www/.htaccess
Normal file
@ -0,0 +1,104 @@
|
||||
Header add X-Frame-Options "DENY"
|
||||
Header add Content-Security-Policy "frame-ancestors 'none';"
|
||||
|
||||
RewriteEngine On
|
||||
RewriteRule ^rss/?$ /rss/slowtwitch.rss [L]
|
||||
|
||||
RewriteRule ^FIST/(.+) FIST/$1 [L]
|
||||
RewriteRule ^aboutus.html /cgi-bin/articles/page.cgi?p=aboutus&t=twitch [L]
|
||||
RewriteRule ^advertise.html /cgi-bin/articles/page.cgi?p=advertise&t=twitch [L]
|
||||
RewriteRule ^404.html /cgi-bin/articles/page.cgi?p=404&t=twitch [L]
|
||||
RewriteRule ^chris_ad_zone.html /cgi-bin/articles/page.cgi?p=chris_ad_zone&t=twitch [L]
|
||||
RewriteRule ^retail_survey_0613.html /cgi-bin/articles/page.cgi?p=retail_survey_0613 [L]
|
||||
RewriteRule ^runstore_survey_0717.html /cgi-bin/articles/page.cgi?p=runstore_survey_0717 [L]
|
||||
RewriteRule ^saddle_tour_13.html /cgi-bin/articles/page.cgi?p=saddle_tour_13 [L]
|
||||
RewriteRule ^slowtwitch50_13.html /cgi-bin/articles/page.cgi?p=slowtwitch50_13 [L]
|
||||
RewriteRule ^privacy.html /cgi-bin/articles/page.cgi?p=privacy [L]
|
||||
RewriteRule ^agreement.html /cgi-bin/articles/page.cgi?p=agreement&t=twitch [L]
|
||||
RewriteRule ^agreement.html /cgi-bin/articles/page.cgi?p=agreement&t=twitch [L]
|
||||
RewriteRule ^stackreach.html /cgi-bin/articles/page.cgi?p=stackreach [L]
|
||||
RewriteRule ^Photos/(index.html)?$ /cgi-bin/articles/page.cgi?p=photos [L]
|
||||
RewriteRule ^Videos/(index.html)?$ /cgi-bin/articles/page.cgi?p=photos&video=1 [L]
|
||||
RewriteRule ^coaching/(index.html)?$ /cgi-bin/articles/page.cgi?p=coaching [L]
|
||||
RewriteRule ^podcast/(index.html)?$ /cgi-bin/articles/page.cgi?p=podcast [L]
|
||||
RewriteRule ^Articles/(index.html)?$ /cgi-bin/articles/page.cgi?p=articles [L]
|
||||
RewriteRule ^Races/(index.html)?$ /cgi-bin/articles/page.cgi?p=races [L]
|
||||
|
||||
RewriteRule ^Swim/(index.html)?$ /cgi-bin/articles/page.cgi?p=tag&tag=swim [L]
|
||||
RewriteRule ^Swim/more([0-9]+).html /cgi-bin/articles/page.cgi?p=tag&tag=swim;nh=$1 [QSA,L]
|
||||
|
||||
RewriteRule ^Bike/(index.html)?$ /cgi-bin/articles/page.cgi?p=tag&tag=bike [L]
|
||||
RewriteRule ^Bike/more([0-9]+).html /cgi-bin/articles/page.cgi?p=tag&tag=bike;nh=$1 [QSA,L]
|
||||
|
||||
RewriteRule ^Run/(index.html)?$ /cgi-bin/articles/page.cgi?p=tag&tag=run [L]
|
||||
RewriteRule ^Run/more([0-9]+).html /cgi-bin/articles/page.cgi?p=tag&tag=run;nh=$1 [QSA,L]
|
||||
|
||||
# remove this after pushing new site live
|
||||
#RewriteRule ^local-listings.html /retailers [L]
|
||||
#RewriteRule ^Articles/index.html /News/index.html [L]
|
||||
|
||||
|
||||
RewriteCond %{HTTP_HOST} !^www.slowtwitch.com$ [NC]
|
||||
RewriteRule ^(.*)$ https://www.slowtwitch.com/$1 [R=301,L]
|
||||
|
||||
# Links dynamic pages
|
||||
RewriteRule ^$ /cgi-bin/articles/page.cgi [QSA,L]
|
||||
RewriteRule ^index.html$ /cgi-bin/articles/page.cgi [QSA,L]
|
||||
|
||||
RewriteRule ^Photos/([A-Z].+/.+) /cgi-bin/articles/page.cgi?slideshow=1;g=/$1 [L,QSA]
|
||||
RewriteRule ^Photos/more([0-9]+).html /cgi-bin/articles/page.cgi?p=photos;nh=$1 [QSA,L]
|
||||
|
||||
RewriteRule ^swim/([A-Z].+/.+) /cgi-bin/articles/page.cgi?slideshow=1;g=/$1 [L,QSA]
|
||||
RewriteRule ^swim/more([0-9]+).html /cgi-bin/articles/page.cgi?p=photos;nh=$1 [QSA,L]
|
||||
|
||||
RewriteRule ^run/([A-Z].+/.+) /cgi-bin/articles/page.cgi?slideshow=1;g=/$1 [L,QSA]
|
||||
RewriteRule ^run/more([0-9]+).html /cgi-bin/articles/page.cgi?p=photos;nh=$1 [QSA,L]
|
||||
|
||||
RewriteRule ^bike/([A-Z].+/.+) /cgi-bin/articles/page.cgi?slideshow=1;g=/$1 [L,QSA]
|
||||
RewriteRule ^bike/more([0-9]+).html /cgi-bin/articles/page.cgi?p=photos;nh=$1 [QSA,L]
|
||||
|
||||
RewriteRule .+/.+j([0-9]+).html /cgi-bin/articles/jump.cgi?Detailed=$1 [L]
|
||||
RewriteRule ^([A-Z].+/.+) /cgi-bin/articles/page.cgi?g=/$1 [L,QSA]
|
||||
RewriteRule ^([a-z].+)/page_([0-9]+).html /cgi-bin/articles/page.cgi?g=$1;nh=$2 [QSA,L]
|
||||
|
||||
RewriteCond %{REQUEST_URI} !runshops/
|
||||
RewriteCond %{REQUEST_URI} !retailers/
|
||||
RewriteCond %{REQUEST_URI} !triclubs/
|
||||
RewriteCond %{REQUEST_URI} !fitters/
|
||||
RewriteCond %{REQUEST_URI} !calendar/
|
||||
RewriteCond %{REQUEST_URI} !coaches/
|
||||
RewriteCond %{REQUEST_URI} !stackreach/
|
||||
RewriteCond %{REQUEST_URI} !frontend/
|
||||
RewriteCond %{REQUEST_URI} !local/
|
||||
RewriteCond %{REQUEST_URI} !fit_calculator/
|
||||
RewriteCond %{REQUEST_URI} !coaching/
|
||||
RewriteCond %{REQUEST_URI} !podcast/
|
||||
RewriteCond %{REQUEST_URI} !adio/
|
||||
RewriteCond %{REQUEST_URI} !roadshow/
|
||||
RewriteCond %{REQUEST_URI} !road/
|
||||
RewriteCond %{REQUEST_URI} !road/
|
||||
|
||||
|
||||
RewriteRule ^([A-Za-z].+)/(index.html)?$ /cgi-bin/articles/page.cgi?g=$1 [QSA,L]
|
||||
|
||||
RewriteRule ^mainheadings/products/camps/fitcamp.html /News/F.I.S.T._Workshop_schedule_set_957.html [R=301,L]
|
||||
RewriteRule ^Training/Nordic_Skiing/Well_That_s_A_Classic_5539.html /Training/Nordic_Skiing/The_Triathlete_s_How-To_Guide_To_Classic_Skiing_j5539.html [R=301,L]
|
||||
RewriteRule ^mainheadings/techctr/bikefit06.html /Bike_Fit/F_I_S_T__Tri_bike_fit_system/index.html [R=301,L]
|
||||
RewriteRule ^live/nautica_south_beach_11.html /tick/viewer.php?ID=330 [L]
|
||||
RewriteRule ^live/cap_tex_11.html /tick/viewer.php?ID=334 [L]
|
||||
RewriteRule ^live/philadelphia_insurance_11.html /tick/viewer.php?ID=336 [L]
|
||||
RewriteRule ^live/minneapolis_11.html /tick/viewer.php?ID=338 [L]
|
||||
RewriteRule ^live/chicago_11.html /tick/viewer.php?ID=340 [L]
|
||||
RewriteRule ^live/losangeles_11.html /tick/viewer.php?ID=342 [L]
|
||||
RewriteRule ^live/dallas_11.html /tick/viewer.php?ID=344 [L]
|
||||
RewriteRule ^live/f1_12.html /tick/viewer.php?ID=346 [L]
|
||||
RewriteRule ^live/superfrog_12.html /tick/viewer.php?ID=348 [L]
|
||||
RewriteRule ^facebook/$ /cgi-bin/articles/facebook.cgi [L]
|
||||
RewriteRule ^facebook/([0-9]+)/$ /cgi-bin/articles/facebook.cgi?linkid=$1;%{QUERY_STRING} [L]
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^(.+_[0-9]+.html) /cgi-bin/articles/page.cgi?page2=$1 [L]
|
||||
|
||||
AddType application/rss+xml .rss
|
||||
|
||||
ErrorDocument 404 /404.html
|
4
site/slowtwitch.com/www/BingSiteAuth.xml
Normal file
4
site/slowtwitch.com/www/BingSiteAuth.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
<users>
|
||||
<user>39B6BF012502568781C0CD020F99D14F</user>
|
||||
</users>
|
496
site/slowtwitch.com/www/adio/add.php
Normal file
496
site/slowtwitch.com/www/adio/add.php
Normal file
@ -0,0 +1,496 @@
|
||||
<?PHP
|
||||
|
||||
/*NEED TO UPDATE:
|
||||
- Only admins can view the drop down box
|
||||
- Only users who have a registered advertiser account can request IOs
|
||||
*/
|
||||
|
||||
include("config.php");
|
||||
|
||||
if(!is_admin($user)){
|
||||
header('Location:'.$site_url.'/');
|
||||
}
|
||||
|
||||
if(!is_logged_in($user)){
|
||||
header('Location: '.$site_url);
|
||||
exit();
|
||||
}
|
||||
|
||||
$useruid = base64_decode($_SESSION['user_id']);
|
||||
|
||||
// set the page title
|
||||
$pagetitle = "Add an Insertion Order";
|
||||
|
||||
// set meta tags
|
||||
$meta_keywords = "add insertion order";
|
||||
$meta_description = "create advertising insertion order request";
|
||||
|
||||
?>
|
||||
|
||||
<? include("include_common_head.php"); ?>
|
||||
|
||||
<?
|
||||
|
||||
if($_POST[add_campaign] == true){
|
||||
include("add_X.php");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<body class="listings">
|
||||
<? include($common_path . "/ads/ad_wallpaper.html"); ?>
|
||||
|
||||
<div class="container">
|
||||
<? include($common_path . "/templates/include_header.php"); ?>
|
||||
<div class="main">
|
||||
<div class="contentwrapper clearfix">
|
||||
<? include("include_breadcrumb.php"); ?>
|
||||
|
||||
<section class="section listings section-has-widgets section-static remove-sidebar">
|
||||
<div class="sidebar-b">
|
||||
<? include("include_sidebar.php"); ?>
|
||||
</div>
|
||||
|
||||
<div class="content content-has-widgets">
|
||||
<div class="grid">
|
||||
|
||||
<div class="clearfix">
|
||||
|
||||
<?
|
||||
if( $insert_success == true || $_GET[confirmed] == "yes" ) { ?>
|
||||
<h1 class="content-title"><strong>Thank you</strong></h1>
|
||||
<p class="cont">Thank you. Your insertion orer request should be added within 24 hours. You will now be redirected back to the add page.</p>
|
||||
<META HTTP-EQUIV=Refresh CONTENT="4; URL=add.php">
|
||||
<?
|
||||
unset($insert_success);
|
||||
unset($confirm_campaign);
|
||||
?>
|
||||
<? } else if( $confirm_campaign == true ) { ?>
|
||||
<h1 class="content-title"><strong>Insertion Order Request: Step 2 of 2</strong></h1>
|
||||
<? }else if( ($confirm_campaign != true) || ($_POST[add_campaign] != true) ){ ?>
|
||||
<h1 class="content-title"><strong>Insertion Order Request: Step 1 of 2</strong></h1>
|
||||
<? if (!$errmsg) { ?>
|
||||
<p class="cont">This form allows for easy advertisement insertion order requests. Advertising collateral CANNOT be submitted via this form. This form is for insertion order request details only. Simply fill out the form below. Be sure to fill out every field. After filling out each field, click submit. <span style="color: red;">You will then be prompted to confirm your information before the information is sent to us.</span></p>
|
||||
|
||||
<?
|
||||
} else { ?>
|
||||
<p class="cont"><span style="color: red;"><? echo $errmsg; ?></span></p>
|
||||
<? } ?>
|
||||
<? }
|
||||
|
||||
// begin insert form
|
||||
if( (($_POST[add_campaign] != true) || ($errmsg) || (($confirm_campaign != true) && ($_POST[insert_campaign] != true))) && $_GET[confirmed] != "yes") {
|
||||
|
||||
?>
|
||||
|
||||
<form enctype="multipart/form-data" action="add.php" method="post">
|
||||
|
||||
<? //var_dump($_POST); ?>
|
||||
<div class="dtable form">
|
||||
<div class="drow">
|
||||
<div class="dcell name">Advertiser</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? if(isset($_GET[account_id])) {
|
||||
$account_id = $_GET[account_id];
|
||||
$sql = "SELECT * FROM io_account WHERE account_id = \"".$account_id."\" LIMIT 1";
|
||||
$fetch = mysql_fetch_array(mysql_query($sql) OR die(mysql_error()));
|
||||
$account_name = $fetch[account_advertiser];
|
||||
echo "This insertion order is being connected to advertiser: ".$advertiser;
|
||||
echo ("<input type=\"hidden\" name=\"account_name\" value=\"".$account_name."\">");
|
||||
echo ("<input type=\"hidden\" name=\"account_id\" value=\"".$account_id."\">");
|
||||
} elseif (isset($_POST[account_id])) {
|
||||
$account_id = $_POST[account_id];
|
||||
$sql = "SELECT * FROM io_account WHERE account_id = \"".$account_id."\" LIMIT 1";
|
||||
$fetch = mysql_fetch_array(mysql_query($sql)) OR die(mysql_error());
|
||||
$account_name = $fetch[account_advertiser];
|
||||
echo "This insertion order is being connected to advertiser: ".$account_name;
|
||||
echo ("<input type=\"hidden\" name=\"account_name\" value=\"".$account_name."\">");
|
||||
echo ("<input type=\"hidden\" name=\"account_id\" value=\"".$account_id."\">");
|
||||
} else {
|
||||
//echo ("please select the advertiser from the following drop down: ");
|
||||
$ad_sql = "SELECT * FROM io_account WHERE 1=1";
|
||||
$ad_results = mysql_query($ad_sql) OR die(mysql_error());
|
||||
echo ("<select name=\"account_id\">");
|
||||
while ($ad_row = mysql_fetch_array($ad_results)) {
|
||||
echo ("<option value=\"$ad_row[account_id]\">$ad_row[account_advertiser]");
|
||||
}
|
||||
echo ("</select>");
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Campaign Name</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input value="<? echo stripslashes($_POST[name]); ?>" type="text" name="name" class="txt lngtext" maxlength="80">
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">300x250</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="hidden" name="300x250" value="0"><input value="1" type="checkbox" name="300x250" <? if($_POST['300x250'] == 1) {echo "checked";} ?>>
|
||||
<? /* need to insert checking in case of edit here on the value side */ ?> Number of Impressions: <input value="<? echo stripslashes($_POST['300x250_impression']); ?>" type="text" name="300x250_impression" class="txt shotext">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">728x90</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="hidden" name="728x90" value="0"><input value="1" type="checkbox" name="728x90" <? if($_POST['728x90'] == 1) {echo "checked";} ?>>
|
||||
<? /* need to insert checking in case of edit here on the value side */ ?> Number of Impressions: <input value="<? echo stripslashes($_POST['728x90_impression']); ?>" type="text" name="728x90_impression" class="txt shotext">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">300x600</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="hidden" name="300x600" value="0"><input value="1" type="checkbox" name="300x600" <? if($_POST['300x600'] == 1) {echo "checked";} ?>>
|
||||
<? /* need to insert checking in case of edit here on the value side */ ?> Number of Impressions: <input value="<? echo stripslashes($_POST['300x600_impression']); ?>" type="text" name="300x600_impression" class="txt shotext">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">970x250</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="hidden" name="970x250" value="0"><input value="1" type="checkbox" name="970x250" <? if($_POST['970x250'] == 1) {echo "checked";} ?>>
|
||||
<? /* need to insert checking in case of edit here on the value side */ ?> Number of Impressions: <input value="<? echo stripslashes($_POST['970x250_impression']); ?>" type="text" name="970x250_impression" class="txt shotext">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Wallpaper</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="hidden" name="wallpaper" value="0"><input value="1" type="checkbox" name="wallpaper" <? if($_POST['wallpaper'] == 1) {echo "checked";} ?>>
|
||||
<? /* need to insert checking in case of edit here on the value side */ ?> Number of Impressions: <input value="<? echo stripslashes($_POST['wallpaper_impression']); ?>" type="text" name="wallpaper_impression" class="txt shotext">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="drow">
|
||||
<div class="dcell name">Start Date</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<select name="month">
|
||||
<option value="0">Month</option>
|
||||
<option value="01" <? if(strcmp($_POST[month], "01") == 0){ echo ("selected"); } ?>>January</option>
|
||||
<option value="02" <? if(strcmp($_POST[month], "02") == 0){ echo ("selected"); } ?>>February</option>
|
||||
<option value="03" <? if(strcmp($_POST[month], "03") == 0){ echo ("selected"); } ?>>March</option>
|
||||
<option value="04" <? if(strcmp($_POST[month], "04") == 0){ echo ("selected"); } ?>>April</option>
|
||||
<option value="05" <? if(strcmp($_POST[month], "05") == 0){ echo ("selected"); } ?>>May</option>
|
||||
<option value="06" <? if(strcmp($_POST[month], "06") == 0){ echo ("selected"); } ?>>June</option>
|
||||
<option value="07" <? if(strcmp($_POST[month], "07") == 0){ echo ("selected"); } ?>>July</option>
|
||||
<option value="08" <? if(strcmp($_POST[month], "08") == 0){ echo ("selected"); } ?>>August</option>
|
||||
<option value="09" <? if(strcmp($_POST[month], "09") == 0){ echo ("selected"); } ?>>September</option>
|
||||
<option value="10" <? if(strcmp($_POST[month], "10") == 0){ echo ("selected"); } ?>>October</option>
|
||||
<option value="11" <? if(strcmp($_POST[month], "11") == 0){ echo ("selected"); } ?>>November</option>
|
||||
<option value="12" <? if(strcmp($_POST[month], "12") == 0){ echo ("selected"); } ?>>December</option>
|
||||
</select>
|
||||
<select name="day">
|
||||
<option value="0">Day</option>
|
||||
<option value="01" <? if(strcmp($_POST[day], "01") == 0){ echo ("selected"); } ?>>1</option>
|
||||
<option value="02" <? if(strcmp($_POST[day], "02") == 0){ echo ("selected"); } ?>>2</option>
|
||||
<option value="03" <? if(strcmp($_POST[day], "03") == 0){ echo ("selected"); } ?>>3</option>
|
||||
<option value="04" <? if(strcmp($_POST[day], "04") == 0){ echo ("selected"); } ?>>4</option>
|
||||
<option value="05" <? if(strcmp($_POST[day], "05") == 0){ echo ("selected"); } ?>>5</option>
|
||||
<option value="06" <? if(strcmp($_POST[day], "06") == 0){ echo ("selected"); } ?>>6</option>
|
||||
<option value="07" <? if(strcmp($_POST[day], "07") == 0){ echo ("selected"); } ?>>7</option>
|
||||
<option value="08" <? if(strcmp($_POST[day], "08") == 0){ echo ("selected"); } ?>>8</option>
|
||||
<option value="09" <? if(strcmp($_POST[day], "09") == 0){ echo ("selected"); } ?>>9</option>
|
||||
<option value="10" <? if(strcmp($_POST[day], "10") == 0){ echo ("selected"); } ?>>10</option>
|
||||
<option value="11" <? if(strcmp($_POST[day], "11") == 0){ echo ("selected"); } ?>>11</option>
|
||||
<option value="12" <? if(strcmp($_POST[day], "12") == 0){ echo ("selected"); } ?>>12</option>
|
||||
<option value="13" <? if(strcmp($_POST[day], "13") == 0){ echo ("selected"); } ?>>13</option>
|
||||
<option value="14" <? if(strcmp($_POST[day], "14") == 0){ echo ("selected"); } ?>>14</option>
|
||||
<option value="15" <? if(strcmp($_POST[day], "15") == 0){ echo ("selected"); } ?>>15</option>
|
||||
<option value="16" <? if(strcmp($_POST[day], "16") == 0){ echo ("selected"); } ?>>16</option>
|
||||
<option value="17" <? if(strcmp($_POST[day], "17") == 0){ echo ("selected"); } ?>>17</option>
|
||||
<option value="18" <? if(strcmp($_POST[day], "18") == 0){ echo ("selected"); } ?>>18</option>
|
||||
<option value="19" <? if(strcmp($_POST[day], "19") == 0){ echo ("selected"); } ?>>19</option>
|
||||
<option value="20" <? if(strcmp($_POST[day], "20") == 0){ echo ("selected"); } ?>>20</option>
|
||||
<option value="21" <? if(strcmp($_POST[day], "21") == 0){ echo ("selected"); } ?>>21</option>
|
||||
<option value="22" <? if(strcmp($_POST[day], "22") == 0){ echo ("selected"); } ?>>22</option>
|
||||
<option value="23" <? if(strcmp($_POST[day], "23") == 0){ echo ("selected"); } ?>>23</option>
|
||||
<option value="24" <? if(strcmp($_POST[day], "24") == 0){ echo ("selected"); } ?>>24</option>
|
||||
<option value="25" <? if(strcmp($_POST[day], "25") == 0){ echo ("selected"); } ?>>25</option>
|
||||
<option value="26" <? if(strcmp($_POST[day], "26") == 0){ echo ("selected"); } ?>>26</option>
|
||||
<option value="27" <? if(strcmp($_POST[day], "27") == 0){ echo ("selected"); } ?>>27</option>
|
||||
<option value="28" <? if(strcmp($_POST[day], "28") == 0){ echo ("selected"); } ?>>28</option>
|
||||
<option value="29" <? if(strcmp($_POST[day], "29") == 0){ echo ("selected"); } ?>>29</option>
|
||||
<option value="30" <? if(strcmp($_POST[day], "30") == 0){ echo ("selected"); } ?>>30</option>
|
||||
<option value="31" <? if(strcmp($_POST[day], "31") == 0){ echo ("selected"); } ?>>31</option>
|
||||
</select>
|
||||
<select name="year">
|
||||
<option value="2017" select="selected">2017</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Repeat Date</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<select name="month_repeat">
|
||||
<option value="0">Month</option>
|
||||
<option value="01" <? if(strcmp($_POST[month_repeat], "01") == 0){ echo ("selected"); } ?>>January</option>
|
||||
<option value="02" <? if(strcmp($_POST[month_repeat], "02") == 0){ echo ("selected"); } ?>>February</option>
|
||||
<option value="03" <? if(strcmp($_POST[month_repeat], "03") == 0){ echo ("selected"); } ?>>March</option>
|
||||
<option value="04" <? if(strcmp($_POST[month_repeat], "04") == 0){ echo ("selected"); } ?>>April</option>
|
||||
<option value="05" <? if(strcmp($_POST[month_repeat], "05") == 0){ echo ("selected"); } ?>>May</option>
|
||||
<option value="06" <? if(strcmp($_POST[month_repeat], "06") == 0){ echo ("selected"); } ?>>June</option>
|
||||
<option value="07" <? if(strcmp($_POST[month_repeat], "07") == 0){ echo ("selected"); } ?>>July</option>
|
||||
<option value="08" <? if(strcmp($_POST[month_repeat], "08") == 0){ echo ("selected"); } ?>>August</option>
|
||||
<option value="09" <? if(strcmp($_POST[month_repeat], "09") == 0){ echo ("selected"); } ?>>September</option>
|
||||
<option value="10" <? if(strcmp($_POST[month_repeat], "10") == 0){ echo ("selected"); } ?>>October</option>
|
||||
<option value="11" <? if(strcmp($_POST[month_repeat], "11") == 0){ echo ("selected"); } ?>>November</option>
|
||||
<option value="12" <? if(strcmp($_POST[month_repeat], "12") == 0){ echo ("selected"); } ?>>December</option>
|
||||
</select>
|
||||
<select name="day_repeat">
|
||||
<option value="0">Day</option>
|
||||
<option value="01" <? if(strcmp($_POST[day_repeat], "01") == 0){ echo ("selected"); } ?>>1</option>
|
||||
<option value="02" <? if(strcmp($_POST[day_repeat], "02") == 0){ echo ("selected"); } ?>>2</option>
|
||||
<option value="03" <? if(strcmp($_POST[day_repeat], "03") == 0){ echo ("selected"); } ?>>3</option>
|
||||
<option value="04" <? if(strcmp($_POST[day_repeat], "04") == 0){ echo ("selected"); } ?>>4</option>
|
||||
<option value="05" <? if(strcmp($_POST[day_repeat], "05") == 0){ echo ("selected"); } ?>>5</option>
|
||||
<option value="06" <? if(strcmp($_POST[day_repeat], "06") == 0){ echo ("selected"); } ?>>6</option>
|
||||
<option value="07" <? if(strcmp($_POST[day_repeat], "07") == 0){ echo ("selected"); } ?>>7</option>
|
||||
<option value="08" <? if(strcmp($_POST[day_repeat], "08") == 0){ echo ("selected"); } ?>>8</option>
|
||||
<option value="09" <? if(strcmp($_POST[day_repeat], "09") == 0){ echo ("selected"); } ?>>9</option>
|
||||
<option value="10" <? if(strcmp($_POST[day_repeat], "10") == 0){ echo ("selected"); } ?>>10</option>
|
||||
<option value="11" <? if(strcmp($_POST[day_repeat], "11") == 0){ echo ("selected"); } ?>>11</option>
|
||||
<option value="12" <? if(strcmp($_POST[day_repeat], "12") == 0){ echo ("selected"); } ?>>12</option>
|
||||
<option value="13" <? if(strcmp($_POST[day_repeat], "13") == 0){ echo ("selected"); } ?>>13</option>
|
||||
<option value="14" <? if(strcmp($_POST[day_repeat], "14") == 0){ echo ("selected"); } ?>>14</option>
|
||||
<option value="15" <? if(strcmp($_POST[day_repeat], "15") == 0){ echo ("selected"); } ?>>15</option>
|
||||
<option value="16" <? if(strcmp($_POST[day_repeat], "16") == 0){ echo ("selected"); } ?>>16</option>
|
||||
<option value="17" <? if(strcmp($_POST[day_repeat], "17") == 0){ echo ("selected"); } ?>>17</option>
|
||||
<option value="18" <? if(strcmp($_POST[day_repeat], "18") == 0){ echo ("selected"); } ?>>18</option>
|
||||
<option value="19" <? if(strcmp($_POST[day_repeat], "19") == 0){ echo ("selected"); } ?>>19</option>
|
||||
<option value="20" <? if(strcmp($_POST[day_repeat], "20") == 0){ echo ("selected"); } ?>>20</option>
|
||||
<option value="21" <? if(strcmp($_POST[day_repeat], "21") == 0){ echo ("selected"); } ?>>21</option>
|
||||
<option value="22" <? if(strcmp($_POST[day_repeat], "22") == 0){ echo ("selected"); } ?>>22</option>
|
||||
<option value="23" <? if(strcmp($_POST[day_repeat], "23") == 0){ echo ("selected"); } ?>>23</option>
|
||||
<option value="24" <? if(strcmp($_POST[day_repeat], "24") == 0){ echo ("selected"); } ?>>24</option>
|
||||
<option value="25" <? if(strcmp($_POST[day_repeat], "25") == 0){ echo ("selected"); } ?>>25</option>
|
||||
<option value="26" <? if(strcmp($_POST[day_repeat], "26") == 0){ echo ("selected"); } ?>>26</option>
|
||||
<option value="27" <? if(strcmp($_POST[day_repeat], "27") == 0){ echo ("selected"); } ?>>27</option>
|
||||
<option value="28" <? if(strcmp($_POST[day_repeat], "28") == 0){ echo ("selected"); } ?>>28</option>
|
||||
<option value="29" <? if(strcmp($_POST[day_repeat], "29") == 0){ echo ("selected"); } ?>>29</option>
|
||||
<option value="30" <? if(strcmp($_POST[day_repeat], "30") == 0){ echo ("selected"); } ?>>30</option>
|
||||
<option value="31" <? if(strcmp($_POST[day_repeat], "31") == 0){ echo ("selected"); } ?>>31</option>
|
||||
</select>
|
||||
<select name="year_repeat">
|
||||
<option value="2017" select="selected">2017</option>
|
||||
</select>Specify additional dates in NOTES
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="drow">
|
||||
<div class="dcell name">Notes</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<textarea name="notes" rows="7" class="txt lngtext" placeholder="Please add any additional notes here. Additional repeat dates may be added here as well."><? if($_POST[notes]){ echo strip_tags(stripslashes($_POST[notes])); } ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<? if ($_SESSION[user_id] == $fetch[account_user_id_fk]) { ?>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Signature</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
By signing your name here, you are agreeing to the terms of the Slowtwitch Advertising Contract for this insertion order.<br />
|
||||
<input value="" type="text" name="signature" class="txt midtext">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<? } ?>
|
||||
<div class="drow actions">
|
||||
<div class="dcell name"></div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="submit" value="Submit" class="btn">
|
||||
<input type="hidden" name="add_campaign" value="true">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<? }
|
||||
// end insert form
|
||||
|
||||
// begin confirmation form
|
||||
if($confirm_campaign == true){
|
||||
|
||||
?>
|
||||
Please confirm your information. If everything is correct, click the submit button. Otherwise, you may click the edit button to change your information before submitting.</div>
|
||||
<br />
|
||||
|
||||
<? //var_dump($_POST); ?>
|
||||
|
||||
<div class="dtable form">
|
||||
<div class="drow">
|
||||
<div class="dcell name">Advertiser</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? if (isset($_POST[account_name])) { echo stripslashes($_POST[account_name]); } else { $account_id = $_POST[account_id];
|
||||
$sql = "SELECT * FROM io_account WHERE account_id = \"".$account_id."\" LIMIT 1";
|
||||
$fetch = mysql_fetch_array(mysql_query($sql)) OR die(mysql_error());
|
||||
$_POST[account_name] = $fetch[account_advertiser];
|
||||
echo $_POST[account_name]; } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Name</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo stripslashes($_POST[name]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">300x250</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? if ($_POST['300x250'] == 1) { echo "Yes, for ".$_POST['300x250_impression']; } else { echo "No."; } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">728x90</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? if ($_POST['728x90'] == 1) { echo "Yes, for ".$_POST['728x90_impression']; } else { echo "No."; } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">300x600</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? if ($_POST['300x600'] == 1) { echo "Yes, for ".$_POST['300x600_impression']; } else { echo "No."; } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">970x250</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? if ($_POST['970x250'] == 1) { echo "Yes, for ".$_POST['970x250_impression']; } else { echo "No."; } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Wallpaper</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? if ($_POST['wallpaper'] == 1) { echo "Yes, for ".$_POST['wallpaper_impression']; } else { echo "No."; } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Start Date</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo "$month/$day/$year"; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Repeat Date</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? if ($month_repeat != "0") { echo "$month_repeat/$day_repeat/$year_repeat"; } else { echo "No repeat set."; } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Notes</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo strip_tags(stripslashes($_POST[notes])) ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow actions">
|
||||
<div class="dcell name"></div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<form action="add.php" method="post">
|
||||
<input type="hidden" name="name" value="<? echo stripslashes(htmlspecialchars($_POST[name])); ?>">
|
||||
|
||||
<input type="hidden" name="account_id" value="<? echo stripslashes(htmlspecialchars($_POST[account_id])); ?>">
|
||||
<input type="hidden" name="account_name" value="<? echo stripslashes(htmlspecialchars($_POST[account_name])); ?>">
|
||||
|
||||
<input type="hidden" name="300x250" value="<? echo stripslashes(htmlspecialchars($_POST['300x250'])); ?>">
|
||||
<input type="hidden" name="300x250_impression" value="<? echo stripslashes(htmlspecialchars($_POST['300x250_impression'])); ?>">
|
||||
<input type="hidden" name="728x90" value="<? echo stripslashes(htmlspecialchars($_POST['728x90'])); ?>">
|
||||
<input type="hidden" name="728x90_impression" value="<? echo stripslashes(htmlspecialchars($_POST['728x90_impression'])); ?>">
|
||||
<input type="hidden" name="300x600" value="<? echo stripslashes(htmlspecialchars($_POST['300x600'])); ?>">
|
||||
<input type="hidden" name="300x600_impression" value="<? echo stripslashes(htmlspecialchars($_POST['300x600_impression'])); ?>">
|
||||
<input type="hidden" name="970x250" value="<? echo stripslashes(htmlspecialchars($_POST['970x250'])); ?>">
|
||||
<input type="hidden" name="970x250_impression" value="<? echo stripslashes(htmlspecialchars($_POST['970x250_impression'])); ?>">
|
||||
<input type="hidden" name="wallpaper" value="<? echo stripslashes(htmlspecialchars($_POST['wallpaper'])); ?>">
|
||||
<input type="hidden" name="wallpaper_impression" value="<? echo stripslashes(htmlspecialchars($_POST['wallpaper_impression'])); ?>">
|
||||
|
||||
<input type="hidden" name="month" value="<? echo $_POST[month]; ?>">
|
||||
<input type="hidden" name="day" value="<? echo $_POST[day]; ?>">
|
||||
<input type="hidden" name="year" value="<? echo $_POST[year]; ?>">
|
||||
|
||||
<input type="hidden" name="month_repeat" value="<? echo $_POST[month_repeat]; ?>">
|
||||
<input type="hidden" name="day_repeat" value="<? echo $_POST[day_repeat]; ?>">
|
||||
<input type="hidden" name="year_repeat" value="<? echo $_POST[year_repeat]; ?>">
|
||||
|
||||
<input type="hidden" name="notes" value="<? echo stripslashes(htmlspecialchars($_POST[notes])); ?>">
|
||||
<input type="hidden" name="add_campaign" value="true">
|
||||
<input type="hidden" name="insert_campaign" value="true">
|
||||
<input type="hidden" name="submitted_by" value="<? echo $useruid; ?>" >
|
||||
<input type="submit" name="submit" value="Submit Info" class="btn float-left" style="margin-right: 5px;"/>
|
||||
</form>
|
||||
<form action="add.php" method="post">
|
||||
<input type="hidden" name="name" value="<? echo stripslashes(htmlspecialchars($_POST[name])); ?>">
|
||||
|
||||
<input type="hidden" name="account_id" value="<? echo stripslashes(htmlspecialchars($_POST[account_id])); ?>">
|
||||
<input type="hidden" name="account_name" value="<? echo stripslashes(htmlspecialchars($_POST[account_name])); ?>">
|
||||
|
||||
<input type="hidden" name="300x250" value="<? echo stripslashes(htmlspecialchars($_POST['300x250'])); ?>">
|
||||
<input type="hidden" name="300x250_impression" value="<? echo stripslashes(htmlspecialchars($_POST['300x250_impression'])); ?>">
|
||||
<input type="hidden" name="728x90" value="<? echo stripslashes(htmlspecialchars($_POST['728x90'])); ?>">
|
||||
<input type="hidden" name="728x90_impression" value="<? echo stripslashes(htmlspecialchars($_POST['728x90_impression'])); ?>">
|
||||
<input type="hidden" name="300x600" value="<? echo stripslashes(htmlspecialchars($_POST['300x600'])); ?>">
|
||||
<input type="hidden" name="300x600_impression" value="<? echo stripslashes(htmlspecialchars($_POST['300x600_impression'])); ?>">
|
||||
<input type="hidden" name="970x250" value="<? echo stripslashes(htmlspecialchars($_POST['970x250'])); ?>">
|
||||
<input type="hidden" name="970x250_impression" value="<? echo stripslashes(htmlspecialchars($_POST['970x250_impression'])); ?>">
|
||||
<input type="hidden" name="wallpaper" value="<? echo stripslashes(htmlspecialchars($_POST['wallpaper'])); ?>">
|
||||
<input type="hidden" name="wallpaper_impression" value="<? echo stripslashes(htmlspecialchars($_POST['wallpaper_impression'])); ?>">
|
||||
|
||||
<input type="hidden" name="month" value="<? echo $_POST[month]; ?>">
|
||||
<input type="hidden" name="day" value="<? echo $_POST[day]; ?>">
|
||||
<input type="hidden" name="year" value="<? echo $_POST[year]; ?>">
|
||||
|
||||
<input type="hidden" name="month_repeat" value="<? echo $_POST[month_repeat]; ?>">
|
||||
<input type="hidden" name="day_repeat" value="<? echo $_POST[day_repeat]; ?>">
|
||||
<input type="hidden" name="year_repeat" value="<? echo $_POST[year_repeat]; ?>">
|
||||
|
||||
<input type="hidden" name="notes" value="<? echo stripslashes(htmlspecialchars($_POST[notes])); ?>">
|
||||
<input type="hidden" name="confirm_campaign" value="0">
|
||||
<input type="submit" name="submit" value="Edit Information" class="btn float-left" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
//end confirmation form
|
||||
?>
|
||||
|
||||
</div><!-- end col-2/3 -->
|
||||
|
||||
</div><!-- end grid -->
|
||||
</div><!-- end content -->
|
||||
</section>
|
||||
|
||||
|
||||
</div><!-- end contentwrapper -->
|
||||
</div> <!-- end main -->
|
||||
|
||||
<? include($common_path . "/templates/include_footer.php") ?>
|
||||
</div> <!-- container -->
|
||||
</body>
|
||||
<? include($common_path . "/templates/include_global_js.php") ?>
|
||||
</html>
|
118
site/slowtwitch.com/www/adio/add_X.php
Normal file
118
site/slowtwitch.com/www/adio/add_X.php
Normal file
@ -0,0 +1,118 @@
|
||||
<?PHP
|
||||
|
||||
if (!$_POST){ header('Location: '.$site_url); }
|
||||
|
||||
/*
|
||||
|
||||
FIELD NAMES:
|
||||
campaign_id
|
||||
campaign_account_id_fk
|
||||
campaign_name
|
||||
campaign_300x250
|
||||
campaign_300x250_impression
|
||||
campaign_728x90
|
||||
campaign_728x90_impression
|
||||
campaign_300x600
|
||||
campaign_300x600_impression
|
||||
campaign_970x250
|
||||
campaign_970x250_impression
|
||||
campaign_wallpaper
|
||||
campaign_wallpaper_impression
|
||||
campaign_date
|
||||
campaign_date_repeat
|
||||
campaign_signature
|
||||
campaign_signature_timestamp
|
||||
campaign_deploy_timestamp
|
||||
campaign_screenshot_timestamp
|
||||
campaign_invoice_timestamp
|
||||
campaign_notes
|
||||
campaign_archive
|
||||
campaign_archive_timestamp
|
||||
campaign_archive_prior_id_fk
|
||||
|
||||
*/
|
||||
|
||||
/* Need to ltrim and rtrim commas before insertion */
|
||||
|
||||
//Insert into database
|
||||
//$pass = 'abc123';
|
||||
$errmsg = NULL;
|
||||
$insert_success = NULL;
|
||||
//Check for blank fields
|
||||
if ((!$_POST[name])) $errmsg = $errmsg."Campaign name cannot be left blank, ";
|
||||
|
||||
if ($_POST['300x250'] == 1 && $_POST['300x250_impression'] == "") { $errmsg = $errmsg."You must specify a number of impressions if you select 300x250 ad unit, "; }
|
||||
if ($_POST['300x250'] == 1 && $_POST['300x250_impression'] != "" && !is_numeric($_POST['300x250_impression'])) { $errmsg = $errmsg."300x250 impressions must be a number, "; }
|
||||
|
||||
if ($_POST['728x90'] == 1 && $_POST['728x90_impression'] == "") { $errmsg = $errmsg."You must specify a number of impressions if you select 728x90 ad unit, "; }
|
||||
if ($_POST['728x90'] == 1 && $_POST['728x90_impression'] != "" && !is_numeric($_POST['728x90_impression'])) { $errmsg = $errmsg."728x90 impressions must be a number, "; }
|
||||
|
||||
if ($_POST['300x600'] == 1 && $_POST['300x600_impression'] == "") { $errmsg = $errmsg."You must specify a number of impressions if you select 300x600 ad unit, "; }
|
||||
if ($_POST['300x600'] == 1 && $_POST['300x600_impression'] != "" && !is_numeric($_POST['300x600_impression'])) { $errmsg = $errmsg."300x600 impressions must be a number, "; }
|
||||
|
||||
if ($_POST['970x250'] == 1 && $_POST['970x250_impression'] == "") { $errmsg = $errmsg."You must specify a number of impressions if you select 970x250 ad unit, "; }
|
||||
if ($_POST['970x250'] == 1 && $_POST['970x250_impression'] != "" && !is_numeric($_POST['970x250_impression'])) { $errmsg = $errmsg."970x250 impressions must be a number, "; }
|
||||
|
||||
if ($_POST['wallpaper'] == 1 && $_POST['wallpaper_impression'] == "") { $errmsg = $errmsg."You must specify a number of impressions if you select wallpaper ad unit, "; }
|
||||
if ($_POST['wallpaper'] == 1 && $_POST['wallpaper_impression'] != "" && !is_numeric($_POST['wallpaper_impression'])) { $errmsg = $errmsg."Wallpaper impressions must be a number, "; }
|
||||
|
||||
if ($_POST['month']==0) $errmsg = $errmsg.'Start month cannot be left blank, ';
|
||||
if ($_POST['day']==0) $errmsg = $errmsg.'Start day cannot be left blank, ';
|
||||
|
||||
if (strlen($_POST['notes']) < 4) $errmsg = $errmsg."Notes cannot be left blank, ";
|
||||
if (isset($errmsg)) {
|
||||
$errmsg = rtrim($errmsg, ", ");
|
||||
$errmsg = $errmsg."<br />";
|
||||
}
|
||||
|
||||
|
||||
// begin error message check
|
||||
if(!$errmsg){
|
||||
|
||||
$account_id = $_POST['account_id'];
|
||||
|
||||
$name = trim($_POST['name']);
|
||||
|
||||
$date_repeat = NULL;
|
||||
if (isset($_POST['day_repeat']) && isset($_POST['month_repeat'])) {
|
||||
$year_repeat = $_POST['year_repeat'];
|
||||
$month_repeat = $_POST['month_repeat'];
|
||||
$day_repeat = $_POST['day_repeat'];
|
||||
$date_repeat = "$year_repeat-$month_repeat-$day_repeat";
|
||||
}
|
||||
|
||||
$ad_300x250 = $_POST['300x250'];
|
||||
$ad_300x250_impression = trim($_POST['300x250_impression']);
|
||||
$ad_728x90 = $_POST['728x90'];
|
||||
$ad_728x90_impression = trim($_POST['728x90_impression']);
|
||||
$ad_300x600 = $_POST['300x600'];
|
||||
$ad_300x600_impression = trim($_POST['300x600_impression']);
|
||||
$ad_970x250 = $_POST['970x250'];
|
||||
$ad_970x250_impression = trim($_POST['900x250_impression']);
|
||||
$ad_wallpaper = $_POST['wallpaper'];
|
||||
$ad_wallpaper_impression = trim($_POST['wallpaper_impression']);
|
||||
|
||||
$year = $_POST['year'];
|
||||
$month = $_POST['month'];
|
||||
$day = $_POST['day'];
|
||||
$date = "$year-$month-$day";
|
||||
|
||||
$notes = mysql_escape_string(nl2br(substr(trim($_POST['notes']), 0, 4096)));
|
||||
|
||||
// begin boolean check to see if we should insert the coach into the dbase
|
||||
if($_POST[insert_campaign] == true){
|
||||
$sql = "INSERT INTO io_campaign (`campaign_account_id_fk`, `campaign_name`, `campaign_300x250`, `campaign_300x250_impression`, `campaign_728x90`, `campaign_728x90_impression`, `campaign_300x600`, `campaign_300x600_impression`, `campaign_970x250`, `campaign_970x250_impression`, `campaign_wallpaper`, `campaign_wallpaper_impression`, `campaign_date`, `campaign_date_repeat`, `campaign_notes`) VALUES ('$account_id', '$name', '$ad_300x250', '$ad_300x250_impression', '$ad_728x90', '$ad_728x90_impression', '$ad_300x600', '$ad_300x600_impression', '$ad_970x250', '$ad_970x250_impression', '$ad_wallpaper', '$ad_wallpaper_impression', '$date', '$date_repeat', '$notes')";
|
||||
//echo("campaign entered!<br />");
|
||||
//echo($sql);
|
||||
mysql_query($sql) OR die(mysql_error());
|
||||
//exit();
|
||||
$insert_success = true;
|
||||
}else{
|
||||
//echo("campaign NOT entered.");
|
||||
$confirm_campaign = true;
|
||||
}
|
||||
// end insert check
|
||||
|
||||
}
|
||||
// end error message check
|
||||
?>
|
65
site/slowtwitch.com/www/adio/advertiser.php
Normal file
65
site/slowtwitch.com/www/adio/advertiser.php
Normal file
@ -0,0 +1,65 @@
|
||||
<?PHP include("config.php");
|
||||
|
||||
// need to update code so that users are automatically taken to the page for their individual account here.
|
||||
|
||||
if(!is_admin($user)){
|
||||
header('Location:'.$site_url.'/');
|
||||
}
|
||||
|
||||
// set the page title
|
||||
$pagetitle = "Advertiser Accounts";
|
||||
|
||||
// set meta tags
|
||||
$meta_keywords = "advert io";
|
||||
$meta_description = "tool for requesting an ad isertion";
|
||||
?>
|
||||
|
||||
<? include("include_common_head.php"); ?>
|
||||
<body class="listings">
|
||||
<? include($common_path . "/ads/ad_wallpaper.html"); ?>
|
||||
|
||||
<div class="container">
|
||||
<? include($common_path . "/templates/include_header.php"); ?>
|
||||
<div class="main">
|
||||
<div class="contentwrapper clearfix">
|
||||
<? include("include_breadcrumb.php"); ?>
|
||||
|
||||
<section class="section listings section-has-widgets section-static remove-sidebar">
|
||||
<div class="sidebar-b">
|
||||
<? include("include_sidebar.php"); ?>
|
||||
</div>
|
||||
|
||||
<div class="content content-has-widgets">
|
||||
<div class="grid">
|
||||
|
||||
<div class="clearfix">
|
||||
<h1 class="float-left">Admin: Advertiser Accounts</h1>
|
||||
<? /**if (is_logged_in($user)) { ?>
|
||||
<a href="<? echo $site_url . '/add.php' ?>" class="btn btn-white float-right">Request IO</a>
|
||||
<? }**/ ?>
|
||||
<hr class="line" />
|
||||
<h2>All Advertisers</h2>
|
||||
<hr />
|
||||
<?
|
||||
|
||||
$ad_sql = "SELECT * FROM io_account WHERE 1=1";
|
||||
$ad_results = mysql_query($ad_sql) OR die(mysql_error());
|
||||
while ($ad_row = mysql_fetch_array($ad_results)) {
|
||||
include("include_advertiser.php");
|
||||
}
|
||||
?>
|
||||
|
||||
</div><!-- end col-2/3 -->
|
||||
|
||||
</div><!-- end grid -->
|
||||
</div><!-- end content -->
|
||||
</section>
|
||||
|
||||
</div><!-- end contentwrapper -->
|
||||
</div> <!-- end main -->
|
||||
|
||||
<? include($common_path . "/templates/include_footer.php") ?>
|
||||
</div> <!-- container -->
|
||||
</body>
|
||||
<? include($common_path . "/templates/include_global_js.php") ?>
|
||||
</html>
|
127
site/slowtwitch.com/www/adio/advertiser_account.php
Normal file
127
site/slowtwitch.com/www/adio/advertiser_account.php
Normal file
@ -0,0 +1,127 @@
|
||||
<?PHP
|
||||
|
||||
include("config.php");
|
||||
|
||||
if(!is_admin($user)){
|
||||
header('Location:'.$site_url.'/');
|
||||
}
|
||||
|
||||
$account_idhere = mysql_escape_string($_GET[account_id]);
|
||||
$results = mysql_query("SELECT * FROM io_account WHERE account_id=".$account_idhere." LIMIT 1");
|
||||
$row = mysql_fetch_array($results);
|
||||
if (!$row){header('Location: '.$site_url.'/?error=invalid_id');}
|
||||
|
||||
// set the page title
|
||||
$pagetitle = $row[account_advertiser];
|
||||
|
||||
// set meta tags
|
||||
|
||||
?>
|
||||
|
||||
<? include("include_common_head.php"); ?>
|
||||
|
||||
<body class="listings">
|
||||
<? include($common_path . "/ads/ad_wallpaper.html"); ?>
|
||||
|
||||
<div class="container">
|
||||
<? include($common_path . "/templates/include_header.php"); ?>
|
||||
<div class="main">
|
||||
<div class="contentwrapper clearfix">
|
||||
<? include("include_breadcrumb.php"); ?>
|
||||
|
||||
<section class="section listings section-has-widgets section-static remove-sidebar">
|
||||
<div class="sidebar-b">
|
||||
<? include("include_sidebar.php"); ?>
|
||||
</div>
|
||||
|
||||
<div class="content content-has-widgets">
|
||||
<div class="grid">
|
||||
|
||||
<div class="clearfix">
|
||||
<h1 class="float-left">Advertisers: Individual Account</h1>
|
||||
<? if ($user) { ?>
|
||||
<form method="post" action="account_edit.php?account_id=<? echo $row[account_id] ?>">
|
||||
<input type="submit" value="Edit" class="nobutton btn btn-white float-right">
|
||||
</form>
|
||||
<? } ?>
|
||||
<a href="" class="btn btn-white float-right">Back</a>
|
||||
<hr class="line" />
|
||||
<div class="details grid">
|
||||
<div class="col-6-12">
|
||||
<h2><? echo stripslashes(stripslashes($row[account_advertiser])) ; echo " "; ?></h2>
|
||||
</div>
|
||||
<div class="col-6-12 address">
|
||||
</div>
|
||||
<div class="col-6-12 contact">
|
||||
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<br />
|
||||
<div class="col-1-1">
|
||||
<? include("include_buttons.php"); ?>
|
||||
</div>
|
||||
<div class="col-1-1 detail-block">
|
||||
<h3>Main Point(s) of Contact</h3>
|
||||
<div class="highlight-block">
|
||||
Contact Name: <? echo stripslashes(htmlspecialchars($row[account_contact])); ?>
|
||||
<br />
|
||||
Email: <a href="mailto:<? echo $row[account_email]; ?>"><? echo stripslashes(htmlspecialchars($row[account_email])); ?></a><br />
|
||||
Phone: <? echo stripslashes(htmlspecialchars($row[account_phone])); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1-1 detail-block">
|
||||
<h3>Mailing Address</h3>
|
||||
<div class="highlight-block">
|
||||
<? echo stripslashes(htmlspecialchars($row[account_address])); ?><br />
|
||||
<? if ( $row[account_address_two] ) { echo stripslashes(htmlspecialchars($row[account_address_two]) . "<br />"); } ?>
|
||||
<? echo stripslashes(htmlspecialchars($row[account_city])); ?>, <? echo stripslashes(htmlspecialchars($row[account_state])); ?> <? echo stripslashes(htmlspecialchars($row[account_zip])); ?><br />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1-1 detail-block">
|
||||
<h3>Campaigns</h3>
|
||||
<div class="highlight-block">
|
||||
<strong>Active Campaigns:</strong>
|
||||
<br />
|
||||
<strong>Archived Campaigns:</strong>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1-1 detail-block">
|
||||
<h3>Account Notes</h3>
|
||||
<div class="highlight-block">
|
||||
<strong>Invoice Via:</strong>
|
||||
<?
|
||||
$certification_list = "";
|
||||
$temp[] = $row[account_invoice];
|
||||
foreach($temp as $value) {
|
||||
if ($value == "0") $certification_list = $certification_list."Snail, ";
|
||||
if ($value == "1") $certification_list = $certification_list."Email";
|
||||
};
|
||||
|
||||
$certification_list = rtrim($certification_list, ', ');
|
||||
|
||||
echo $certification_list;
|
||||
?><br />
|
||||
<strong>Notes:</strong> <? echo stripslashes(htmlspecialchars($row[account_notes])); ?><br />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content-divider-bottom"></div>
|
||||
<? include ('comments_show.php'); ?>
|
||||
|
||||
</div><!-- end col-2/3 -->
|
||||
|
||||
</div><!-- end grid -->
|
||||
</div><!-- end content -->
|
||||
</section>
|
||||
|
||||
</div><!-- end contentwrapper -->
|
||||
</div> <!-- end main -->
|
||||
|
||||
<? include($common_path . "/templates/include_footer.php") ?>
|
||||
</div> <!-- container -->
|
||||
</body>
|
||||
<? include($common_path . "/templates/include_global_js.php") ?>
|
||||
</html>
|
419
site/slowtwitch.com/www/adio/advertiser_edit.php
Normal file
419
site/slowtwitch.com/www/adio/advertiser_edit.php
Normal file
@ -0,0 +1,419 @@
|
||||
<?PHP
|
||||
|
||||
include("config.php");
|
||||
|
||||
if(!is_admin($user)){
|
||||
header('Location:'.$site_url.'/');
|
||||
}
|
||||
|
||||
if(!is_logged_in($user)){
|
||||
header('Location: '.$site_url);
|
||||
exit();
|
||||
}
|
||||
|
||||
$useruid = base64_decode($_SESSION['user_id']);
|
||||
|
||||
// set the page title
|
||||
$pagetitle = "Create Advertiser Account";
|
||||
|
||||
// set meta tags
|
||||
$meta_keywords = "create advertiser account";
|
||||
$meta_description = "create advertiser account for slowtwitch advertising.";
|
||||
|
||||
if($_POST[edit_account] == true){
|
||||
include("advertiser_edit_X.php");
|
||||
} elseif ($_POST[returning_to_edit] == true) {
|
||||
$account_id = $_POST[account_id];
|
||||
} elseif (isset($_GET[account_id])) {
|
||||
$account_id = $_GET[account_id];
|
||||
$sql = "SELECT * FROM io_account WHERE account_id = \"".$account_id."\" LIMIT 1";
|
||||
$fetch = mysql_fetch_array(mysql_query($sql)) OR die(mysql_error());
|
||||
//var_dump($fetch);
|
||||
$_POST = $fetch;
|
||||
} elseif (isset($_POST[account_id])) {
|
||||
$account_id = $_POST[account_id];
|
||||
$sql = "SELECT * FROM io_account WHERE account_id = \"".$account_id."\" LIMIT 1";
|
||||
//var_dump($fetch);
|
||||
$fetch = mysql_fetch_array(mysql_query($sql)) OR die(mysql_error());
|
||||
$_POST = $fetch;
|
||||
} else {
|
||||
header('Location:'.$site_url.'?error=no_account_id_for_edit/');
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
account_id
|
||||
account_user_id_fk
|
||||
account_advertiser
|
||||
account_contact
|
||||
account_phone
|
||||
account_email
|
||||
account_other
|
||||
account_invoice
|
||||
account_notes
|
||||
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<? include("include_common_head.php"); ?>
|
||||
|
||||
<?
|
||||
|
||||
if($_POST[edit_account] == true){
|
||||
include("advertiser_edit_X.php");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<body class="listings">
|
||||
<? include($common_path . "/ads/ad_wallpaper.html"); ?>
|
||||
|
||||
<div class="container">
|
||||
<? include($common_path . "/templates/include_header.php"); ?>
|
||||
<div class="main">
|
||||
<div class="contentwrapper clearfix">
|
||||
<? include("include_breadcrumb.php"); ?>
|
||||
|
||||
<section class="section listings section-has-widgets section-static remove-sidebar">
|
||||
<div class="sidebar-b">
|
||||
<? include("include_sidebar.php"); ?>
|
||||
</div>
|
||||
|
||||
<div class="content content-has-widgets">
|
||||
<div class="grid">
|
||||
|
||||
<div class="clearfix">
|
||||
|
||||
<?
|
||||
if( $insert_success == true || $_GET[confirmed] == "yes" ) { ?>
|
||||
<h1 class="content-title"><strong>Thank you</strong></h1>
|
||||
<p class="cont">Thank you. The advertiser account information for <? echo ("$advertiser"); ?> has been entered. You will now be redirected to the IO Insertion Order Add page.</p>
|
||||
<?
|
||||
$jump_sql = "SELECT * FROM io_account WHERE account_id = \"".$advertiser."\" LIMIT 1";
|
||||
$jump_fetch = mysql_fetch_array(mysql_query($jump_sql)) OR die(mysql_error());
|
||||
$account_id = $jump_fetch[account_id];
|
||||
?>
|
||||
<? $meta_jump = "<META HTTP-EQUIV=Refresh CONTENT=\"4; URL=add.php?account_id=".$account_id."\"";
|
||||
echo $meta_jump;
|
||||
unset($insert_success);
|
||||
unset($confirm_account);
|
||||
?>
|
||||
<? } else if( $confirm_account == true ) { ?>
|
||||
<h1 class="content-title"><strong>Admin: Edit Advertiser Account: Step 2 of 2</strong></h1>
|
||||
<? }else if( ($confirm_account != true) || ($_POST[edit_account] != true) ){ ?>
|
||||
<h1 class="content-title"><strong>Admin: Edit Advertiser Account: Step 1 of 2</strong></h1>
|
||||
<? if (!$errmsg) { ?>
|
||||
<p class="cont">This is for editing advertiser accounts. <span style="color: red;">You will then be prompted to confirm your information before the information is sent to us.</span></p>
|
||||
<? } else { ?>
|
||||
<p class="cont"><span style="color: red;"><? echo $errmsg; ?></span></p>
|
||||
<? } ?>
|
||||
<? }
|
||||
|
||||
// begin insert form
|
||||
if( (($_POST[edit_account] != true) || ($errmsg) || (($confirm_account != true) && ($_POST[insert_account] != true))) && $_GET[confirmed] != "yes") {
|
||||
|
||||
?>
|
||||
|
||||
<form enctype="multipart/form-data" action="advertiser_edit.php" method="post">
|
||||
<input type="hidden" name="account_id" value="<? echo $_POST[account_id]; ?>">
|
||||
<? var_dump($_POST); ?>
|
||||
<div class="dtable form">
|
||||
<div class="drow">
|
||||
<div class="dcell name">Company/Advertiser Name</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input value="<? echo stripslashes($_POST[account_advertiser]); ?>" type="text" name="account_advertiser" class="txt lngtext" maxlength="80">
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Contact Name</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input value="<? echo stripslashes(htmlspecialchars($_POST[account_contact])); ?>" type="text" name="account_contact" class="txt lngtext">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="drow">
|
||||
<div class="dcell name">Forum User ID (<a href="http://forum.slowtwitch.com/cgi-bin/admin/db.cgi?db=User;do=search_form">Numerical</a>)</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input value="<? echo stripslashes($_POST[account_user_id_fk]); ?>" type="text" name="account_user_id_fk" class="txt shotext">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="drow">
|
||||
<div class="dcell name">Address</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="text" name="account_address" value="<? echo stripslashes(htmlspecialchars($_POST[account_address])); ?>" class="txt lngtext" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Address 2</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="text" name="account_address_two" value="<? echo stripslashes(htmlspecialchars($_POST[account_address_two])); ?>" class="txt lngtext" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">City</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="text" name="account_city" value="<? echo stripslashes(htmlspecialchars($_POST[account_city])); ?>" class="txt shotext" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">State</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<select name="account_state">
|
||||
<option value="0">Choose a State/Province</option>
|
||||
<?
|
||||
foreach($state_list as $key=>$value) {
|
||||
if(strcmp($_POST[account_state], $value) == 0){
|
||||
$str = " selected=\"selected\"";
|
||||
}
|
||||
echo "<option value=\"$value\"$str>$value</option>";
|
||||
$str = "";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Zip/Postal Code</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="text" name="account_zip" value="<? echo stripslashes(htmlspecialchars($_POST[account_zip])); ?>" class="txt shotext" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="drow">
|
||||
<div class="dcell name">Phone</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input value="<? echo stripslashes(htmlspecialchars($_POST[account_phone])); ?>" type="text" name="account_phone" class="txt shotext">
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">E-mail</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input value="<? echo stripslashes(htmlspecialchars($_POST[account_email])); ?>" type="text" name="account_email" class="txt midtext">
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Other Contacts</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input value="<? echo $_POST[account_other]; ?>" type="text" name="account_other" class="txt lngtext">
|
||||
</div>
|
||||
</div>
|
||||
<script language="JavaScript">
|
||||
function toggle(source) {
|
||||
checkboxes = document.getElementsByName('account_invoice[]');
|
||||
for(var i=0, n=checkboxes.length;i<n;i++) {
|
||||
checkboxes[i].checked = source.checked;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Invoice Via</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? if(isset($_POST[account_invoice]) && !is_array($_POST[account_invoice])) { $_POST[account_invoice] = explode(",", $_POST[account_invoice]); }?>
|
||||
<input type="checkbox" name="account_invoice[]" value="0" <? if(in_array("0", $_POST[account_invoice])) {echo "checked";} ?>>Snail
|
||||
<input type="checkbox" name="account_invoice[]" value="1" <? if(in_array("1", $_POST[account_invoice])) {echo "checked";} ?>>Email
|
||||
<input type="checkbox" onClick="toggle(this)" <? if(in_array("0", $_POST[account_invoice]) && in_array("1", $_POST[account_invoice])) {echo "checked";} ?>>Both
|
||||
<? /* need to insert checking in case of edit here on the value side */ ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Notes</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<textarea name="account_notes" rows="7" class="txt lngtext" placeholder="Any additional notes go here."><? if($_POST[account_notes]){ echo strip_tags(stripslashes($_POST[account_notes])); } ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow actions">
|
||||
<div class="dcell name"></div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="submit" value="Submit" class="btn">
|
||||
<input type="hidden" name="edit_account" value="true">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<? }
|
||||
// end insert form
|
||||
|
||||
// begin confirmation form
|
||||
if($confirm_account == true){
|
||||
|
||||
?>
|
||||
Please confirm your information. If everything is correct, click the submit button. Otherwise, you may click the edit button to change your information before submitting.</div>
|
||||
<br />
|
||||
|
||||
<div class="dtable form">
|
||||
<div class="drow">
|
||||
<div class="dcell name">Company/Advertiser Name</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo stripslashes($_POST[account_advertiser]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Contact Name</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo stripslashes(htmlspecialchars($_POST[account_contact])); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Forum ID</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo stripslashes(htmlspecialchars($_POST[account_user_id_fk])); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Address </div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[account_address])); ?></div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Address 2</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[account_address_two])); ?></div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">City</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[account_city])); ?></div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">State</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[account_state])); ?></div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Zip</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[account_zip])); ?></div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Phone</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo stripslashes(htmlspecialchars($_POST[account_phone])); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Email</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo stripslashes(htmlspecialchars($_POST[account_email])); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Other Contacts</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo $_POST[account_other]; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Invoice Via</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<?
|
||||
|
||||
$certification_list = "";
|
||||
foreach($_POST[account_invoice] as $value) {
|
||||
if ($value == "0") $certification_list = $certification_list."Snail, ";
|
||||
if ($value == "1") $certification_list = $certification_list."Email";
|
||||
};
|
||||
|
||||
$certification_list = rtrim($certification_list, ', ');
|
||||
|
||||
echo $certification_list;
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">General Info</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo strip_tags(stripslashes($_POST[account_notes])) ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow actions">
|
||||
<div class="dcell name"></div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<form action="advertiser_edit.php" method="post">
|
||||
<input type="hidden" name="account_id" value="<? echo stripslashes(htmlspecialchars($_POST[account_id])); ?>">
|
||||
<input type="hidden" name="account_advertiser" value="<? echo stripslashes(htmlspecialchars($_POST[account_advertiser])); ?>">
|
||||
<input type="hidden" name="account_contact" value="<? echo stripslashes(htmlspecialchars($_POST[account_contact])); ?>">
|
||||
<input type="hidden" name="account_user_id_fk" value="<? echo $_POST[account_user_id_fk]; ?>">
|
||||
<input type="hidden" name="account_address" value="<? echo stripslashes(htmlspecialchars($_POST[account_address])); ?>">
|
||||
<input type="hidden" name="account_address_two" value="<? echo stripslashes(htmlspecialchars($_POST[account_address_two])); ?>">
|
||||
<input type="hidden" name="account_city" value="<? echo stripslashes(htmlspecialchars($_POST[account_city])); ?>">
|
||||
<input type="hidden" name="account_state" value="<? echo $_POST[account_state]; ?>">
|
||||
<input type="hidden" name="account_zip" value="<? echo $_POST[account_zip]; ?>">
|
||||
<input type="hidden" name="account_phone" value="<? echo $_POST[account_phone]; ?>">
|
||||
<input type="hidden" name="account_email" value="<? echo $_POST[account_email]; ?>">
|
||||
<input type="hidden" name="account_other" value="<? echo $_POST[account_other]; ?>">
|
||||
<input type="hidden" name="account_invoice" value="<? echo(implode(',', $_POST[account_invoice])); ?>">
|
||||
<input type="hidden" name="account_notes" value="<? echo stripslashes(htmlspecialchars($_POST[account_notes])); ?>">
|
||||
<input type="hidden" name="edit_account" value="true">
|
||||
<input type="hidden" name="insert_account" value="true">
|
||||
<input type="submit" name="submit" value="Submit Info" class="btn float-left" style="margin-right: 5px;"/>
|
||||
</form>
|
||||
<form action="advertiser_edit.php" method="post">
|
||||
<input type="hidden" name="account_id" value="<? echo stripslashes(htmlspecialchars($_POST[account_id])); ?>">
|
||||
<input type="hidden" name="account_advertiser" value="<? echo stripslashes(htmlspecialchars($_POST[account_advertiser])); ?>">
|
||||
<input type="hidden" name="account_contact" value="<? echo stripslashes(htmlspecialchars($_POST[account_contact])); ?>">
|
||||
<input type="hidden" name="account_user_id_fk" value="<? echo $_POST[account_user_id_fk]; ?>">
|
||||
<input type="hidden" name="account_address" value="<? echo stripslashes(htmlspecialchars($_POST[account_address])); ?>">
|
||||
<input type="hidden" name="account_address_two" value="<? echo stripslashes(htmlspecialchars($_POST[account_address_two])); ?>">
|
||||
<input type="hidden" name="account_city" value="<? echo stripslashes(htmlspecialchars($_POST[account_city])); ?>">
|
||||
<input type="hidden" name="account_state" value="<? echo $_POST[account_state]; ?>">
|
||||
<input type="hidden" name="account_zip" value="<? echo $_POST[account_zip]; ?>">
|
||||
<input type="hidden" name="account_phone" value="<? echo $_POST[account_phone]; ?>">
|
||||
<input type="hidden" name="account_email" value="<? echo $_POST[account_email]; ?>">
|
||||
<input type="hidden" name="account_other" value="<? echo $_POST[account_other]; ?>">
|
||||
<input type="hidden" name="account_invoice" value="<? echo(implode(',', $_POST[account_invoice])); ?>">
|
||||
<input type="hidden" name="account_notes" value="<? echo stripslashes(htmlspecialchars($_POST[account_notes])); ?>">
|
||||
<input type="hidden" name="confirm_account" value="0">
|
||||
<input type="hidden" name="returning_to_edit" value="1">
|
||||
<input type="submit" name="submit" value="Edit Information" class="btn float-left" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
//end confirmation form
|
||||
?>
|
||||
|
||||
</div><!-- end col-2/3 -->
|
||||
|
||||
</div><!-- end grid -->
|
||||
</div><!-- end content -->
|
||||
</section>
|
||||
|
||||
|
||||
</div><!-- end contentwrapper -->
|
||||
</div> <!-- end main -->
|
||||
|
||||
<? include($common_path . "/templates/include_footer.php") ?>
|
||||
</div> <!-- container -->
|
||||
</body>
|
||||
<? include($common_path . "/templates/include_global_js.php") ?>
|
||||
</html>
|
91
site/slowtwitch.com/www/adio/advertiser_edit_X.php
Normal file
91
site/slowtwitch.com/www/adio/advertiser_edit_X.php
Normal file
@ -0,0 +1,91 @@
|
||||
<?PHP
|
||||
|
||||
if (!$_POST){ header('Location: '.$site_url); }
|
||||
|
||||
/*
|
||||
|
||||
FIELD NAMES:
|
||||
account_id
|
||||
account_user_id_fk
|
||||
account_advertiser
|
||||
account_contact
|
||||
account_phone
|
||||
account_email
|
||||
account_other
|
||||
account_invoice
|
||||
account_notes
|
||||
|
||||
*/
|
||||
|
||||
/* Need to ltrim and rtrim commas before insertion */
|
||||
|
||||
//Insert into database
|
||||
//$pass = 'abc123';
|
||||
$errmsg = NULL;
|
||||
$insert_success = NULL;
|
||||
//Check for blank fields
|
||||
if ((!$_POST[account_advertiser])) $errmsg = $errmsg."Account Name, ";
|
||||
if ((!$_POST[account_contact])) $errmsg = $errmsg."Primary Contact, ";
|
||||
if ((!$_POST[account_user_id_fk])) $errmsg = $errmsg."Forum ID #, ";
|
||||
if (!$_POST[account_city]) $errmsg = $errmsg."City, ";
|
||||
if (!$_POST[account_state]) $errmsg = $errmsg."State, ";
|
||||
if (!$_POST[account_address]) $errmsg = $errmsg."Address, ";
|
||||
if (!$_POST[account_phone]) $errmsg = $errmsg."Phone, ";
|
||||
if (!$_POST[account_email]) $errmsg = $errmsg."Email, ";
|
||||
if (!$_POST[account_invoice]) $errmsg = $errmsg."Invoice, ";
|
||||
if (isset($errmsg)) {
|
||||
$errmsg = "The following fields cannot be left blank: ".$errmsg."<br />";
|
||||
$errmsg = rtrim($errmsg, ", ");
|
||||
}
|
||||
|
||||
|
||||
// begin error message check
|
||||
if(!$errmsg){
|
||||
|
||||
$account_id = $_POST[account_id];
|
||||
$account_advertiser = trim($_POST[account_advertiser]);
|
||||
$account_contact = trim($_POST[account_contact]);
|
||||
$account_user_id_fk = trim($_POST[account_user_id_fk]);
|
||||
$account_address = mysql_escape_string(trim($_POST[account_address]));
|
||||
if (isset($_POST['account_address_two'])) { $account_address_two = mysql_escape_string(trim($_POST[account_address_two])); } else { $account_address_two = NULL; }
|
||||
$account_city = mysql_escape_string(trim($_POST[account_city]));
|
||||
$account_state = $_POST[account_state];
|
||||
$account_state_tag = strtolower(str_replace(" ","", $account_state));
|
||||
$account_zip = mysql_escape_string(trim($_POST[account_zip]));
|
||||
$account_phone = trim($_POST[account_phone]);
|
||||
$account_email = mysql_escape_string(trim($_POST[account_email]));
|
||||
$account_other = mysql_escape_string(trim($_POST[account_other]));
|
||||
$account_invoice = mysql_escape_string($_POST[account_invoice]);
|
||||
$account_notes = mysql_escape_string(nl2br(substr(trim($_POST[account_notes]), 0, 4096)));
|
||||
|
||||
// begin boolean check to see if we should insert the account into the dbase
|
||||
if($_POST[insert_account] == true){
|
||||
$sql = "UPDATE io_account SET
|
||||
account_advertiser = '$account_advertiser',
|
||||
account_user_id_fk = '$account_user_id_fk',
|
||||
account_contact = '$account_contact',
|
||||
account_address = '$account_address',
|
||||
account_address_two = '$account_address_two',
|
||||
account_city = '$account_city',
|
||||
account_state = '$account_state',
|
||||
account_zip = '$account_zip',
|
||||
account_phone = '$account_phone',
|
||||
account_email = '$account_email',
|
||||
account_other = '$account_other',
|
||||
account_invoice = '$account_invoice',
|
||||
account_notes = '$account_notes'
|
||||
WHERE account_id = $account_id";
|
||||
//echo("account entered!");
|
||||
//echo($sql);
|
||||
mysql_query($sql) OR die(mysql_error());
|
||||
//exit();
|
||||
$insert_success = true;
|
||||
}else{
|
||||
//echo("shop NOT entered.");
|
||||
$confirm_account = true;
|
||||
}
|
||||
// end insert check
|
||||
}
|
||||
// end error message check
|
||||
|
||||
?>
|
67
site/slowtwitch.com/www/adio/archive.php
Normal file
67
site/slowtwitch.com/www/adio/archive.php
Normal file
@ -0,0 +1,67 @@
|
||||
<?PHP include("config.php");
|
||||
|
||||
// need to update code so that users are automatically taken to the page for their individual account here.
|
||||
|
||||
if(!is_admin($user)){
|
||||
header('Location:'.$site_url.'/');
|
||||
}
|
||||
|
||||
// set the page title
|
||||
$pagetitle = "Advertiser Accounts";
|
||||
|
||||
// set meta tags
|
||||
?>
|
||||
|
||||
<? include("include_common_head.php"); ?>
|
||||
<body class="listings">
|
||||
<? include($common_path . "/ads/ad_wallpaper.html"); ?>
|
||||
|
||||
<div class="container">
|
||||
<? include($common_path . "/templates/include_header.php"); ?>
|
||||
<div class="main">
|
||||
<div class="contentwrapper clearfix">
|
||||
<? include("include_breadcrumb.php"); ?>
|
||||
|
||||
<section class="section listings section-has-widgets section-static remove-sidebar">
|
||||
<div class="sidebar-b">
|
||||
<? include("include_sidebar.php"); ?>
|
||||
</div>
|
||||
|
||||
<div class="content content-has-widgets">
|
||||
<div class="grid">
|
||||
|
||||
<div class="clearfix">
|
||||
<h1 class="float-left">Admin: Archived Ad Campaigns</h1>
|
||||
<? /**if (is_logged_in($user)) { ?>
|
||||
<a href="<? echo $site_url . '/add.php' ?>" class="btn btn-white float-right">Request IO</a>
|
||||
<? }**/ ?>
|
||||
<hr class="line" />
|
||||
<h2>Archived Campaigns</h2>
|
||||
<hr />
|
||||
<?
|
||||
|
||||
$ad_sql = "SELECT io_campaign.campaign_id AS campaign_id, io_campaign.campaign_name AS campaign_name, io_campaign.campaign_date AS campaign_date, io_campaign.campaign_date_repeat AS campaign_date_repeat, io_campaign.campaign_account_id_fk AS campaign_account_id_fk, io_account.account_advertiser AS campaign_advertiser
|
||||
FROM io_campaign
|
||||
INNER JOIN io_account
|
||||
ON io_campaign.campaign_account_id_fk=io_account.account_id WHERE io_campaign.campaign_archive = 1";
|
||||
|
||||
$ad_results = mysql_query($ad_sql) OR die(mysql_error());
|
||||
while ($ad_row = mysql_fetch_array($ad_results)) {
|
||||
include("include_campaign.php");
|
||||
}
|
||||
?>
|
||||
|
||||
</div><!-- end col-2/3 -->
|
||||
|
||||
</div><!-- end grid -->
|
||||
</div><!-- end content -->
|
||||
</section>
|
||||
|
||||
</div><!-- end contentwrapper -->
|
||||
</div> <!-- end main -->
|
||||
|
||||
<? include($common_path . "/templates/include_footer.php") ?>
|
||||
</div> <!-- container -->
|
||||
</body>
|
||||
<? include($common_path . "/templates/include_global_js.php") ?>
|
||||
</html>
|
67
site/slowtwitch.com/www/adio/campaign.php
Normal file
67
site/slowtwitch.com/www/adio/campaign.php
Normal file
@ -0,0 +1,67 @@
|
||||
<?PHP include("config.php");
|
||||
|
||||
// need to update code so that users are automatically taken to the page for their individual account here.
|
||||
|
||||
if(!is_admin($user)){
|
||||
header('Location:'.$site_url.'/');
|
||||
}
|
||||
|
||||
// set the page title
|
||||
$pagetitle = "Advertiser Accounts";
|
||||
|
||||
// set meta tags
|
||||
?>
|
||||
|
||||
<? include("include_common_head.php"); ?>
|
||||
<body class="listings">
|
||||
<? include($common_path . "/ads/ad_wallpaper.html"); ?>
|
||||
|
||||
<div class="container">
|
||||
<? include($common_path . "/templates/include_header.php"); ?>
|
||||
<div class="main">
|
||||
<div class="contentwrapper clearfix">
|
||||
<? include("include_breadcrumb.php"); ?>
|
||||
|
||||
<section class="section listings section-has-widgets section-static remove-sidebar">
|
||||
<div class="sidebar-b">
|
||||
<? include("include_sidebar.php"); ?>
|
||||
</div>
|
||||
|
||||
<div class="content content-has-widgets">
|
||||
<div class="grid">
|
||||
|
||||
<div class="clearfix">
|
||||
<h1 class="float-left">Admin: Current Ad Campaigns</h1>
|
||||
<? /**if (is_logged_in($user)) { ?>
|
||||
<a href="<? echo $site_url . '/add.php' ?>" class="btn btn-white float-right">Request IO</a>
|
||||
<? }**/ ?>
|
||||
<hr class="line" />
|
||||
<h2>Active Campaigns</h2>
|
||||
<hr />
|
||||
<?
|
||||
|
||||
$ad_sql = "SELECT io_campaign.campaign_id AS campaign_id, io_campaign.campaign_name AS campaign_name, io_campaign.campaign_date AS campaign_date, io_campaign.campaign_date_repeat AS campaign_date_repeat, io_campaign.campaign_account_id_fk AS campaign_account_id_fk, io_account.account_advertiser AS campaign_advertiser
|
||||
FROM io_campaign
|
||||
INNER JOIN io_account
|
||||
ON io_campaign.campaign_account_id_fk=io_account.account_id";
|
||||
|
||||
$ad_results = mysql_query($ad_sql) OR die(mysql_error());
|
||||
while ($ad_row = mysql_fetch_array($ad_results)) {
|
||||
include("include_campaign.php");
|
||||
}
|
||||
?>
|
||||
|
||||
</div><!-- end col-2/3 -->
|
||||
|
||||
</div><!-- end grid -->
|
||||
</div><!-- end content -->
|
||||
</section>
|
||||
|
||||
</div><!-- end contentwrapper -->
|
||||
</div> <!-- end main -->
|
||||
|
||||
<? include($common_path . "/templates/include_footer.php") ?>
|
||||
</div> <!-- container -->
|
||||
</body>
|
||||
<? include($common_path . "/templates/include_global_js.php") ?>
|
||||
</html>
|
140
site/slowtwitch.com/www/adio/campaign_detail.php
Normal file
140
site/slowtwitch.com/www/adio/campaign_detail.php
Normal file
@ -0,0 +1,140 @@
|
||||
<?PHP
|
||||
|
||||
include("config.php");
|
||||
|
||||
if(!is_admin($user)){
|
||||
header('Location:'.$site_url.'/');
|
||||
}
|
||||
|
||||
$campaign_idhere = mysql_escape_string($_GET[campaign_id]);
|
||||
$results = mysql_query("SELECT * FROM io_campaign WHERE campaign_id=".$campaign_idhere." LIMIT 1");
|
||||
$row = mysql_fetch_array($results);
|
||||
if (!$row){header('Location: '.$site_url.'/?error=invalid_id');}
|
||||
|
||||
// set the page title
|
||||
$pagetitle = $row[campaign_advertiser];
|
||||
|
||||
// set meta tags
|
||||
|
||||
?>
|
||||
|
||||
<? include("include_common_head.php"); ?>
|
||||
|
||||
<body class="listings">
|
||||
<? include($common_path . "/ads/ad_wallpaper.html"); ?>
|
||||
|
||||
<div class="container">
|
||||
<? include($common_path . "/templates/include_header.php"); ?>
|
||||
<div class="main">
|
||||
<div class="contentwrapper clearfix">
|
||||
<? include("include_breadcrumb.php"); ?>
|
||||
|
||||
<section class="section listings section-has-widgets section-static remove-sidebar">
|
||||
<div class="sidebar-b">
|
||||
<? include("include_sidebar.php"); ?>
|
||||
</div>
|
||||
|
||||
<div class="content content-has-widgets">
|
||||
<div class="grid">
|
||||
|
||||
<div class="clearfix">
|
||||
<h1 class="float-left">Campaigns: Individual Campaigns</h1>
|
||||
<? if ($user) { ?>
|
||||
<form method="post" action="campaign_edit.php?campaign_id=<? echo $row[campaign_id] ?>">
|
||||
<input type="submit" value="Edit" class="nobutton btn btn-white float-right">
|
||||
</form>
|
||||
<? } ?>
|
||||
<a href="" class="btn btn-white float-right">Back</a>
|
||||
<hr class="line" />
|
||||
<div class="details grid">
|
||||
<div class="col-6-12">
|
||||
<h2><? echo stripslashes(stripslashes($row[campaign_name])) ; echo " "; ?></h2>
|
||||
</div>
|
||||
<div class="col-6-12 address">
|
||||
</div>
|
||||
<div class="col-6-12 contact">
|
||||
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<br />
|
||||
<div class="col-1-1">
|
||||
<? include("include_buttons.php"); ?>
|
||||
</div>
|
||||
<div class="col-1-1 detail-block">
|
||||
<h3>Advertiser</h3>
|
||||
<div class="highlight-block">
|
||||
<?
|
||||
$acc_results = mysql_query("SELECT * FROM io_account WHERE account_id = '".$row[campaign_account_id_fk]."' LIMIT 1");
|
||||
$acc_row = mysql_fetch_array($acc_results);
|
||||
?>
|
||||
Advertiser: <? echo stripslashes(htmlspecialchars($acc_row[account_advertiser])); ?>
|
||||
<br />
|
||||
Primary Contact: <? echo stripslashes(htmlspecialchars($acc_row[account_contact])); ?>
|
||||
<br />
|
||||
Email: <a href="mailto:<? echo $acc_row[account_email]; ?>"><? echo stripslashes(htmlspecialchars($row[account_email])); ?></a><br />
|
||||
Phone: <? echo stripslashes(htmlspecialchars($row[account_phone])); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1-1 detail-block">
|
||||
<h3>Ad Units</h3>
|
||||
<div class="highlight-block">
|
||||
<?
|
||||
if ($row[campaign_300x250] == 1) { echo ("300x250: ".$row[campaign_300x250_impression]."<br />"); }
|
||||
if ($row[campaign_728x90] == 1) { echo ("728x90: ".$row[campaign_728x90_impression]."<br />"); }
|
||||
if ($row[campaign_300x600] == 1) { echo ("300x600: ".$row[campaign_300x600_impression]."<br />"); }
|
||||
if ($row[campaign_970x250] == 1) { echo ("970x250: ".$row[campaign_970x250_impression]."<br />"); }
|
||||
if ($row[campaign_wallpaper] == 1) { echo ("wallpaper: ".$row[campaign_wallpaper_impression]."<br />"); }
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1-1 detail-block">
|
||||
<h3>Campaign Dates</h3>
|
||||
<div class="highlight-block">
|
||||
<?
|
||||
echo ("Start Date: ".date_format(date_create($row[campaign_date]), 'Y-m-d')."<br />");
|
||||
echo ("Repeat Date: ".date_format(date_create($row[campaign_date_repeat]), 'Y-m-d')."<br />");
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1-1 detail-block">
|
||||
<h3>Campaign Status</h3>
|
||||
<div class="highlight-block">
|
||||
<strong>Signed: </strong><? if (isset($row[campaign_signature_timestamp]) && $row[campaign_signature_timestamp] != "" && $row[campaign_signature_timestamp] != 0) { echo "Yes, by: ".$row[campaign_signature]." on: ".date_format(date_create($row[campaign_signature_timestamp]), 'Y-m-d')."<br />";} else { echo "No<br />"; } ?>
|
||||
<strong>Deployed: </strong><? if (isset($row[campaign_deploy_timestamp]) && $row[campaign_deploy_timestamp] != "" && $row[campaign_deploy_timestamp] != 0) { echo "Yes, on: ".date_format(date_create($row[campaign_deploy_timestamp]), 'Y-m-d')."<br />";} else { echo "No<br />"; } ?>
|
||||
<strong>Screenshot: </strong><? if (isset($row[campaign_screenshot_timestamp]) && $row[campaign_screenshot_timestamp] != "" && $row[campaign_screenshot_timestamp] != 0) { echo "Yes, on: ".date_format(date_create($row[campaign_screenshot_timestamp]), 'Y-m-d')."<br />";} else { echo "No<br />"; } ?>
|
||||
<strong>Invoice: </strong><? if (isset($row[campaign_invoice_timestamp]) && $row[campaign_invoice_timestamp] != "" && $row[campaign_invoice_timestamp] != 0) { echo "Yes, on: ".date_format(date_create($row[campaign_invoice_timestamp]), 'Y-m-d')."<br />";} else { echo "No<br />"; } ?>
|
||||
<strong>Active or Archived: </strong><?
|
||||
$temp[] = $row[campaign_archive];
|
||||
foreach($temp as $value) {
|
||||
if ($value == "0") echo ("Active");
|
||||
if ($value == "1") echo ("Archived on ".date_format(date_create($row[campaign_archive_timestamp]), 'Y-m-d')."<br />");
|
||||
};
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1-1 detail-block">
|
||||
<h3>Campaign Notes</h3>
|
||||
<div class="highlight-block">
|
||||
<strong>Notes:</strong> <? echo stripslashes(htmlspecialchars($row[campaign_notes])); ?><br />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content-divider-bottom"></div>
|
||||
<? include ('comments_show.php'); ?>
|
||||
|
||||
</div><!-- end col-2/3 -->
|
||||
|
||||
</div><!-- end grid -->
|
||||
</div><!-- end content -->
|
||||
</section>
|
||||
|
||||
</div><!-- end contentwrapper -->
|
||||
</div> <!-- end main -->
|
||||
|
||||
<? include($common_path . "/templates/include_footer.php") ?>
|
||||
</div> <!-- container -->
|
||||
</body>
|
||||
<? include($common_path . "/templates/include_global_js.php") ?>
|
||||
</html>
|
14
site/slowtwitch.com/www/adio/campaign_edit.php
Normal file
14
site/slowtwitch.com/www/adio/campaign_edit.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?PHP
|
||||
|
||||
/*
|
||||
USER
|
||||
- sign-off
|
||||
|
||||
ADMIN
|
||||
- deploy
|
||||
- screenshot
|
||||
- invoice
|
||||
- archive
|
||||
*/
|
||||
|
||||
?>
|
14
site/slowtwitch.com/www/adio/campaign_edit_X.php
Normal file
14
site/slowtwitch.com/www/adio/campaign_edit_X.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?PHP
|
||||
|
||||
/*
|
||||
USER
|
||||
- sign-off
|
||||
|
||||
ADMIN
|
||||
- deploy
|
||||
- screenshot
|
||||
- invoice
|
||||
- archive
|
||||
*/
|
||||
|
||||
?>
|
29
site/slowtwitch.com/www/adio/campaign_quick_edit_X.php
Normal file
29
site/slowtwitch.com/www/adio/campaign_quick_edit_X.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?PHP
|
||||
|
||||
include("config.php");
|
||||
|
||||
if(!is_admin($user)){
|
||||
header('Location:'.$site_url.'/');
|
||||
}
|
||||
|
||||
if (!$_POST){ header('Location: '.$site_url); }
|
||||
|
||||
if ($_POST[action] == "archive") {
|
||||
$sql = "UPDATE io_campaign SET campaign_archive = 1, campaign_archive_timestamp = '".date('Y-m-d')."' WHERE campaign_id = '$_POST[campaign_id]'";
|
||||
} elseif ($_POST[action] == "screenshot") {
|
||||
$sql = "UPDATE io_campaign SET campaign_screenshot_timestamp = '".date('Y-m-d')."' WHERE campaign_id = '$_POST[campaign_id]'";
|
||||
} elseif ($_POST[action] == "invoice") {
|
||||
$sql = "UPDATE io_campaign SET campaign_invoice_timestamp = '".date('Y-m-d')."' WHERE campaign_id = '$_POST[campaign_id]'";
|
||||
} elseif ($_POST[action] == "deploy") {
|
||||
$sql = "UPDATE io_campaign SET campaign_deploy_timestamp = '".date('Y-m-d')."' WHERE campaign_id = '$_POST[campaign_id]'";
|
||||
} elseif ($_POST[action] == "unarchive") {
|
||||
$sql = "UPDATE io_campaign SET campaign_archive = 0, campaign_archive_timestamp = '0' WHERE campaign_id = '$_POST[campaign_id]'";
|
||||
}
|
||||
|
||||
//echo $sql;
|
||||
//exit();
|
||||
mysql_query($sql) or die(mysql_error());
|
||||
|
||||
header('Location: campaign_detail.php?campaign_id='.$_POST[campaign_id]);
|
||||
|
||||
?>
|
207
site/slowtwitch.com/www/adio/config.php
Normal file
207
site/slowtwitch.com/www/adio/config.php
Normal file
@ -0,0 +1,207 @@
|
||||
<?
|
||||
###########################################
|
||||
#-----------Users login system------------#
|
||||
###########################################
|
||||
/*=========================================\
|
||||
Author : Mohammed Ahmed(M@@king) \\
|
||||
Version : 1.0 \\
|
||||
Date Created: Aug 20 2005 \\
|
||||
---------------------------- \\
|
||||
Last Update: August 22 2005 \\
|
||||
---------------------------- \\
|
||||
Country : Palestine \\
|
||||
City : Gaza \\
|
||||
E-mail : m@maaking.com \\
|
||||
MSN : m@maaking.com \\
|
||||
AOL-IM : maa2pal \\
|
||||
WWW : http://www.maaking.com \\
|
||||
Mobile/SMS : 00972-599-622235 \\
|
||||
\\
|
||||
===========================================\
|
||||
------------------------------------------*/
|
||||
// NEED TO CHECK AGAINST SERVER VERSION
|
||||
|
||||
//skip the config file if somebody call it from the browser.
|
||||
session_start();
|
||||
|
||||
if (eregi("config.php", $_SERVER['SCRIPT_NAME'])) {
|
||||
Header("Location: index.php"); die();
|
||||
}
|
||||
|
||||
$main_table = "io_";
|
||||
$field_lead_cpn = "campaign_";
|
||||
$field_lead_acc = "account_";
|
||||
$site_url = "/adio";
|
||||
include("/var/home/slowtwitch/site/local/settings.php");
|
||||
|
||||
|
||||
//added new code to fix compatibility issues.
|
||||
//09-Nov-2005
|
||||
$phpver = phpversion();
|
||||
if ($phpver < '4.1.0') {
|
||||
$_GET = $HTTP_GET_VARS;
|
||||
$_POST = $HTTP_POST_VARS;
|
||||
$_SERVER = $HTTP_SERVER_VARS;
|
||||
}
|
||||
if ($phpver >= '4.0.4pl1' && strstr($_SERVER["HTTP_USER_AGENT"],'compatible')) {
|
||||
if (extension_loaded('zlib')) {
|
||||
ob_end_clean();
|
||||
ob_start('ob_gzhandler');
|
||||
}
|
||||
} else if ($phpver > '4.0') {
|
||||
if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
|
||||
if (extension_loaded('zlib')) {
|
||||
$do_gzip_compress = TRUE;
|
||||
ob_start(array('ob_gzhandler',5));
|
||||
ob_implicit_flush(0);
|
||||
header('Content-Encoding: gzip');
|
||||
}
|
||||
}
|
||||
}
|
||||
$phpver = explode(".", $phpver);
|
||||
$phpver = "$phpver[0]$phpver[1]";
|
||||
if ($phpver >= 41) {
|
||||
$PHP_SELF = $_SERVER['PHP_SELF'];
|
||||
}
|
||||
|
||||
if (!ini_get("register_globals")) {
|
||||
#import_request_variables('GPC');
|
||||
}
|
||||
|
||||
function curPageURL() {
|
||||
$isHTTPS = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on");
|
||||
$port = (isset($_SERVER["SERVER_PORT"]) && ((!$isHTTPS && $_SERVER["SERVER_PORT"] != "80") || ($isHTTPS && $_SERVER["SERVER_PORT"] != "443")));
|
||||
$port = ($port) ? ':'.$_SERVER["SERVER_PORT"] : '';
|
||||
$url = ($isHTTPS ? 'https://' : 'http://').$_SERVER["SERVER_NAME"].$port.$_SERVER["REQUEST_URI"];
|
||||
return $url;
|
||||
}
|
||||
|
||||
function geocode($address) {
|
||||
// Initialize delay in geocode speed
|
||||
$delay = 0;
|
||||
$base_url = "http://" . MAPS_HOST . "/maps/api/geocode/xml?"; // . "&key=" . KEY;
|
||||
//echo ("Base URL: ".$base_url);
|
||||
|
||||
$status = "";
|
||||
$geocode_pending = true;
|
||||
|
||||
while ($geocode_pending) {
|
||||
$address = str_replace(" ", "+", $address);
|
||||
$address = str_replace("#", "", $address);
|
||||
$address = str_replace("\'", "", $address);
|
||||
$address = str_replace("/", "", $address);
|
||||
$request_url = $base_url . "address=" . $address . "&sensor=false"; //urlencode($address);
|
||||
$request_url = mb_convert_encoding($request_url, "UTF-8", "auto");
|
||||
//echo ($request_url."<br />");
|
||||
// Create cUrl object to grab XML content using $request_url
|
||||
$c = curl_init();
|
||||
curl_setopt($c, CURLOPT_URL, $request_url);
|
||||
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
|
||||
$xmlContent = trim(curl_exec($c));
|
||||
curl_close($c);
|
||||
|
||||
// Create SimpleXML object from XML Content
|
||||
$xml = simplexml_load_string($xmlContent);
|
||||
|
||||
// Print out all of the XML Object
|
||||
//print header("Content-type: text/plain");
|
||||
//print_r($xml);
|
||||
|
||||
$resolution = $xml->result->geometry->location_type;
|
||||
|
||||
$status = $xml->status;
|
||||
if (strcmp($status, "OK") == 0) {
|
||||
// Successful geocode
|
||||
$geocode_pending = false;
|
||||
$lat = $xml->result->geometry->location->lat;
|
||||
$lng = $xml->result->geometry->location->lng;
|
||||
$latlng_array = array($lat, $lng);
|
||||
return ($latlng_array);
|
||||
} elseif (strcmp($status, "OVER_QUERY_LIMIT") == 0) {
|
||||
// failure to geocode
|
||||
$geocode_pending = false;
|
||||
$status = "Address " . $address . " failed to geocode. ";
|
||||
$status = $status . "Received status " . $status . "</br></br>\n";
|
||||
return ($status);
|
||||
} else {
|
||||
// failure to geocode
|
||||
$geocode_pending = false;
|
||||
$status = "Address " . $address . " failed to geocode. ";
|
||||
$status = $status . "Received status " . $status . "</br></br>\n";
|
||||
return ($status);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$statecount = mysql_num_rows(mysql_query("SELECT * FROM gforum_Coaches WHERE coach_valid = 1"));
|
||||
|
||||
//Array of states for use in the form
|
||||
$state_list = array('AL'=>"Alabama",
|
||||
'AK'=>"Alaska",
|
||||
'AB'=>'Alberta',
|
||||
'AZ'=>"Arizona",
|
||||
'AR'=>"Arkansas",
|
||||
'BC'=>'British Columbia',
|
||||
'CB'=>"Caribbean",
|
||||
'CA'=>"California",
|
||||
'CM'=>"Central America",
|
||||
'CO'=>"Colorado",
|
||||
'CT'=>"Connecticut",
|
||||
'DE'=>"Delaware",
|
||||
'DC'=>"District of Columbia",
|
||||
'FL'=>"Florida",
|
||||
'GA'=>"Georgia",
|
||||
'HI'=>"Hawaii",
|
||||
'ID'=>"Idaho",
|
||||
'IL'=>"Illinois",
|
||||
'IN'=>"Indiana",
|
||||
'IA'=>"Iowa",
|
||||
'KS'=>"Kansas",
|
||||
'KY'=>"Kentucky",
|
||||
'LA'=>"Louisiana",
|
||||
'ME'=>"Maine",
|
||||
'MB'=>'Manitoba',
|
||||
'MD'=>"Maryland",
|
||||
'MA'=>"Massachusetts",
|
||||
'MX'=>"Mexico",
|
||||
'MI'=>"Michigan",
|
||||
'MN'=>"Minnesota",
|
||||
'MS'=>"Mississippi",
|
||||
'MO'=>"Missouri",
|
||||
'MT'=>"Montana",
|
||||
'NE'=>"Nebraska",
|
||||
'NV'=>"Nevada",
|
||||
'NB'=>'New Brunswick',
|
||||
'NL'=>'Newfoundland',
|
||||
'NH'=>"New Hampshire",
|
||||
'NJ'=>"New Jersey",
|
||||
'NM'=>"New Mexico",
|
||||
'NY'=>"New York",
|
||||
'NC'=>"North Carolina",
|
||||
'ND'=>"North Dakota",
|
||||
'NS'=>'Nova Scotia',
|
||||
'OH'=>"Ohio",
|
||||
'OK'=>"Oklahoma",
|
||||
'ON'=>'Ontario',
|
||||
'OR'=>"Oregon",
|
||||
'PA'=>"Pennsylvania",
|
||||
'PE'=>'Prince Edward Island',
|
||||
'QC'=>'Quebec',
|
||||
'RI'=>"Rhode Island",
|
||||
'SK'=>'Saskatchewan',
|
||||
'SC'=>"South Carolina",
|
||||
'SD'=>"South Dakota",
|
||||
'TN'=>"Tennessee",
|
||||
'TX'=>"Texas",
|
||||
'UT'=>"Utah",
|
||||
'VT'=>"Vermont",
|
||||
'VA'=>"Virginia",
|
||||
'WA'=>"Washington",
|
||||
'WV'=>"West Virginia",
|
||||
'WI'=>"Wisconsin",
|
||||
'WY'=>"Wyoming",
|
||||
// New Foreign "States",
|
||||
'OA'=>"Outside N. America");
|
||||
|
||||
?>
|
421
site/slowtwitch.com/www/adio/create.php
Normal file
421
site/slowtwitch.com/www/adio/create.php
Normal file
@ -0,0 +1,421 @@
|
||||
<?PHP
|
||||
|
||||
include("config.php");
|
||||
|
||||
if(!is_admin($user)){
|
||||
header('Location:'.$site_url.'/');
|
||||
}
|
||||
|
||||
if(!is_logged_in($user)){
|
||||
header('Location: '.$site_url);
|
||||
exit();
|
||||
}
|
||||
|
||||
$useruid = base64_decode($_SESSION['user_id']);
|
||||
|
||||
// set the page title
|
||||
$pagetitle = "Create Advertiser Account";
|
||||
|
||||
// set meta tags
|
||||
$meta_keywords = "create advertiser account";
|
||||
$meta_description = "create advertiser account for slowtwitch advertising.";
|
||||
|
||||
/*
|
||||
|
||||
account_id
|
||||
account_user_id_fk
|
||||
account_advertiser
|
||||
account_contact
|
||||
account_phone
|
||||
account_email
|
||||
account_other
|
||||
account_invoice
|
||||
account_notes
|
||||
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<? include("include_common_head.php"); ?>
|
||||
|
||||
<?
|
||||
|
||||
if($_POST[add_account] == true){
|
||||
include("create_X.php");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<body class="listings">
|
||||
<? include($common_path . "/ads/ad_wallpaper.html"); ?>
|
||||
|
||||
<div class="container">
|
||||
<? include($common_path . "/templates/include_header.php"); ?>
|
||||
<div class="main">
|
||||
<div class="contentwrapper clearfix">
|
||||
<? include("include_breadcrumb.php"); ?>
|
||||
|
||||
<section class="section listings section-has-widgets section-static remove-sidebar">
|
||||
<div class="sidebar-b">
|
||||
<? include("include_sidebar.php"); ?>
|
||||
</div>
|
||||
|
||||
<div class="content content-has-widgets">
|
||||
<div class="grid">
|
||||
|
||||
<div class="clearfix">
|
||||
|
||||
<?
|
||||
if( $insert_success == true || $_GET[confirmed] == "yes" ) { ?>
|
||||
<h1 class="content-title"><strong>Thank you</strong></h1>
|
||||
<p class="cont">Thank you. The advertiser account information for <? echo ("$advertiser"); ?> has been entered. You will now be redirected to the IO Insertion Order Add page.</p>
|
||||
<?
|
||||
$jump_sql = "SELECT * FROM io_account WHERE account_id = \"".$advertiser."\" LIMIT 1";
|
||||
$jump_fetch = mysql_fetch_array(mysql_query($jump_sql)) OR die(mysql_error());
|
||||
$account_id = $jump_fetch[account_id];
|
||||
?>
|
||||
<? $meta_jump = "<META HTTP-EQUIV=Refresh CONTENT=\"4; URL=add.php?account_id=".$account_id."\"";
|
||||
echo $meta_jump;
|
||||
unset($insert_success);
|
||||
unset($confirm_account);
|
||||
?>
|
||||
<? } else if( $confirm_account == true ) { ?>
|
||||
<h1 class="content-title"><strong>Admin: Create Advertiser Account: Step 2 of 2</strong></h1>
|
||||
<? }else if( ($confirm_account != true) || ($_POST[add_account] != true) ){ ?>
|
||||
<h1 class="content-title"><strong>Admin: Create Advertiser Account: Step 1 of 2</strong></h1>
|
||||
<? if (!$errmsg) { ?>
|
||||
<p class="cont">In order to make advertisement insertion order requests, you need to create an advertiser account which will be tagged to your forum user profile. Simply fill out the form below. Be sure to fill out every field. After filling out each field, click submit. <span style="color: red;">You will then be prompted to confirm your information before the information is sent to us.</span></p>
|
||||
<? } else { ?>
|
||||
<p class="cont"><span style="color: red;"><? echo $errmsg; ?></span></p>
|
||||
<? } ?>
|
||||
<? }
|
||||
|
||||
// begin insert form
|
||||
if( (($_POST[add_account] != true) || ($errmsg) || (($confirm_account != true) && ($_POST[insert_account] != true))) && $_GET[confirmed] != "yes") {
|
||||
|
||||
?>
|
||||
|
||||
<form enctype="multipart/form-data" action="create.php" method="post">
|
||||
<div class="dtable form">
|
||||
<div class="drow">
|
||||
<div class="dcell name">Company/Advertiser Name</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input value="<? echo stripslashes($_POST[advertiser]); ?>" type="text" name="advertiser" class="txt lngtext" maxlength="80">
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Contact Name</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input value="<? echo stripslashes(htmlspecialchars($_POST[contact])); ?>" type="text" name="contact" class="txt lngtext">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="drow">
|
||||
<div class="dcell name">Forum User ID (<a href="http://forum.slowtwitch.com/cgi-bin/admin/db.cgi?db=User;do=search_form">Numerical</a>)</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input value="<? echo stripslashes($_POST[forumid]); ?>" type="text" name="forumid" class="txt shotext">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="drow">
|
||||
<div class="dcell name">Address</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="text" name="address" value="<? echo stripslashes(htmlspecialchars($_POST[address])); ?>" class="txt lngtext" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Address 2</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="text" name="address_two" value="<? echo stripslashes(htmlspecialchars($_POST[address_two])); ?>" class="txt lngtext" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">City</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="text" name="city" value="<? echo stripslashes(htmlspecialchars($_POST[city])); ?>" class="txt shotext" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">State</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<select name="state">
|
||||
<option value="0">Choose a State/Province</option>
|
||||
<?
|
||||
foreach($state_list as $key=>$value) {
|
||||
if(strcmp($_POST[state], $value) == 0){
|
||||
$str = " selected=\"selected\"";
|
||||
}
|
||||
echo "<option value=\"$value\"$str>$value</option>";
|
||||
$str = "";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Zip/Postal Code</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="text" name="zip" value="<? echo stripslashes(htmlspecialchars($_POST[zip])); ?>" class="txt shotext" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="drow">
|
||||
<div class="dcell name">Phone</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input value="<? echo stripslashes(htmlspecialchars($_POST[phone])); ?>" type="text" name="phone" class="txt shotext">
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">E-mail</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input value="<? echo stripslashes(htmlspecialchars($_POST[email])); ?>" type="text" name="email" class="txt midtext">
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Other Contacts</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input value="<? echo $_POST[other]; ?>" type="text" name="other" class="txt lngtext">
|
||||
</div>
|
||||
</div>
|
||||
<script language="JavaScript">
|
||||
function toggle(source) {
|
||||
checkboxes = document.getElementsByName('invoice[]');
|
||||
for(var i=0, n=checkboxes.length;i<n;i++) {
|
||||
checkboxes[i].checked = source.checked;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Invoice Via</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? if(isset($_POST[invoice])) { $_POST[invoice] = explode(",", $_POST[invoice]); }?>
|
||||
<input type="checkbox" name="invoice[]" value="0" <? if(in_array("0", $_POST[invoice])) {echo "checked";} ?>>Snail
|
||||
<input type="checkbox" name="invoice[]" value="1" <? if(in_array("1", $_POST[invoice])) {echo "checked";} ?>>Email
|
||||
<input type="checkbox" onClick="toggle(this)" <? if(in_array("0", $_POST[invoice]) && in_array("1", $_POST[invoice])) {echo "checked";} ?>>Both
|
||||
<? /* need to insert checking in case of edit here on the value side */ ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Notes</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<textarea name="notes" rows="7" class="txt lngtext" placeholder="Any additional notes go here."><? if($_POST[notes]){ echo strip_tags(stripslashes($_POST[notes])); } ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow actions">
|
||||
<div class="dcell name"></div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<input type="submit" value="Submit" class="btn">
|
||||
<input type="hidden" name="add_account" value="true">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<? }
|
||||
// end insert form
|
||||
|
||||
// begin confirmation form
|
||||
if($confirm_account == true){
|
||||
|
||||
?>
|
||||
Please confirm your information. If everything is correct, click the submit button. Otherwise, you may click the edit button to change your information before submitting.</div>
|
||||
<br />
|
||||
|
||||
<div class="dtable form">
|
||||
<div class="drow">
|
||||
<div class="dcell name">Company/Advertiser Name</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo stripslashes($_POST[advertiser]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<? // check the db for similar matches
|
||||
$name_tag = strtolower(str_replace(" ","", $_POST['advertiser']));
|
||||
$name_superstart = substr($name_tag, 0, 4);
|
||||
$name_superend = substr($name_tag, -4, 4);
|
||||
$name_supermid = substr($name_tag, ((strlen($name_tag))/2 - 2), 4);
|
||||
//echo $name_supermid;
|
||||
$match_sql = "SELECT * FROM io_account WHERE (account_advertiser LIKE '%".$name_superstart."%' OR account_advertiser LIKE '%".$name_superend."%' OR account_advertiser LIKE '%".$name_supermid."%')";
|
||||
|
||||
//echo $match_sql;
|
||||
|
||||
$match_fetch = mysql_query($match_sql) OR die(mysql_error());
|
||||
|
||||
$i = false;
|
||||
while ($match_row = mysql_fetch_array($match_fetch)) {
|
||||
similar_text($match_row['account_name'], $_POST['name'], $percent);
|
||||
if ($percent >= 50) {
|
||||
if ($i == false) {
|
||||
echo ("<tr><td align=\"right\">Duplicate Alert:</td><td>");
|
||||
}
|
||||
if ($i == true) {echo ("<br />");}
|
||||
echo ($match_row['account_name']."(Similarity: ".(round($percent, 0))."%)");
|
||||
$i = true;
|
||||
}
|
||||
}
|
||||
if ($i == true) { echo("</td></tr>"); }
|
||||
?>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Contact Name</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo stripslashes(htmlspecialchars($_POST[contact])); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Forum ID</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo stripslashes(htmlspecialchars($_POST[forumid])); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Address </div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[address])); ?></div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Address 2</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[address_two])); ?></div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">City</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[city])); ?></div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">State</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[state])); ?></div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Zip</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[zip])); ?></div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Phone</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo stripslashes(htmlspecialchars($_POST[phone])); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Email</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo stripslashes(htmlspecialchars($_POST[email])); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Other Contacts</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo $_POST[other]; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Invoice Via</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<?
|
||||
|
||||
$certification_list = "";
|
||||
foreach($_POST[invoice] as $value) {
|
||||
if ($value == "0") $certification_list = $certification_list."Snail, ";
|
||||
if ($value == "1") $certification_list = $certification_list."Email";
|
||||
};
|
||||
|
||||
$certification_list = rtrim($certification_list, ', ');
|
||||
|
||||
echo $certification_list;
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">General Info</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo strip_tags(stripslashes($_POST[notes])) ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow actions">
|
||||
<div class="dcell name"></div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<form action="create.php" method="post">
|
||||
<input type="hidden" name="advertiser" value="<? echo stripslashes(htmlspecialchars($_POST[advertiser])); ?>">
|
||||
<input type="hidden" name="contact" value="<? echo stripslashes(htmlspecialchars($_POST[contact])); ?>">
|
||||
<input type="hidden" name="forumid" value="<? echo $_POST[forumid]; ?>">
|
||||
<input type="hidden" name="address" value="<? echo stripslashes(htmlspecialchars($_POST[address])); ?>">
|
||||
<input type="hidden" name="address_two" value="<? echo stripslashes(htmlspecialchars($_POST[address_two])); ?>">
|
||||
<input type="hidden" name="city" value="<? echo stripslashes(htmlspecialchars($_POST[city])); ?>">
|
||||
<input type="hidden" name="state" value="<? echo $_POST[state]; ?>">
|
||||
<input type="hidden" name="zip" value="<? echo $_POST[zip]; ?>">
|
||||
<input type="hidden" name="phone" value="<? echo $_POST[phone]; ?>">
|
||||
<input type="hidden" name="email" value="<? echo $_POST[email]; ?>">
|
||||
<input type="hidden" name="other" value="<? echo $_POST[other]; ?>">
|
||||
<input type="hidden" name="invoice" value="<? echo(implode(',', $_POST[invoice])); ?>">
|
||||
<input type="hidden" name="notes" value="<? echo stripslashes(htmlspecialchars($_POST[notes])); ?>">
|
||||
<input type="hidden" name="add_account" value="true">
|
||||
<input type="hidden" name="insert_account" value="true">
|
||||
<input type="hidden" name="submitted_by" value="<? echo $useruid; ?>" >
|
||||
<input type="submit" name="submit" value="Submit Info" class="btn float-left" style="margin-right: 5px;"/>
|
||||
</form>
|
||||
<form action="create.php" method="post">
|
||||
<input type="hidden" name="advertiser" value="<? echo stripslashes(htmlspecialchars($_POST[advertiser])); ?>">
|
||||
<input type="hidden" name="contact" value="<? echo stripslashes(htmlspecialchars($_POST[contact])); ?>">
|
||||
<input type="hidden" name="forumid" value="<? echo $_POST[forumid]; ?>">
|
||||
<input type="hidden" name="address" value="<? echo stripslashes(htmlspecialchars($_POST[address])); ?>">
|
||||
<input type="hidden" name="address_two" value="<? echo stripslashes(htmlspecialchars($_POST[address_two])); ?>">
|
||||
<input type="hidden" name="city" value="<? echo stripslashes(htmlspecialchars($_POST[city])); ?>">
|
||||
<input type="hidden" name="state" value="<? echo $_POST[state]; ?>">
|
||||
<input type="hidden" name="zip" value="<? echo $_POST[zip]; ?>">
|
||||
<input type="hidden" name="phone" value="<? echo $_POST[phone]; ?>">
|
||||
<input type="hidden" name="email" value="<? echo $_POST[email]; ?>">
|
||||
<input type="hidden" name="other" value="<? echo $_POST[other]; ?>">
|
||||
<input type="hidden" name="invoice" value="<? echo(implode(',', $_POST[invoice])); ?>">
|
||||
<input type="hidden" name="notes" value="<? echo stripslashes(htmlspecialchars($_POST[notes])); ?>">
|
||||
<input type="hidden" name="confirm_account" value="0">
|
||||
<input type="submit" name="submit" value="Edit Information" class="btn float-left" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
//end confirmation form
|
||||
?>
|
||||
|
||||
</div><!-- end col-2/3 -->
|
||||
|
||||
</div><!-- end grid -->
|
||||
</div><!-- end content -->
|
||||
</section>
|
||||
|
||||
|
||||
</div><!-- end contentwrapper -->
|
||||
</div> <!-- end main -->
|
||||
|
||||
<? include($common_path . "/templates/include_footer.php") ?>
|
||||
</div> <!-- container -->
|
||||
</body>
|
||||
<? include($common_path . "/templates/include_global_js.php") ?>
|
||||
</html>
|
77
site/slowtwitch.com/www/adio/create_X.php
Normal file
77
site/slowtwitch.com/www/adio/create_X.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?PHP
|
||||
|
||||
if (!$_POST){ header('Location: '.$site_url); }
|
||||
|
||||
/*
|
||||
|
||||
FIELD NAMES:
|
||||
account_id
|
||||
account_user_id_fk
|
||||
account_advertiser
|
||||
account_contact
|
||||
account_phone
|
||||
account_email
|
||||
account_other
|
||||
account_invoice
|
||||
account_notes
|
||||
|
||||
*/
|
||||
|
||||
/* Need to ltrim and rtrim commas before insertion */
|
||||
|
||||
//Insert into database
|
||||
//$pass = 'abc123';
|
||||
$errmsg = NULL;
|
||||
$insert_success = NULL;
|
||||
//Check for blank fields
|
||||
if ((!$_POST[advertiser])) $errmsg = $errmsg."Account Name, ";
|
||||
if ((!$_POST[contact])) $errmsg = $errmsg."Primary Contact, ";
|
||||
if ((!$_POST[forumid])) $errmsg = $errmsg."Forum ID #, ";
|
||||
if (!$_POST[city]) $errmsg = $errmsg."City, ";
|
||||
if (!$_POST[state]) $errmsg = $errmsg."State, ";
|
||||
if (!$_POST[address]) $errmsg = $errmsg."Address, ";
|
||||
if (!$_POST[phone]) $errmsg = $errmsg."Phone, ";
|
||||
if (!$_POST[email]) $errmsg = $errmsg."Email, ";
|
||||
if (!$_POST[invoice]) $errmsg = $errmsg."Invoice, ";
|
||||
if (isset($errmsg)) {
|
||||
$errmsg = "The following fields cannot be left blank: ".$errmsg."<br />";
|
||||
$errmsg = rtrim($errmsg, ", ");
|
||||
}
|
||||
|
||||
|
||||
// begin error message check
|
||||
if(!$errmsg){
|
||||
|
||||
$advertiser = trim($_POST[advertiser]);
|
||||
$contact = trim($_POST[contact]);
|
||||
$forumid = trim($_POST[forumid]);
|
||||
$address = mysql_escape_string(trim($_POST[address]));
|
||||
if (isset($_POST['address_two'])) { $address_two = mysql_escape_string(trim($_POST[address_two])); } else { $address_two = NULL; }
|
||||
$city = mysql_escape_string(trim($_POST[city]));
|
||||
$state = $_POST[state];
|
||||
$state_tag = strtolower(str_replace(" ","", $state));
|
||||
$zip = mysql_escape_string(trim($_POST[zip]));
|
||||
$phone = trim($_POST[phone]);
|
||||
$email = mysql_escape_string(trim($_POST[email]));
|
||||
$other = mysql_escape_string(trim($_POST[other]));
|
||||
$invoice = mysql_escape_string($_POST[invoice]);
|
||||
$notes = mysql_escape_string(nl2br(substr(trim($_POST[notes]), 0, 4096)));
|
||||
$submitted_by = $_POST[submitted_by];
|
||||
|
||||
// begin boolean check to see if we should insert the account into the dbase
|
||||
if($_POST[insert_account] == true){
|
||||
$sql = "INSERT INTO io_account (account_advertiser, account_user_id_fk, account_contact, account_address, account_address_two, account_city, account_state, account_zip, account_phone, account_email, account_other, account_invoice, account_notes) VALUES ('$advertiser', '$forumid', '$contact', '$address', '$address_two', '$city', '$state', '$zip', '$phone', '$email', '$other', ',$invoice,', '$notes')";
|
||||
//echo("account entered!");
|
||||
//echo($sql);
|
||||
mysql_query($sql) OR die(mysql_error());
|
||||
//exit();
|
||||
$insert_success = true;
|
||||
}else{
|
||||
//echo("shop NOT entered.");
|
||||
$confirm_account = true;
|
||||
}
|
||||
// end insert check
|
||||
}
|
||||
// end error message check
|
||||
|
||||
?>
|
23
site/slowtwitch.com/www/adio/delete_X.php
Normal file
23
site/slowtwitch.com/www/adio/delete_X.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?PHP
|
||||
|
||||
include("config.php");
|
||||
|
||||
if(!is_admin($user)){
|
||||
header('Location:'.$site_url.'/');
|
||||
}
|
||||
|
||||
if (!$_POST){ header('Location: '.$site_url); }
|
||||
|
||||
if (isset($_POST[account_id])) {
|
||||
$sql = "DELETE FROM io_account WHERE account_id = '$_POST[account_id]'";
|
||||
} elseif (isset($_POST[campaign_id])) {
|
||||
$sql = "DELETE FROM io_campaign WHERE campaign_id = '$_POST[campaign_id]'";
|
||||
}
|
||||
|
||||
//echo $sql;
|
||||
//exit();
|
||||
mysql_query($sql) or die(mysql_error());
|
||||
|
||||
header('Location: campaign.php');
|
||||
|
||||
?>
|
16
site/slowtwitch.com/www/adio/include_advertiser.php
Normal file
16
site/slowtwitch.com/www/adio/include_advertiser.php
Normal file
@ -0,0 +1,16 @@
|
||||
<div class="list-block grid">
|
||||
<div class="col-1-1 clearfix">
|
||||
<h3 class="float-left"><? echo $ad_row[account_advertiser]; ?></h3>
|
||||
<div class="float-right">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1-2">
|
||||
<?
|
||||
echo ("$ad_row[account_contact]");
|
||||
?>
|
||||
</div>
|
||||
<div class="col-1-2">
|
||||
Email: <? echo "<a href='mailto:$ad_row[account_email]'>$ad_row[account_email]</a>"; ?><br/>
|
||||
<a href="<? echo "advertiser_account.php?account_id=$ad_row[account_id]"; ?>">More info ></a>
|
||||
</div>
|
||||
</div>
|
4
site/slowtwitch.com/www/adio/include_breadcrumb.php
Normal file
4
site/slowtwitch.com/www/adio/include_breadcrumb.php
Normal file
@ -0,0 +1,4 @@
|
||||
<div class="breadcrumb">
|
||||
<a href="<? echo $main_site_url ?>">Home</a> >
|
||||
<a href="<? echo $main_site_url . "/adio/index.php" ?>">Advert IO</a> >
|
||||
</div>
|
83
site/slowtwitch.com/www/adio/include_buttons.php
Normal file
83
site/slowtwitch.com/www/adio/include_buttons.php
Normal file
@ -0,0 +1,83 @@
|
||||
<?PHP
|
||||
|
||||
if(is_logged_in($user)){
|
||||
//Get user's uid
|
||||
//$testresults = mysql_query("SELECT user_id FROM ".$prefix."User WHERE user_username=\"$username\"") or die(mysql_error());
|
||||
//$testrow = mysql_fetch_array($testresults);
|
||||
//$useruid = $testrow[user_id];
|
||||
$useruid = base64_decode($_SESSION['user_id']);
|
||||
|
||||
// is the current user the owner of the advertiser?
|
||||
$advertiser_submitted_by = FALSE;
|
||||
if($useruid == $row[account_user_id_fk]){
|
||||
$advertiser_submitted_by = TRUE;
|
||||
}
|
||||
|
||||
if (eregi("advertiser_account.php", $_SERVER['SCRIPT_NAME'])) {
|
||||
?>
|
||||
<div>
|
||||
<? if(is_admin($user)){ ?>
|
||||
<form method="post" action="<? echo "advertiser_edit.php?account_id=$row[account_id]"; ?>" style="display: inline;">
|
||||
<input type="submit" value="Edit account" class="btn" />
|
||||
</form>
|
||||
|
||||
<form method="post" action="delete_X.php" style="display: inline;">
|
||||
<input type="hidden" name="account_id" value="<? echo($row[account_id]); ?>" />
|
||||
<input type="submit" value="Delete this advertiser" class="btn" onclick="return confirm('Are you sure you want to DELETE this advertiser?');" />
|
||||
</form>
|
||||
|
||||
<? } ?>
|
||||
</div>
|
||||
<? } elseif (eregi("campaign_detail.php", $_SERVER['SCRIPT_NAME'])) { ?>
|
||||
|
||||
<div>
|
||||
<? if(is_admin($user)){ ?>
|
||||
|
||||
<form method="post" action="campaign_quick_edit_X.php" style="display: inline;">
|
||||
<input type="hidden" name="action" value="invoice" />
|
||||
<input type="hidden" name="campaign_id" value="<? echo($row[campaign_id]); ?>" />
|
||||
<input type="submit" value="Mark as invoiced" class="btn" onclick="return confirm('Are you sure you want to mark this campaign as INVOICED?');" />
|
||||
</form>
|
||||
|
||||
<form method="post" action="campaign_quick_edit_X.php" style="display: inline;">
|
||||
<input type="hidden" name="action" value="screenshot" />
|
||||
<input type="hidden" name="campaign_id" value="<? echo($row[campaign_id]); ?>" />
|
||||
<input type="submit" value="Mark as screenshot" class="btn" onclick="return confirm('Are you sure you want to mark this campaign as SCREENSHOT?');" />
|
||||
</form>
|
||||
|
||||
<form method="post" action="campaign_quick_edit_X.php" style="display: inline;">
|
||||
<input type="hidden" name="action" value="deploy" />
|
||||
<input type="hidden" name="campaign_id" value="<? echo($row[campaign_id]); ?>" />
|
||||
<input type="submit" value="Mark as deployed" class="btn" onclick="return confirm('Are you sure you want to mark this campaign as DEPLOYED?');" />
|
||||
</form>
|
||||
|
||||
<br /><br />
|
||||
|
||||
<form method="post" action="<? echo "campaign_edit.php?campaign_id=$row[campaign_id]"; ?>" style="display: inline;">
|
||||
<input type="submit" value="Edit campaign" class="btn" />
|
||||
</form>
|
||||
|
||||
<form method="post" action="delete_X.php" style="display: inline;">
|
||||
<input type="hidden" name="campaign_id" value="<? echo($row[campaign_id]); ?>" />
|
||||
<input type="submit" value="Delete this campaign" class="btn" onclick="return confirm('Are you sure you want to DELETE this campaign?');" />
|
||||
</form>
|
||||
|
||||
<? if ($row[campaign_archive] == 1) { ?>
|
||||
<form method="post" action="campaign_quick_edit_X.php" style="display: inline;">
|
||||
<input type="hidden" name="action" value="unarchive" />
|
||||
<input type="hidden" name="campaign_id" value="<? echo($row[campaign_id]); ?>" />
|
||||
<input type="submit" value="*UN*archive this campaign" class="btn" onclick="return confirm('Are you sure you want to *UN*ARCHIVE this campaign?');" />
|
||||
</form>
|
||||
<? } else { ?>
|
||||
<form method="post" action="campaign_quick_edit_X.php" style="display: inline;">
|
||||
<input type="hidden" name="action" value="archive" />
|
||||
<input type="hidden" name="campaign_id" value="<? echo($row[campaign_id]); ?>" />
|
||||
<input type="submit" value="archive this campaign" class="btn" onclick="return confirm('Are you sure you want to ARCHIVE this campaign?');" />
|
||||
</form>
|
||||
<? } ?>
|
||||
|
||||
|
||||
<? } ?>
|
||||
</div>
|
||||
|
||||
<? } } ?>
|
17
site/slowtwitch.com/www/adio/include_campaign.php
Normal file
17
site/slowtwitch.com/www/adio/include_campaign.php
Normal file
@ -0,0 +1,17 @@
|
||||
<div class="list-block grid">
|
||||
<div class="col-1-1 clearfix">
|
||||
<h3 class="float-left"><? echo $ad_row[campaign_name]; ?></h3>
|
||||
<div class="float-right">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1-2">
|
||||
<?
|
||||
echo ("Start Date: ".date_format(date_create($ad_row[campaign_date]), 'Y-m-d')."<br />");
|
||||
echo ("Repeat Date: ".date_format(date_create($ad_row[campaign_date_repeat]), 'Y-m-d')."<br />");
|
||||
?>
|
||||
</div>
|
||||
<div class="col-1-2">
|
||||
Advertiser: <? echo "<a href='advertiser_account.php?account_id=$ad_row[campaign_account_id_fk]'>$ad_row[campaign_advertiser]</a>"; ?><br/>
|
||||
<a href="<? echo "campaign_detail.php?campaign_id=$ad_row[campaign_id]"; ?>">More info ></a>
|
||||
</div>
|
||||
</div>
|
40
site/slowtwitch.com/www/adio/include_common_content.php
Normal file
40
site/slowtwitch.com/www/adio/include_common_content.php
Normal file
@ -0,0 +1,40 @@
|
||||
|
||||
<? $xmlURL = "http://www.slowtwitch.com/googlemaps/coaches_xml.php" ?>
|
||||
<body id="home" <? if (eregi("index.php", $_SERVER['SCRIPT_NAME'])) { echo ("onload=\"initializeAllMap('$xmlURL')\""); } ?>>
|
||||
<? include("/var/home/slowtwitch/slowtwitch.com/www/db_templates/fb_sdk.html"); ?>
|
||||
<div id="accessibility"><a href="#content">Skip to Content</a></div>
|
||||
<hr class="hide" />
|
||||
<div id="wrapper">
|
||||
<div id="header">
|
||||
<div id="ad_728x90"><!-- BEGIN ADVERTPRO CODE BLOCK -->
|
||||
<? include "../db_templates/ad_728x90.html"; ?>
|
||||
<!-- END ADVERTPRO CODE BLOCK --></div>
|
||||
<div id="logo"><h1><a href="http://www.slowtwitch.com"><:: Welcome to Slowtwitch.com ::></a></h1></div>
|
||||
</div>
|
||||
|
||||
<? include "../db_templates/common_nav.html"; ?>
|
||||
|
||||
<hr class="hide" />
|
||||
<div id="ocwrapper" class="clear">
|
||||
<div id="icwrapper" class="clear">
|
||||
|
||||
<div id="leftsidebar">
|
||||
<?
|
||||
include("include_status.php");
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<?
|
||||
include("include_navigation.php");
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="contentwrapper" class="shadowleft">
|
||||
<div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
|
||||
<div class="shadowright">
|
||||
<div id="content">
|
||||
<div class="clear"></div>
|
1
site/slowtwitch.com/www/adio/include_common_footer.php
Normal file
1
site/slowtwitch.com/www/adio/include_common_footer.php
Normal file
@ -0,0 +1 @@
|
||||
<?PHP include("../db_templates/include_common_footer.php"); ?>
|
19
site/slowtwitch.com/www/adio/include_common_head.php
Normal file
19
site/slowtwitch.com/www/adio/include_common_head.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?PHP
|
||||
if (eregi("include", $_SERVER['SCRIPT_NAME'])) {
|
||||
Header("Location: ".$site_url."/index.php"); die();
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html >
|
||||
<html lang="en">
|
||||
<head>
|
||||
<base href="<? echo $site_url ?>/" />
|
||||
<title>Slowtwitch.com Advertisement Insertion Order: <? echo $pagetitle; ?></title>
|
||||
<? include($common_path . "/templates/include_global_head.php"); ?>
|
||||
<? include($common_path . "/templates/google_analytics.html"); ?>
|
||||
<? include($common_path . "/templates/fb_sdk.html"); ?>
|
||||
<!-- begin script to create random number for ads -->
|
||||
<script language="Javascript">
|
||||
<!--
|
||||
sgi_ord=Math.random()*10000000000000000;
|
||||
//-->
|
||||
</script>
|
2
site/slowtwitch.com/www/adio/include_sidebar.php
Normal file
2
site/slowtwitch.com/www/adio/include_sidebar.php
Normal file
@ -0,0 +1,2 @@
|
||||
<? include("include_status.php"); ?>
|
||||
<div class="widget-divider"></div>
|
11
site/slowtwitch.com/www/adio/include_status.php
Normal file
11
site/slowtwitch.com/www/adio/include_status.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?PHP ?>
|
||||
<?
|
||||
if(is_admin()){
|
||||
echo("<br /><br /><strong style=\"text-decoration: underline;\">Admin:</strong>");
|
||||
echo("<br /><a href='advertiser.php'><strong>View Advertisers</strong></a>");
|
||||
echo("<br /><a href='campaign.php'><strong>View Active Campaigns</strong></a>");
|
||||
echo("<br /><a href='archive.php'><strong>View Archived Campaigns</strong></a>");
|
||||
echo("<br /><a href='add.php'><strong>Add New Insertion Order</strong></a>");
|
||||
echo("<br /><a href='create.php'><strong>Create New Advertiser Account</strong></a>");
|
||||
}
|
||||
?>
|
52
site/slowtwitch.com/www/adio/index.php
Normal file
52
site/slowtwitch.com/www/adio/index.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?PHP include("config.php");
|
||||
|
||||
// need to update code so that users are automatically taken to the page for their individual account here.
|
||||
|
||||
|
||||
// set the page title
|
||||
$pagetitle = "Advertisement Insertion Order";
|
||||
|
||||
// set meta tags
|
||||
$meta_keywords = "advert io";
|
||||
$meta_description = "tool for requesting an ad isertion";
|
||||
?>
|
||||
|
||||
<? include("include_common_head.php"); ?>
|
||||
<body class="listings">
|
||||
<? include($common_path . "/ads/ad_wallpaper.html"); ?>
|
||||
|
||||
<div class="container">
|
||||
<? include($common_path . "/templates/include_header.php"); ?>
|
||||
<div class="main">
|
||||
<div class="contentwrapper clearfix">
|
||||
<? include("include_breadcrumb.php"); ?>
|
||||
|
||||
<section class="section listings section-has-widgets section-static remove-sidebar">
|
||||
<div class="sidebar-b">
|
||||
<? include("include_sidebar.php"); ?>
|
||||
</div>
|
||||
|
||||
<div class="content content-has-widgets">
|
||||
<div class="grid">
|
||||
|
||||
<div class="clearfix">
|
||||
<h1 class="float-left">Advertisement Insertion Order Manager</h1>
|
||||
<? /**if (is_logged_in($user)) { ?>
|
||||
<a href="<? echo $site_url . '/add.php' ?>" class="btn btn-white float-right">Request IO</a>
|
||||
<? }**/ ?>
|
||||
<hr class="line" />
|
||||
|
||||
</div><!-- end col-2/3 -->
|
||||
|
||||
</div><!-- end grid -->
|
||||
</div><!-- end content -->
|
||||
</section>
|
||||
|
||||
</div><!-- end contentwrapper -->
|
||||
</div> <!-- end main -->
|
||||
|
||||
<? include($common_path . "/templates/include_footer.php") ?>
|
||||
</div> <!-- container -->
|
||||
</body>
|
||||
<? include($common_path . "/templates/include_global_js.php") ?>
|
||||
</html>
|
123
site/slowtwitch.com/www/adio/javascript.js
Normal file
123
site/slowtwitch.com/www/adio/javascript.js
Normal file
@ -0,0 +1,123 @@
|
||||
function validateEmail(emailAddress) {
|
||||
var match = /^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$/.test(emailAddress);
|
||||
return match;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function CheckRegisterForm(RegisterForm)
|
||||
{
|
||||
if (RegisterForm.username.value == "" ) { alert( "Please choose a username!" );
|
||||
RegisterForm.username.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.password.value == "" ) { alert( "Please choose a password!" );
|
||||
RegisterForm.password.focus();
|
||||
return false; }
|
||||
|
||||
if (RegisterForm.email.value == "" ) { alert( "Please enter your email address." );
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = RegisterForm.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("Your emails address is invalid!.");
|
||||
RegisterForm.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
function CheckTellForm(tellform)
|
||||
{
|
||||
if (tellform.name.value == "" ) { alert( "ÇáÑÌÇÁ ÃÏÎá ÇáÅÓã ÈÇáßÇãá" );
|
||||
tellform.name.focus();
|
||||
return false; }
|
||||
|
||||
if (tellform.email.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÅáßÊÑæäí" );
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.email.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.email.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
if (tellform.fname.value == "" ) { alert( "ÃÏÎá ÅÓã ÕÏíÞß" );
|
||||
tellform.fname.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
if (tellform.femail.value == "" ) { alert( "ÃÏÎá ÇáÈÑíÏ ÇáÇáßÊÑæäí ÇáÎÇÕ ÈÕÏíÞß" );
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
checkEmail = tellform.femail.value
|
||||
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
|
||||
{alert("ÇáÈÑíÏ ÇáÅáßÊÑæäí ÎØÃ!.");
|
||||
tellform.femail.focus();
|
||||
return false; }
|
||||
|
||||
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
|
||||
var newwindow;
|
||||
function pop(url)
|
||||
{
|
||||
newwindow=window.open(url,'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=1, menubars=0, resizable=0, width=500, height=400');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
function popimg(url)
|
||||
{
|
||||
newwindow=window.open(url,'name','height=500,width=650,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
}
|
||||
|
||||
|
||||
|
||||
<!-- ;
|
||||
var newwindow;
|
||||
var wheight = 0, wwidth = 0;
|
||||
function viewimg(url, title, iwidth, iheight, colour) {
|
||||
var pwidth, pheight;
|
||||
|
||||
if ( !newwindow || newwindow.closed ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+30;
|
||||
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
if (wheight!=iheight || wwidth!=iwidth ) {
|
||||
pwidth=iwidth+30;
|
||||
pheight=iheight+60;
|
||||
newwindow.resizeTo(pwidth, pheight);
|
||||
wheight=iheight;
|
||||
wwidth=iwidth;
|
||||
}
|
||||
|
||||
newwindow.document.clear();
|
||||
newwindow.focus();
|
||||
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
|
||||
newwindow.document.writeln('<a titl="ÅÖÛØ ÇáÕæÑÉ ááÅÛáÇÞ" href="javascript:window.close();"><img src=' + url + ' border=0></a>');
|
||||
newwindow.document.writeln('<\/center> <\/body> <\/html>');
|
||||
newwindow.document.close();
|
||||
newwindow.focus();
|
||||
}
|
||||
|
||||
// Routines to tidy up popup windows when page is left
|
||||
// Call with an onUnload="tidy5()" in body tag
|
||||
|
||||
function tidy5() {
|
||||
if (newwindow && !newwindow.closed) { newwindow.close(); }
|
||||
}
|
7
site/slowtwitch.com/www/adio/logout.php
Normal file
7
site/slowtwitch.com/www/adio/logout.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?PHP
|
||||
include("config.php");
|
||||
session_unset();
|
||||
session_destroy();
|
||||
$_SESSION = array();
|
||||
header("Location: http://forum.slowtwitch.com/gforum.cgi?do=logout&from=coaches");
|
||||
?>
|
339
site/slowtwitch.com/www/adio/mysql.class.php
Normal file
339
site/slowtwitch.com/www/adio/mysql.class.php
Normal file
@ -0,0 +1,339 @@
|
||||
<?PHP
|
||||
###########################################
|
||||
#-----------Users login system------------#
|
||||
###########################################
|
||||
/*=========================================\
|
||||
Author : Mohammed Ahmed(M@@king) \\
|
||||
Version : 1.0 \\
|
||||
Date Created: Aug 20 2005 \\
|
||||
---------------------------- \\
|
||||
Last Update: August 22 2005 \\
|
||||
---------------------------- \\
|
||||
Country : Palestine \\
|
||||
City : Gaza \\
|
||||
E-mail : m@maaking.com \\
|
||||
MSN : m@maaking.com \\
|
||||
AOL-IM : maa2pal \\
|
||||
WWW : http://www.maaking.com \\
|
||||
Mobile/SMS : 00972-599-622235 \\
|
||||
\\
|
||||
===========================================\
|
||||
------------------------------------------*/
|
||||
if (eregi("mysql.class.php", $_SERVER['SCRIPT_NAME'])) {
|
||||
Header("Location: index.php"); die();
|
||||
}
|
||||
//db class
|
||||
if(!defined("SQL_LAYER"))
|
||||
{
|
||||
|
||||
define("SQL_LAYER","mysql");
|
||||
|
||||
class sql_db
|
||||
{
|
||||
|
||||
var $db_connect_id;
|
||||
var $query_result;
|
||||
var $row = array();
|
||||
var $rowset = array();
|
||||
var $num_queries = 0;
|
||||
|
||||
//
|
||||
// Constructor
|
||||
//
|
||||
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
|
||||
{
|
||||
|
||||
$this->persistency = $persistency;
|
||||
$this->user = $sqluser;
|
||||
$this->password = $sqlpassword;
|
||||
$this->server = $sqlserver;
|
||||
$this->dbname = $database;
|
||||
|
||||
if($this->persistency)
|
||||
{
|
||||
$this->db_connect_id = @mysql_pconnect($this->server, $this->user, $this->password);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->db_connect_id = @mysql_connect($this->server, $this->user, $this->password);
|
||||
}
|
||||
if($this->db_connect_id)
|
||||
{
|
||||
if($database != "")
|
||||
{
|
||||
$this->dbname = $database;
|
||||
$dbselect = @mysql_select_db($this->dbname);
|
||||
if(!$dbselect)
|
||||
{
|
||||
@mysql_close($this->db_connect_id);
|
||||
$this->db_connect_id = $dbselect;
|
||||
}
|
||||
}
|
||||
return $this->db_connect_id;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Other base methods
|
||||
//
|
||||
function sql_close()
|
||||
{
|
||||
if($this->db_connect_id)
|
||||
{
|
||||
if($this->query_result)
|
||||
{
|
||||
@mysql_free_result($this->query_result);
|
||||
}
|
||||
$result = @mysql_close($this->db_connect_id);
|
||||
return $result;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Base query method
|
||||
//
|
||||
function sql_query($query = "", $transaction = FALSE)
|
||||
{
|
||||
// Remove any pre-existing queries
|
||||
unset($this->query_result);
|
||||
if($query != "")
|
||||
{
|
||||
|
||||
$this->query_result = @mysql_query($query, $this->db_connect_id);
|
||||
|
||||
}
|
||||
if($this->query_result)
|
||||
{
|
||||
unset($this->row[$this->query_result]);
|
||||
unset($this->rowset[$this->query_result]);
|
||||
return $this->query_result;
|
||||
}
|
||||
else
|
||||
{
|
||||
return ( $transaction == END_TRANSACTION ) ? true : false;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Other query methods
|
||||
//
|
||||
function sql_numrows($query_id = 0)
|
||||
{
|
||||
if(!$query_id)
|
||||
{
|
||||
$query_id = $this->query_result;
|
||||
}
|
||||
if($query_id)
|
||||
{
|
||||
$result = @mysql_num_rows($query_id);
|
||||
return $result;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function sql_affectedrows()
|
||||
{
|
||||
if($this->db_connect_id)
|
||||
{
|
||||
$result = @mysql_affected_rows($this->db_connect_id);
|
||||
return $result;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function sql_numfields($query_id = 0)
|
||||
{
|
||||
if(!$query_id)
|
||||
{
|
||||
$query_id = $this->query_result;
|
||||
}
|
||||
if($query_id)
|
||||
{
|
||||
$result = @mysql_num_fields($query_id);
|
||||
return $result;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function sql_fieldname($offset, $query_id = 0)
|
||||
{
|
||||
if(!$query_id)
|
||||
{
|
||||
$query_id = $this->query_result;
|
||||
}
|
||||
if($query_id)
|
||||
{
|
||||
$result = @mysql_field_name($query_id, $offset);
|
||||
return $result;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function sql_fieldtype($offset, $query_id = 0)
|
||||
{
|
||||
if(!$query_id)
|
||||
{
|
||||
$query_id = $this->query_result;
|
||||
}
|
||||
if($query_id)
|
||||
{
|
||||
$result = @mysql_field_type($query_id, $offset);
|
||||
return $result;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function sql_fetchrow($query_id = 0)
|
||||
{
|
||||
if(!$query_id)
|
||||
{
|
||||
$query_id = $this->query_result;
|
||||
}
|
||||
if($query_id)
|
||||
{
|
||||
$this->row[$query_id] = @mysql_fetch_array($query_id);
|
||||
return $this->row[$query_id];
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function sql_fetchrowset($query_id = 0)
|
||||
{
|
||||
if(!$query_id)
|
||||
{
|
||||
$query_id = $this->query_result;
|
||||
}
|
||||
if($query_id)
|
||||
{
|
||||
unset($this->rowset[$query_id]);
|
||||
unset($this->row[$query_id]);
|
||||
while($this->rowset[$query_id] = @mysql_fetch_array($query_id))
|
||||
{
|
||||
$result[] = $this->rowset[$query_id];
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function sql_fetchfield($field, $rownum = -1, $query_id = 0)
|
||||
{
|
||||
if(!$query_id)
|
||||
{
|
||||
$query_id = $this->query_result;
|
||||
}
|
||||
if($query_id)
|
||||
{
|
||||
if($rownum > -1)
|
||||
{
|
||||
$result = @mysql_result($query_id, $rownum, $field);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(empty($this->row[$query_id]) && empty($this->rowset[$query_id]))
|
||||
{
|
||||
if($this->sql_fetchrow())
|
||||
{
|
||||
$result = $this->row[$query_id][$field];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if($this->rowset[$query_id])
|
||||
{
|
||||
$result = $this->rowset[$query_id][$field];
|
||||
}
|
||||
else if($this->row[$query_id])
|
||||
{
|
||||
$result = $this->row[$query_id][$field];
|
||||
}
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function sql_rowseek($rownum, $query_id = 0){
|
||||
if(!$query_id)
|
||||
{
|
||||
$query_id = $this->query_result;
|
||||
}
|
||||
if($query_id)
|
||||
{
|
||||
$result = @mysql_data_seek($query_id, $rownum);
|
||||
return $result;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function sql_nextid(){
|
||||
if($this->db_connect_id)
|
||||
{
|
||||
$result = @mysql_insert_id($this->db_connect_id);
|
||||
return $result;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function sql_freeresult($query_id = 0){
|
||||
if(!$query_id)
|
||||
{
|
||||
$query_id = $this->query_result;
|
||||
}
|
||||
|
||||
if ( $query_id )
|
||||
{
|
||||
unset($this->row[$query_id]);
|
||||
unset($this->rowset[$query_id]);
|
||||
|
||||
@mysql_free_result($query_id);
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function sql_error($query_id = 0)
|
||||
{
|
||||
$result["message"] = @mysql_error($this->db_connect_id);
|
||||
$result["code"] = @mysql_errno($this->db_connect_id);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
} // class sql_db
|
||||
|
||||
} // if ... define
|
||||
|
||||
?>
|
1
site/slowtwitch.com/www/adio/test.txt
Normal file
1
site/slowtwitch.com/www/adio/test.txt
Normal file
@ -0,0 +1 @@
|
||||
GT
|
437
site/slowtwitch.com/www/ads.txt
Normal file
437
site/slowtwitch.com/www/ads.txt
Normal file
@ -0,0 +1,437 @@
|
||||
#Ads.txt slowtwitch.com
|
||||
#Ads.txt managed by AdsTxtManager.com - the free ads.txt management tool for publishers
|
||||
ownerdomain=slowtwitch.com
|
||||
contact=directsales@ezoic.com
|
||||
managerdomain=ezoic.co.uk
|
||||
|
||||
ezoic.co.uk, d09a89c0401a966f3df87f05d3f8c750, DIRECT
|
||||
google.com, pub-6396844742497208, RESELLER, f08c47fec0942fa0
|
||||
152media.info, 152M7, RESELLER
|
||||
33across.com, 0010b00001rrPUnAAM, DIRECT, bbea06d9c4d2853c
|
||||
33across.com, 0013300001kQj2HAAS, RESELLER, bbea06d9c4d2853c
|
||||
33across.com, 0013300001r0t9mAAA, RESELLER
|
||||
33across.com, 0015a00003DKg9ZAAT, RESELLER, bbea06d9c4d2853c
|
||||
33across.com, 0015a00003HljHyAAJ, RESELLER
|
||||
Appnexus.com, 1356, RESELLER, f5ab79cb980f11d1
|
||||
EMXDGT.com, 22, DIRECT, 1e1d41537f7cad7f
|
||||
Insticator.com, 058fb58a-5aac-432c-bb56-a8e3e300437c, DIRECT
|
||||
Pubmatic.com, 157119, DIRECT, 5d62403b186f2ace
|
||||
Pubmatic.com, 157119, RESELLER, 5d62403b186f2ace
|
||||
Pubmatic.com, 95054, DIRECT, 5d62403b186f2ace
|
||||
Pubmatic.com, 95054, RESELLER, 5d62403b186f2ace
|
||||
RTBHOUSE.COM, eDr4TCudLLHttcPmswNj, DIRECT
|
||||
Rhythmone.com, 527383184, DIRECT, a670c89d4a324e47
|
||||
ad-generation.jp, 12474, RESELLER, 7f4ea9029ac04e53
|
||||
adform.com, 2611, RESELLER
|
||||
adform.com, 2865, RESELLER
|
||||
adform.com, 3027, RESELLER
|
||||
adingo.jp, 24483, RESELLER
|
||||
admanmedia.com, 722, RESELLER
|
||||
admixer.net, 5e789729-1e92-41ca-8b4f-987c6edae9fe, RESELLER
|
||||
adtech.com, 11605, RESELLER
|
||||
adtech.com, 12068, RESELLER
|
||||
adtech.com, 12068, RESELLER, e1a5b5b6e3255540
|
||||
adtech.com, 12094, RESELLER
|
||||
adtech.com, 23218, RESELLER
|
||||
adtech.com, 4937, RESELLER
|
||||
adtech.com, 9993, RESELLER
|
||||
advangelists.com, 8d3bba7425e7c98c50f52ca1b52d3735, RESELLER, 60d26397ec060f98
|
||||
advertising.com, 10238, RESELLER
|
||||
advertising.com, 18632, RESELLER
|
||||
advertising.com, 19623, RESELLER
|
||||
advertising.com, 2270, RESELLER
|
||||
advertising.com, 23218, RESELLER
|
||||
advertising.com, 23302, RESELLER
|
||||
advertising.com, 23889, RESELLER
|
||||
advertising.com, 25034, DIRECT
|
||||
advertising.com, 26282, RESELLER
|
||||
advertising.com, 26347, RESELLER
|
||||
advertising.com, 3531, RESELLER
|
||||
advertising.com, 8656, RESELLER
|
||||
adwmg.com, 100746, RESELLER
|
||||
adyoulike.com, 5d48f86cc9ac7f96ae1bb882dea6d48e, DIRECT
|
||||
adyoulike.com, ad8c19559e1f2d3424eb0be801d8e184, DIRECT
|
||||
amxrtb.com, 105199335, DIRECT
|
||||
amxrtb.com, 105199440, RESELLER
|
||||
amxrtb.com, 105199709, DIRECT
|
||||
aniview.com, 57712eeef83f155c398b4567, RESELLER
|
||||
appnexus.com, 1001, RESELLER, f5ab79cb980f11d1
|
||||
appnexus.com, 10040, RESELLER
|
||||
appnexus.com, 10239, RESELLER, f5ab79cb980f11d1
|
||||
appnexus.com, 10617, DIRECT
|
||||
appnexus.com, 12290, RESELLER
|
||||
appnexus.com, 13099, RESELLER
|
||||
appnexus.com, 1360, RESELLER, f5ab79cb980f11d1
|
||||
appnexus.com, 1908, RESELLER, f5ab79cb980f11d1
|
||||
appnexus.com, 1942, RESELLER, f5ab79cb980f11d1
|
||||
appnexus.com, 2579, RESELLER
|
||||
appnexus.com, 2758, RESELLER, f5ab79cb980f11d1
|
||||
appnexus.com, 3135, RESELLER, f5ab79cb980f11d1
|
||||
appnexus.com, 3153, RESELLER, f5ab79cb980f11d1
|
||||
appnexus.com, 3663, RESELLER, f5ab79cb980f11d1
|
||||
appnexus.com, 3695, RESELLER
|
||||
appnexus.com, 3703, RESELLER, f5ab79cb980f11d1
|
||||
appnexus.com, 4052, RESELLER
|
||||
appnexus.com, 7096, DIRECT
|
||||
appnexus.com, 7597, RESELLER, f5ab79cb980f11d1
|
||||
appnexus.com, 7664, DIRECT
|
||||
appnexus.com, 7911, RESELLER
|
||||
appnexus.com, 9316, RESELLER, f5ab79cb980f11d1
|
||||
appnexus.com, 9393, DIRECT
|
||||
appnexus.com, 9393, RESELLER, f5ab79cb980f11d1
|
||||
appnexus.com, 9733, RESELLER
|
||||
aps.amazon.com, 3965, RESELLER
|
||||
aps.amazon.com, 70fb13d1-ab65-42ac-a7ca-0b4e680d5c92, DIRECT
|
||||
aps.amazon.com, e9ebbf2b-e30e-4f2f-826f-2b583b80ad97, DIRECT
|
||||
aralego.com, par-BE7E7ADB8D34EE2BF7BBD2899BB62A77, DIRECT
|
||||
beachfront.com, 10402, RESELLER, e2541279e8e2ca4d
|
||||
beachfront.com, 13310, DIRECT, e2541279e8e2ca4d
|
||||
beachfront.com, 1333, RESELLER, e2541279e8e2ca4d
|
||||
beachfront.com, 14027, RESELLER, e2541279e8e2ca4d
|
||||
beachfront.com, 4469, RESELLER, e2541279e8e2ca4d
|
||||
beachfront.com, 4969, RESELLER, e2541279e8e2ca4d
|
||||
beachfront.com, 5278, RESELLER, e2541279e8e2ca4d
|
||||
betweendigital.com, 44774, RESELLER
|
||||
betweendigital.com, 45128, DIRECT
|
||||
bidtellect.com, 1407, RESELLER, 1c34aa2d85d45e93
|
||||
bizzclick.com, 292, RESELLER, 7e936b1feafdaa61
|
||||
brightcom.com, 15800, DIRECT
|
||||
contextweb.com, 526740, RESELLER, 89ff185a4c4e857c
|
||||
contextweb.com, 558355, RESELLER
|
||||
contextweb.com, 558458, RESELLER, 89ff185a4c4e857c
|
||||
contextweb.com, 560288, RESELLER, 89ff185a4c4e857c
|
||||
contextweb.com, 560606, RESELLER, 89ff185a4c4e857c
|
||||
contextweb.com, 561118, RESELLER, 89ff185a4c4e857c
|
||||
contextweb.com, 561664, RESELLER, 89ff185a4c4e857c
|
||||
contextweb.com, 561910, RESELLER, 89ff185a4c4e857c
|
||||
contextweb.com, 561954, RESELLER, 89ff185a4c4e857c
|
||||
contextweb.com, 561998, RESELLER, 89ff185a4c4e857c
|
||||
contextweb.com, 562056, RESELLER, 89ff185a4c4e857c
|
||||
contextweb.com, 562145, RESELLER, 89ff185a4c4e857c
|
||||
contextweb.com, 562499, RESELLER, 89ff185a4c4e857c
|
||||
contextweb.com, 562709, RESELLER, 89ff185a4c4e857c
|
||||
conversantmedia.com, 100270, RESELLER, 03113cd04947736d
|
||||
conversantmedia.com, 100435, RESELLER, 03113cd04947736d
|
||||
conversantmedia.com, 40291, DIRECT, 03113cd04947736d
|
||||
cosmoshq.com, 1002, DIRECT
|
||||
coxmt.com, 2000067995202, RESELLER
|
||||
criteo.com, B-061307, RESELLER, 9fac4a4a87c2a44f
|
||||
criteo.com, B-062427, DIRECT, 9fac4a4a87c2a44f
|
||||
districtm.io, 100683, DIRECT, 3fd707be9c4527c3
|
||||
districtm.io, 100962, RESELLER
|
||||
districtm.io, 100962, RESELLER, 3fd707be9c4527c3
|
||||
districtm.io, 101633, DIRECT, 3fd707be9c4527c3
|
||||
districtm.io, 101760, RESELLER, 3fd707be9c4527c3
|
||||
districtm.io, 101769, RESELLER, 3fd707be9c4527c3
|
||||
e-planning.net, ca658eed27b34b00, DIRECT
|
||||
emxdgt.com, 326, RESELLER, 1e1d41537f7cad7f
|
||||
freewheel.tv, 1133073, RESELLER
|
||||
freewheel.tv, 118529, RESELLER
|
||||
freewheel.tv, 118537, RESELLER
|
||||
freewheel.tv, 1220559, RESELLER
|
||||
freewheel.tv, 1220655, RESELLER
|
||||
freewheel.tv, 123433, RESELLER
|
||||
freewheel.tv, 1500050, RESELLER
|
||||
freewheel.tv, 20393, RESELLER
|
||||
freewheel.tv, 24377, RESELLER
|
||||
freewheel.tv, 283074, RESELLER
|
||||
freewheel.tv, 741650, RESELLER
|
||||
freewheel.tv, 770449, DIRECT
|
||||
freewheel.tv, 774673, RESELLER
|
||||
freewheel.tv, 893873, RESELLER
|
||||
freewheel.tv, 957521, RESELLER
|
||||
google.com, pub-0796790890307838, RESELLER, f08c47fec0942fa0
|
||||
google.com, pub-1772611089853771, RESELLER, f08c47fec0942fa0
|
||||
google.com, pub-1966721192709606, DIRECT, f08c47fec0942fa0
|
||||
google.com, pub-2011734697823029, RESELLER, f08c47fec0942fa0
|
||||
google.com, pub-3769010358500643, RESELLER, f08c47fec0942fa0
|
||||
google.com, pub-3783965151563160, DIRECT, f08c47fec0942fa0
|
||||
google.com, pub-3848273848634341, RESELLER, f08c47fec0942fa0
|
||||
google.com, pub-4152552776930088, DIRECT, f08c47fec0942fa0
|
||||
google.com, pub-4207323757133151, RESELLER, f08c47fec0942fa0
|
||||
google.com, pub-5231479214411897, RESELLER, f08c47fec0942fa0
|
||||
google.com, pub-5617098146054077, RESELLER, f08c47fec0942fa0
|
||||
google.com, pub-5902083285302779, DIRECT, f08c47fec0942fa0
|
||||
google.com, pub-5902083285302779, RESELLER, f08c47fec0942fa0
|
||||
google.com, pub-6254331789601537, RESELLER, f08c47fec0942fa0
|
||||
google.com, pub-6644558441501035, DIRECT, f08c47fec0942fa0
|
||||
google.com, pub-6968738577620513, RESELLER, f08c47fec0942fa0
|
||||
google.com, pub-7630961163643137, DIRECT, f08c47fec0942fa0
|
||||
google.com, pub-7958959566206860, DIRECT, f08c47fec0942fa0
|
||||
google.com, pub-8268618999035658, RESELLER, f08c47fec0942fa0
|
||||
google.com, pub-9328633604439863, RESELLER, f08c47fec0942fa0
|
||||
google.com, pub-9557089510405422, RESELLER, f08c47fec0942fa0
|
||||
groundtruth.com, 107, RESELLER, 81cbf0a75a5e0e9a
|
||||
gumgum.com, 11645, RESELLER, ffdef49475d318a9
|
||||
gumgum.com, 13318, RESELLER, ffdef49475d318a9
|
||||
gumgum.com, 13344, DIRECT, ffdef49475d318a9
|
||||
gumgum.com, 14141, RESELLER, ffdef49475d318a9
|
||||
imds.tv, 82423, RESELLER, ae6c32151e71f19d
|
||||
improvedigital.com, 1010, RESELLER
|
||||
improvedigital.com, 1066, RESELLER
|
||||
improvedigital.com, 1276, DIRECT
|
||||
improvedigital.com, 1277, DIRECT
|
||||
improvedigital.com, 1532, RESELLER
|
||||
improvedigital.com, 1552, RESELLER
|
||||
improvedigital.com, 1863, RESELLER
|
||||
improvedigital.com, 2254, RESELLER
|
||||
improvedigital.com, 2309, RESELLER
|
||||
indexexchange.com, 183965, RESELLER, 50b1c356f2c5c8fc
|
||||
indexexchange.com, 186318, RESELLER
|
||||
indexexchange.com, 187071, DIRECT, 50b1c356f2c5c8fc
|
||||
indexexchange.com, 187482, DIRECT, 50b1c356f2c5c8fc
|
||||
indexexchange.com, 190243, DIRECT
|
||||
indexexchange.com, 190500, RESELLER
|
||||
indexexchange.com, 190856, RESELLER, 50b1c356f2c5c8fc
|
||||
indexexchange.com, 191503, RESELLER
|
||||
indexexchange.com, 192410, RESELLER, 50b1c356f2c5c8fc
|
||||
indexexchange.com, 193091, RESELLER, 50b1c356f2c5c8fc
|
||||
indexexchange.com, 194730, RESELLER
|
||||
inmobi.com, 264debfabe2f4a07beb83aa2d92136ef, DIRECT, 83e75a7ae333ca9d
|
||||
iqzone.com, IQ190, RESELLER
|
||||
lijit.com, 257618, DIRECT, fafdf38b16bf6b2b
|
||||
lijit.com, 260380, RESELLER
|
||||
lijit.com, 346012, DIRECT, fafdf38b16bf6b2b
|
||||
lijit.com, 346012-eb, DIRECT, fafdf38b16bf6b2b
|
||||
lijit.com, 408376, RESELLER, fafdf38b16bf6b2b
|
||||
lijit.com, 408376-eb, RESELLER, fafdf38b16bf6b2b
|
||||
lkqd.com, 252, RESELLER, 59c49fa9598a0117
|
||||
lkqd.net, 252, RESELLER, 59c49fa9598a0117
|
||||
lkqd.net, 286, RESELLER, 59c49fa9598a0117
|
||||
lkqd.net, 39, RESELLER, 59c49fa9598a0117
|
||||
lkqd.net, 450, RESELLER, 59c49fa9598a0117
|
||||
lkqd.net, 49, RESELLER, 59c49fa9598a0117
|
||||
lkqd.net, 602, RESELLER, 59c49fa9598a0117
|
||||
loopme.com, 11479, RESELLER, 6c8d5f95897a5a3b
|
||||
loopme.com, 11480, RESELLER, 6c8d5f95897a5a3b
|
||||
loopme.com, 5641, RESELLER, 6c8d5f95897a5a3b
|
||||
loopme.com, 5679, RESELLER, 6c8d5f95897a5a3b
|
||||
loopme.com, s-2411, RESELLER, 6c8d5f95897a5a3b
|
||||
lunamedia.io, 920a0ad09fc811ec82a719991b8924e5, RESELLER, 524ecb396915caaf
|
||||
media.net, 8CUIH830U, RESELLER
|
||||
mobfox.com, 67448, RESELLER
|
||||
nativo.com, 5848, RESELLER, 59521ca7cc5e9fee
|
||||
onetag.com, 5d0d72448d8bfb0, RESELLER
|
||||
onetag.com, 62499636face9dc, DIRECT
|
||||
onetag.com, 62499636face9dc-OB, DIRECT
|
||||
onetag.com, 7a07370227fc000, RESELLER
|
||||
onetag.com, 7f5d22b0006ab5a, RESELLER
|
||||
openx.com, 537117488, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 537120563, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 537143737, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 537148817, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 537149485, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 537149888, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 538959099, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 539337395, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 539392223, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 539624483, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 539924617, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 540031703, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 540105394, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 540170114, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 540191398, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 540259865, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 540274407, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 540310748, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 540362347, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 540393169, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 540423120, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 540454059, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 540866936, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 557083110, RESELLER, 6a698e2ec38604c6
|
||||
openx.com, 558228330, RESELLER, 6a698e2ec38604c6
|
||||
opera.com, pub8150359888640, DIRECT, 55a0c5fd61378de3
|
||||
outbrain.com, 0000839dda52f0e53f6c0e6030a6a2f5a1, RESELLER
|
||||
outbrain.com, 006ca10119b62fceba0024c827780cdc78, DIRECT
|
||||
pubmatic.com, 100531, RESELLER
|
||||
pubmatic.com, 137711, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 148800, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 154037, RESELLER
|
||||
pubmatic.com, 156030, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 156084, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 156212, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 156325, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 156344, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 156423, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 156439, RESELLER
|
||||
pubmatic.com, 156458, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 156557, RESELLER
|
||||
pubmatic.com, 156631, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 156700, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 156957, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 157150, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 157310, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 157568, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 157607, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 157866, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 157897, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 157903, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 158055, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 158100, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 158135, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 158136, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 158355, RESELLER
|
||||
pubmatic.com, 158481, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 158569, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 158615, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 158810, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 160006, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 160065, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 160096, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 160648, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 160925, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 161593, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 162833, RESELLER, 5d62403b186f2ace
|
||||
pubmatic.com, 162974, RESELLER, 5d62403b186f2ace
|
||||
quantum-advertising.com, 6222, RESELLER
|
||||
rhythmone.com, 1059622079, RESELLER, a670c89d4a324e47
|
||||
rhythmone.com, 136898039, DIRECT, a670c89d4a324e47
|
||||
rhythmone.com, 1575167821, RESELLER
|
||||
rhythmone.com, 1654642120, RESELLER, a670c89d4a324e47
|
||||
rhythmone.com, 1755648630, RESELLER, a670c89d4a324e47
|
||||
rhythmone.com, 1767353092, RESELLER, a670c89d4a324e47
|
||||
rhythmone.com, 2439829435, RESELLER, a670c89d4a324e47
|
||||
rhythmone.com, 2968119028, DIRECT, a670c89d4a324e47
|
||||
rhythmone.com, 2968119028, RESELLER, a670c89d4a324e47
|
||||
rhythmone.com, 78519861, RESELLER
|
||||
richaudience.com, lDF5XleM05, DIRECT
|
||||
risecodes.com, 6022acddc8b2f90001767980, RESELLER
|
||||
risecodes.com, 64c7a4acd6298f0001a7d867, RESELLER
|
||||
rubiconproject.com, 11006, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 12186, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 13132, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 13344, DIRECT, 0bfd66d529a55807
|
||||
rubiconproject.com, 13344, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 14558, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 15476, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 15994, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 16114, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 16392, RESELLER
|
||||
rubiconproject.com, 16414, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 17062, DIRECT, 0bfd66d529a55807
|
||||
rubiconproject.com, 17070, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 17130, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 17960, RESELLER
|
||||
rubiconproject.com, 17960, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 17980, DIRECT, 0bfd66d529a55807
|
||||
rubiconproject.com, 18020, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 18126, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 18222, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 18304, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 18694, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 19668, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 19814, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 20736, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 21152, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 21434, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 21506, RESELLER, 0bfd66d529a55807
|
||||
rubiconproject.com, 23844, RESELLER
|
||||
rubiconproject.com, 25386, DIRECT, 0bfd66d529a55807
|
||||
sharethrough.com, 226d318d, RESELLER, d53b998a7bd4ecd2
|
||||
sharethrough.com, TZ1ahFV8, RESELLER, d53b998a7bd4ecd2
|
||||
sharethrough.com, Zn8RTduX, RESELLER, d53b998a7bd4ecd2
|
||||
sharethrough.com, b18911a2, RESELLER, d53b998a7bd4ecd2
|
||||
sharethrough.com, c21oBkqP, RESELLER, d53b998a7bd4ecd2
|
||||
sharethrough.com, nIUrwQIy, RESELLER, d53b998a7bd4ecd2
|
||||
smaato.com, 1100044650, RESELLER, 07bcf65f187117b4
|
||||
smaato.com, 1100047713, RESELLER, 07bcf65f187117b4
|
||||
smaato.com, 1100048704, RESELLER, 07bcf65f187117b4
|
||||
smaato.com, 1100054606, RESELLER, 07bcf65f187117b4
|
||||
smartadserver.com, 1408, RESELLER
|
||||
smartadserver.com, 2491, RESELLER
|
||||
smartadserver.com, 2776, RESELLER
|
||||
smartadserver.com, 3056, RESELLER
|
||||
smartadserver.com, 3262, DIRECT
|
||||
smartadserver.com, 3262, RESELLER
|
||||
smartadserver.com, 3713, RESELLER
|
||||
smartadserver.com, 3820, RESELLER
|
||||
smartadserver.com, 4012, RESELLER
|
||||
smartadserver.com, 4016, RESELLER
|
||||
smartadserver.com, 4071, RESELLER
|
||||
smartadserver.com, 4071, RESELLER, 060d053dcf45cbf3
|
||||
smartadserver.com, 4073, RESELLER
|
||||
smartadserver.com, 4074, RESELLER
|
||||
smartadserver.com, 4111, RESELLER
|
||||
smartadserver.com, 4144, RESELLER
|
||||
smartadserver.com, 4342, RESELLER
|
||||
smartadserver.com, 4467, RESELLER
|
||||
smartadserver.com, 4503-OB, RESELLER, 060d053dcf45cbf3
|
||||
smartadserver.com, 4524, RESELLER, 060d053dcf45cbf3
|
||||
smartyads.com, 100226, RESELLER, fd2bde0ff2e62c5d
|
||||
sonobi.com, 192ecdea01, RESELLER, d1a215d9eb5aee9e
|
||||
sonobi.com, 70bc4d0919, DIRECT, d1a215d9eb5aee9e
|
||||
sonobi.com, e315a43aa9, DIRECT, d1a215d9eb5aee9e
|
||||
sovrn.com, 257618, DIRECT, fafdf38b16bf6b2b
|
||||
spotim.market, sp_AYL2022, RESELLER, 077e5f709d15bdbb
|
||||
spotx.tv, 110408, RESELLER, 7842df1d2fe2db34
|
||||
spotx.tv, 147949, RESELLER, 7842df1d2fe2db34
|
||||
spotx.tv, 239904, RESELLER, 7842df1d2fe2db34
|
||||
spotxchange.com, 110408, RESELLER, 7842df1d2fe2db34
|
||||
spotxchange.com, 147949, RESELLER, 7842df1d2fe2db34
|
||||
spotxchange.com, 239904, RESELLER, 7842df1d2fe2db34
|
||||
spotxchange.com, 77201, RESELLER, 7842df1d2fe2db34
|
||||
springserve.com, 105, RESELLER, a24eb641fc82e93d
|
||||
springserve.com, 5, RESELLER, a24eb641fc82e93d
|
||||
springserve.com, 868, DIRECT, a24eb641fc82e93d
|
||||
springserve.com, 873, DIRECT, a24eb641fc82e93d
|
||||
ssp.e-volution.ai, AJxF6R190a9M6CaTvK, RESELLER
|
||||
ssp.ynxs.io, 185, DIRECT
|
||||
stroeer.com, 18840, RESELLER
|
||||
synacor.com, 82129, DIRECT, e108f11b2cdf7d5b
|
||||
synacor.com, 82151, RESELLER, e108f11b2cdf7d5b
|
||||
synacor.com, 82423, RESELLER, e108f11b2cdf7d5b
|
||||
teads.tv, 15429, RESELLER, 15a9c44f6d26cbe1
|
||||
telaria.com, 9l6ha-6m433, RESELLER, 1a4e959a1b50034a
|
||||
themediagrid.com, 2RT75Y, DIRECT, 35d5010d7789b49d
|
||||
themediagrid.com, 4M5PGT, DIRECT, 35d5010d7789b49d
|
||||
themediagrid.com, Q19AKF, DIRECT, 35d5010d7789b49d
|
||||
themediagrid.com, RYIDPE, DIRECT, 35d5010d7789b49d
|
||||
themediagrid.com, ZG1DBN, RESELLER, 35d5010d7789b49d
|
||||
tremorhub.com, 9l6ha-6m433, RESELLER, 1a4e959a1b50034a
|
||||
tremorhub.com, q017o-78mlk, RESELLER, 1a4e959a1b50034a
|
||||
tremorhub.com, u6pqo-bygoc, RESELLER, 1a4e959a1b50034a
|
||||
triplelift.com, 11547, RESELLER, 6c33edb13117fd86
|
||||
triplelift.com, 12456, RESELLER, 6c33edb13117fd86
|
||||
ucfunnel.com, par-488A3E6BD8D997D0ED8B3BD34D8BA4B, RESELLER
|
||||
ucfunnel.com, par-BE7E7ADB8D34EE2BF7BBD2899BB62A77, DIRECT
|
||||
valo.ai, e4dffdb0d6a5e665b9f98e11abf61fa7, DIRECT
|
||||
vi.ai, 987349031605160, DIRECT
|
||||
vi.ai, g-0048de3dbcde89cea11e37ec2ac9d698fb, DIRECT
|
||||
vidazoo.com, 1773068026, RESELLER, b6ada874b4d7d0b2
|
||||
video.unrulymedia.com, 1014191143, RESELLER
|
||||
video.unrulymedia.com, 1767448067723954599, RESELLER
|
||||
video.unrulymedia.com, 297618916, RESELLER
|
||||
video.unrulymedia.com, 3463482822, RESELLER
|
||||
video.unrulymedia.com, 367782854, RESELLER
|
||||
video.unrulymedia.com, UNRX-PUB-b7b8af13-0a12-4d37-8b27-0dc8aa90e3e2, RESELLER
|
||||
vidoomy.com, 2479436, RESELLER
|
||||
vidoomy.com, 60653, RESELLER
|
||||
visiblemeasures.com, 1051, RESELLER
|
||||
xandr.com, 10736, RESELLER
|
||||
xandr.com, 12279, RESELLER
|
||||
xandr.com, 1504, RESELLER, f5ab79cb980f11d1
|
||||
xandr.com, 7445, RESELLER
|
||||
xandr.com, 8904, RESELLER
|
||||
yahoo.com, 49648, RESELLER
|
||||
yahoo.com, 55029, RESELLER, e1a5b5b6e3255540
|
||||
yahoo.com, 58905, RESELLER, e1a5b5b6e3255540
|
||||
yahoo.com, 59040, RESELLER, e1a5b5b6e3255540
|
||||
yahoo.com, 59052, RESELLER
|
||||
yahoo.com, 59531, RESELLER, e1a5b5b6e3255540
|
||||
yahoo.com, 59658, RESELLER
|
||||
yahoo.com, 59674, RESELLER, e1a5b5b6e3255540
|
||||
yahoo.com, 59702, DIRECT, e1a5b5b6e3255540
|
||||
yahoo.com, 59702, RESELLER
|
||||
yieldlab.net, 2172218, RESELLER
|
||||
yieldlab.net, 227224, RESELLER
|
||||
yieldlab.net, 495507, DIRECT
|
||||
yieldlab.net, 5494672, RESELLER
|
||||
yieldlab.net, 5798882, RESELLER
|
||||
yieldlab.net, 6248161, RESELLER
|
||||
yieldlab.net, 6374282, RESELLER
|
||||
yieldmo.com, 2676856567361380607, RESELLER
|
||||
yieldmo.com, 2834292204858450860, DIRECT
|
||||
yieldmo.com, 2834292204858450860, RESELLER
|
||||
yieldmo.com, 3224262582806192157, RESELLER
|
||||
yieldmo.com, 3277087470771970058, RESELLER
|
115
site/slowtwitch.com/www/bounce_get.php
Normal file
115
site/slowtwitch.com/www/bounce_get.php
Normal file
@ -0,0 +1,115 @@
|
||||
<form method="GET">
|
||||
<p>Please, enter IMAP mailbox address, login and password (prefilled for an example)</p>
|
||||
<h2>Examples of some IMAP servers (must enable IMAP in settings)</h2>
|
||||
<ul>
|
||||
<li>Google: {imap.gmail.com:993/imap/ssl}</li>
|
||||
<li>Yandex: {imap.yandex.com:993/imap/ssl}</li>
|
||||
</ul>
|
||||
<b>Script does NOT save any provided information</b>
|
||||
<table>
|
||||
<tr><td>
|
||||
<input type="text" name="mailbox" value="<?=(isset($_REQUEST['mailbox']) ? $_REQUEST['mailbox'] : '{mail.slowtwitch.com:993}')?>"></input>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<input type="text" name="login" value="<?=(isset($_REQUEST['login']) ? $_REQUEST['login'] : 'phpcurllogin')?>"></input>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<input type="password" name="password" value="<?=(isset($_REQUEST['password']) ? $_REQUEST['password'] : 'phpcurllog')?>"></input>
|
||||
</tr></td>
|
||||
<tr><td>
|
||||
<tr><td>
|
||||
<input type="text" name="maxcount" value="<?=(isset($_REQUEST['maxcount']) ? $_REQUEST['maxcount'] : '10')?>"></input>
|
||||
</tr></td>
|
||||
<input type="submit" value="Get emails!"></input>
|
||||
</td></tr>
|
||||
</table>
|
||||
<input name="submitFlag" type="hidden" value="1"></input>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
if (isset($_REQUEST['submitFlag'])) {
|
||||
|
||||
define("MAX_EMAIL_COUNT", $_REQUEST['maxcount']);
|
||||
|
||||
/* took from https://gist.github.com/agarzon/3123118 */
|
||||
function extractEmail($content) {
|
||||
$regexp = '/([a-z0-9_\.\-])+\@(([a-z0-9\-])+\.)+([a-z0-9]{2,4})+/i';
|
||||
preg_match_all($regexp, $content, $m);
|
||||
return isset($m[0]) ? $m[0] : array ();
|
||||
}
|
||||
|
||||
function getAddressText(&$emailList, &$nameList, $addressObject) {
|
||||
$emailList = '';
|
||||
$nameList = '';
|
||||
foreach ($addressObject as $object) {
|
||||
$emailList .= ';';
|
||||
if (isset($object->personal)) {
|
||||
$emailList .= $object->personal;
|
||||
}
|
||||
$nameList .= ';';
|
||||
if (isset($object->mailbox) && isset($object->host)) {
|
||||
$nameList .= $object->mailbox . "@" . $object->host;
|
||||
}
|
||||
}
|
||||
$emailList = ltrim($emailList, ';');
|
||||
$nameList = ltrim($nameList, ';');
|
||||
}
|
||||
|
||||
function processMessage($mbox, $messageNumber, $myfile) {
|
||||
echo $messageNumber;
|
||||
// get imap_fetch header and put single lines into array
|
||||
$header = imap_rfc822_parse_headers(imap_fetchheader($mbox, $messageNumber));
|
||||
$fromEmailList = '';
|
||||
$fromNameList = '';
|
||||
if (isset($header->from)) {
|
||||
getAddressText($fromEmailList, $fromNameList, $header->from);
|
||||
}
|
||||
$toEmailList = '';
|
||||
$toNameList = '';
|
||||
if (isset($header->to)) {
|
||||
getAddressText($toEmailList, $toNameList, $header->to);
|
||||
}
|
||||
$body = imap_fetchbody($mbox, $messageNumber, 1);
|
||||
$bodyEmailList = implode(';', extractEmail($body));
|
||||
$txt = (
|
||||
',' . $fromEmailList . ',' . $fromNameList
|
||||
. ',' . $toEmailList . ',' . $toNameList
|
||||
. ',' . $bodyEmailList . "\n"
|
||||
);
|
||||
|
||||
fwrite($myfile, $txt);
|
||||
}
|
||||
|
||||
// imap_timeout(IMAP_OPENTIMEOUT, 300);
|
||||
|
||||
// Open pop mailbox
|
||||
if (!$mbox = imap_open($_REQUEST['mailbox'], $_REQUEST['login'], $_REQUEST['password'])) {
|
||||
die('Cannot connect/check pop mail! Exiting');
|
||||
}
|
||||
|
||||
if ($hdr = imap_check($mbox)) {
|
||||
$msgCount = $hdr->Nmsgs;
|
||||
} else {
|
||||
echo "Failed to get mail";
|
||||
exit;
|
||||
}
|
||||
|
||||
echo "<pre>";
|
||||
echo 'emails count=' . $msgCount . "\n\n\n";
|
||||
echo "record number,from emails list,from names list,to emails list, to names list,extracted from body\n";
|
||||
|
||||
/* might improve performance according to
|
||||
http://www.php.net/manual/en/function.imap-headerinfo.php#98809
|
||||
imap_headers($mbox);
|
||||
*/
|
||||
$myfile = fopen('json/bounce_list.csv', "w") or die("Unable to open file: json/bounce_list.csv");
|
||||
|
||||
for ($X = 1; $X <= min($msgCount, MAX_EMAIL_COUNT); $X++) {
|
||||
processMessage($mbox, $X, $myfile);
|
||||
}
|
||||
echo "</pre>";
|
||||
|
||||
fclose($myfile);
|
||||
imap_close($mbox);
|
||||
}
|
||||
?>
|
1
site/slowtwitch.com/www/calendar
Symbolic link
1
site/slowtwitch.com/www/calendar
Symbolic link
@ -0,0 +1 @@
|
||||
/var/home/slowtwitch/site/racecalendar
|
1
site/slowtwitch.com/www/coaches
Symbolic link
1
site/slowtwitch.com/www/coaches
Symbolic link
@ -0,0 +1 @@
|
||||
/var/home/slowtwitch/site/coaches
|
BIN
site/slowtwitch.com/www/documents/PTO_Wanda_Letter.pdf
Normal file
BIN
site/slowtwitch.com/www/documents/PTO_Wanda_Letter.pdf
Normal file
Binary file not shown.
BIN
site/slowtwitch.com/www/documents/Press_Release-FINALXX.pdf
Normal file
BIN
site/slowtwitch.com/www/documents/Press_Release-FINALXX.pdf
Normal file
Binary file not shown.
BIN
site/slowtwitch.com/www/favicon.ico
Normal file
BIN
site/slowtwitch.com/www/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
1
site/slowtwitch.com/www/fit_calculator
Symbolic link
1
site/slowtwitch.com/www/fit_calculator
Symbolic link
@ -0,0 +1 @@
|
||||
/var/home/slowtwitch/site/Fit_Calculator
|
1
site/slowtwitch.com/www/fitters
Symbolic link
1
site/slowtwitch.com/www/fitters
Symbolic link
@ -0,0 +1 @@
|
||||
/var/home/slowtwitch/site/fitters
|
1
site/slowtwitch.com/www/googlemaps
Symbolic link
1
site/slowtwitch.com/www/googlemaps
Symbolic link
@ -0,0 +1 @@
|
||||
/var/home/slowtwitch/site/googlemaps
|
1
site/slowtwitch.com/www/local
Symbolic link
1
site/slowtwitch.com/www/local
Symbolic link
@ -0,0 +1 @@
|
||||
/var/home/slowtwitch/site/local
|
1
site/slowtwitch.com/www/retailers
Symbolic link
1
site/slowtwitch.com/www/retailers
Symbolic link
@ -0,0 +1 @@
|
||||
/var/home/slowtwitch/site/retailers
|
1
site/slowtwitch.com/www/roadshow
Symbolic link
1
site/slowtwitch.com/www/roadshow
Symbolic link
@ -0,0 +1 @@
|
||||
/var/home/slowtwitch/site/roadshow
|
10
site/slowtwitch.com/www/robots.txt
Normal file
10
site/slowtwitch.com/www/robots.txt
Normal file
@ -0,0 +1,10 @@
|
||||
User-Agent: *
|
||||
Disallow: /cgi-bin
|
||||
Disallow: /log
|
||||
Disallow: /secure
|
||||
Disallow: /statistics
|
||||
Disallow: /flash/
|
||||
Disallow: /forum/Slowtwitch_Forums_C1/Lavender_Room_F4
|
||||
|
||||
User-Agent: bingbot
|
||||
Crawl-delay: 1
|
98
site/slowtwitch.com/www/rss/slowtwitch.rss
Normal file
98
site/slowtwitch.com/www/rss/slowtwitch.rss
Normal file
@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<rdf:RDF
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns="http://purl.org/rss/1.0/"
|
||||
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||
xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
|
||||
xmlns:admin="http://webns.net/mvcb/"
|
||||
>
|
||||
|
||||
<channel rdf:about="http://www.slowtwitch.com">
|
||||
<title>Slowtwitch.com</title>
|
||||
<link>http://www.slowtwitch.com</link>
|
||||
<description></description>
|
||||
<dc:language>en-us</dc:language>
|
||||
<dc:rights>Copyright 2007, Slowtwitch.com</dc:rights>
|
||||
<dc:date>2024-05-19T08:05:01-07:00</dc:date>
|
||||
<dc:publisher>Slowtwitch.com</dc:publisher>
|
||||
<dc:creator>Slowtwitch.com</dc:creator>
|
||||
<syn:updateBase>2024-05-19T08:05:01-07:00</syn:updateBase>
|
||||
<syn:updateFrequency>1</syn:updateFrequency>
|
||||
<syn:updatePeriod>daily</syn:updatePeriod>
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
<rdf:li rdf:resource="https://www.slowtwitch.com/News/Race_Reports/Hanson_Rips_Run_Pallant-Browne_Wins_Back_to_Back_Weekends_at_70.3_Chattanooga_8954.html" />
|
||||
<rdf:li rdf:resource="https://www.slowtwitch.com/Interview/Talking_with_Tomas_Rodriguez_Hernandez_8953.html" />
|
||||
<rdf:li rdf:resource="https://www.slowtwitch.com/Products/Handlebars/Zipp_s_SL80_Road_Bar_is_An_Obvious_Product_8951.html" />
|
||||
<rdf:li rdf:resource="https://www.slowtwitch.com/News/Taylor_Knibb_Punches_Olympic_Ticket_Again._In_Cycling._8952.html" />
|
||||
<rdf:li rdf:resource="https://www.slowtwitch.com/Products/Components/SRAM_Drops_New_RED_AXS_Groupset_8950.html" />
|
||||
<rdf:li rdf:resource="https://www.slowtwitch.com/News/Periault_Pearson_Dominate_WTCS_Yokohama_8949.html" />
|
||||
<rdf:li rdf:resource="https://www.slowtwitch.com/News/Race_Reports/Nicolas_Mann_and_Emma_Pallant-Browne_Surge_to_Victory_at_70.3_Mallorca_8948.html" />
|
||||
<rdf:li rdf:resource="https://www.slowtwitch.com/News/Race_Reports/Team_USA_Olympic_Spots_on_the_Line_at_Yokohama_8947.html" />
|
||||
<rdf:li rdf:resource="https://www.slowtwitch.com/Opinion/From_the_Ground_in_St._George_8946.html" />
|
||||
<rdf:li rdf:resource="https://www.slowtwitch.com/News/Will_Paris_Be_Ready_for_the_Olympics__8944.html" />
|
||||
</rdf:Seq>
|
||||
</items>
|
||||
<image rdf:resource="http://www.slowtwitch.com/favicon.ico" />
|
||||
</channel>
|
||||
<image rdf:about="http://www.slowtwitch.com/favicon.ico">
|
||||
<title>Slowtwitch.com</title>
|
||||
<url>http://www.slowtwitch.com/favicon.ico</url>
|
||||
<link>http://www.slowtwitch.com</link>
|
||||
<dc:creator>Slowtwitch.com</dc:creator>
|
||||
</image>
|
||||
<item rdf:about="https://www.slowtwitch.com/News/Race_Reports/Hanson_Rips_Run_Pallant-Browne_Wins_Back_to_Back_Weekends_at_70.3_Chattanooga_8954.html">
|
||||
<title><![CDATA[Hanson Rips Run, Pallant-Browne Wins Back to Back Weekends at 70.3 Chattanooga]]></title>
|
||||
<link>https://www.slowtwitch.com/News/Race_Reports/Hanson_Rips_Run_Pallant-Browne_Wins_Back_to_Back_Weekends_at_70.3_Chattanooga_8954.html</link>
|
||||
<description><![CDATA[Hanson takes lead in Pro Series, Pallant-Browne wins on consecutive weekends]]></description>
|
||||
</item>
|
||||
<item rdf:about="https://www.slowtwitch.com/Interview/Talking_with_Tomas_Rodriguez_Hernandez_8953.html">
|
||||
<title><![CDATA[Talking with Tomas Rodriguez Hernandez]]></title>
|
||||
<link>https://www.slowtwitch.com/Interview/Talking_with_Tomas_Rodriguez_Hernandez_8953.html</link>
|
||||
<description><![CDATA[The first-ever Mexican IM Champion stunned with his 2:34 marathon in Texas, besting seasoned veterans such as second-place Patrick Lange. ]]></description>
|
||||
</item>
|
||||
<item rdf:about="https://www.slowtwitch.com/Products/Handlebars/Zipp_s_SL80_Road_Bar_is_An_Obvious_Product_8951.html">
|
||||
<title><![CDATA[Zipp's SL80 Road Bar is An Obvious Product]]></title>
|
||||
<link>https://www.slowtwitch.com/Products/Handlebars/Zipp_s_SL80_Road_Bar_is_An_Obvious_Product_8951.html</link>
|
||||
<description><![CDATA[Finally, a component company that makes handlebars made a handlebar for its component.]]></description>
|
||||
</item>
|
||||
<item rdf:about="https://www.slowtwitch.com/News/Taylor_Knibb_Punches_Olympic_Ticket_Again._In_Cycling._8952.html">
|
||||
<title><![CDATA[Taylor Knibb Punches Olympic Ticket Again. In Cycling.]]></title>
|
||||
<link>https://www.slowtwitch.com/News/Taylor_Knibb_Punches_Olympic_Ticket_Again._In_Cycling._8952.html</link>
|
||||
<description><![CDATA[America's fastest triathlon cyclist may be America's fastest cyclist, in a race against the clock.]]></description>
|
||||
</item>
|
||||
<item rdf:about="https://www.slowtwitch.com/Products/Components/SRAM_Drops_New_RED_AXS_Groupset_8950.html">
|
||||
<title><![CDATA[SRAM Drops New RED AXS Groupset]]></title>
|
||||
<link>https://www.slowtwitch.com/Products/Components/SRAM_Drops_New_RED_AXS_Groupset_8950.html</link>
|
||||
<description><![CDATA[Vastly improved FD shifting, lighter weight, wider gear range, shorter cranks.]]></description>
|
||||
</item>
|
||||
<item rdf:about="https://www.slowtwitch.com/News/Periault_Pearson_Dominate_WTCS_Yokohama_8949.html">
|
||||
<title><![CDATA[Periault, Pearson Dominate WTCS Yokohama]]></title>
|
||||
<link>https://www.slowtwitch.com/News/Periault_Pearson_Dominate_WTCS_Yokohama_8949.html</link>
|
||||
<description><![CDATA[French women scored 1-3, U.S. Women went 2-4; U.S. man held off two Aussies and a raft of heavily favored Frenchmen for their gold. ]]></description>
|
||||
</item>
|
||||
<item rdf:about="https://www.slowtwitch.com/News/Race_Reports/Nicolas_Mann_and_Emma_Pallant-Browne_Surge_to_Victory_at_70.3_Mallorca_8948.html">
|
||||
<title><![CDATA[Nicolas Mann and Emma Pallant-Browne Surge to Victory at 70.3 Mallorca]]></title>
|
||||
<link>https://www.slowtwitch.com/News/Race_Reports/Nicolas_Mann_and_Emma_Pallant-Browne_Surge_to_Victory_at_70.3_Mallorca_8948.html</link>
|
||||
<description><![CDATA[]]></description>
|
||||
</item>
|
||||
<item rdf:about="https://www.slowtwitch.com/News/Race_Reports/Team_USA_Olympic_Spots_on_the_Line_at_Yokohama_8947.html">
|
||||
<title><![CDATA[Team USA Olympic Spots on the Line at Yokohama]]></title>
|
||||
<link>https://www.slowtwitch.com/News/Race_Reports/Team_USA_Olympic_Spots_on_the_Line_at_Yokohama_8947.html</link>
|
||||
<description><![CDATA[All Roads Lead to Paris!]]></description>
|
||||
</item>
|
||||
<item rdf:about="https://www.slowtwitch.com/Opinion/From_the_Ground_in_St._George_8946.html">
|
||||
<title><![CDATA[From the Ground in St. George]]></title>
|
||||
<link>https://www.slowtwitch.com/Opinion/From_the_Ground_in_St._George_8946.html</link>
|
||||
<description><![CDATA[The â€oeLand of Endurance â€oe did her job when it came to showing off her beauty and grace
|
||||
]]></description>
|
||||
</item>
|
||||
<item rdf:about="https://www.slowtwitch.com/News/Will_Paris_Be_Ready_for_the_Olympics__8944.html">
|
||||
<title><![CDATA[Will Paris Be Ready for the Olympics?]]></title>
|
||||
<link>https://www.slowtwitch.com/News/Will_Paris_Be_Ready_for_the_Olympics__8944.html</link>
|
||||
<description><![CDATA[With just over 80 days to go, is the city â€" and critically for triathlon, the Seine â€" ready?]]></description>
|
||||
</item>
|
||||
</rdf:RDF>
|
1
site/slowtwitch.com/www/runshops
Symbolic link
1
site/slowtwitch.com/www/runshops
Symbolic link
@ -0,0 +1 @@
|
||||
../../runshops
|
10
site/slowtwitch.com/www/secure/AAWSecureFormTag.asp
Normal file
10
site/slowtwitch.com/www/secure/AAWSecureFormTag.asp
Normal file
@ -0,0 +1,10 @@
|
||||
<!-- Start Insert Here -->
|
||||
<form action="https://Secure.Aawsom.net/forms/FormProcessor.asp" method="POST" name="Comment_Form">
|
||||
<input type="hidden" name="MailTo" value="CustomerService@YourWebsite.com">
|
||||
<input type="hidden" name="MailFromDefault" value="NoEmail@YourWebsite.com">
|
||||
<input type="hidden" name="MailFromField" value="Email">
|
||||
<input type="hidden" name="MailSubject" value="Contact">
|
||||
<input type="hidden" name="MailRedirectSecure" value="Secure.Aawsom.net/VirtualX/YourUsername/secure/thanks.htm">
|
||||
<input type="hidden" name="Time" value="<%=Now()%>">
|
||||
<input type="hidden" name="Browser" value="<%=Request.ServerVariables("HTTP_User_Agent")%>">
|
||||
<!-- End Insert Here -->
|
11
site/slowtwitch.com/www/secure/AAWformtag.asp
Normal file
11
site/slowtwitch.com/www/secure/AAWformtag.asp
Normal file
@ -0,0 +1,11 @@
|
||||
<!-- Start Insert Here -->
|
||||
<form action="http://Secure4.Aawsom.net/forms/FormProcessor.asp" method="POST" name="Comment_Form">
|
||||
<input type="hidden" name="MailTo" value="CustomerService@YourWebsite.com">
|
||||
<input type="hidden" name="MailFromDefault" value="NoEmail@YourWebsite.com">
|
||||
<input type="hidden" name="MailFromField" value="Email">
|
||||
<input type="hidden" name="MailSubject" value="Contact">
|
||||
<input type="hidden" name="MailRedirect" value="www.YourWebsite.com/thanks.htm">
|
||||
<input type="hidden" name="Time" value="<%=Now()%>">
|
||||
<input type="hidden" name="Browser" value="<%=Request.ServerVariables("HTTP_User_Agent")%>">
|
||||
<!-- End Insert Here -->
|
||||
|
11
site/slowtwitch.com/www/secure/CDONTS.txt
Normal file
11
site/slowtwitch.com/www/secure/CDONTS.txt
Normal file
@ -0,0 +1,11 @@
|
||||
'This is the code which one can use to send email. Make sure that each field is filled. - Steve
|
||||
|
||||
Set objMail = CreateObject("CDONTS.Newmail")
|
||||
objMail.From = request.form("fEmail")
|
||||
objMail.To = "steve@aawsom.net"
|
||||
objMail.Subject = "AawsomNet Sign Up"
|
||||
objMail.Body = sBody
|
||||
objMail.Send
|
||||
Set objMail = Nothing
|
||||
|
||||
|
285
site/slowtwitch.com/www/secure/FormProcessor.asp
Normal file
285
site/slowtwitch.com/www/secure/FormProcessor.asp
Normal file
@ -0,0 +1,285 @@
|
||||
<%@ LANGUAGE="VBSCRIPT" %>
|
||||
<% Option Explicit %>
|
||||
|
||||
<script RUNAT="Server" LANGUAGE="VBScript">
|
||||
|
||||
Function MailIt(sFrom,sTo,sSub,sBody)
|
||||
|
||||
' response.write "From:" & sFrom & "To:" & sTo & "Sub:" & sSub & "Body:" & sBody
|
||||
|
||||
On Error Resume Next 'prevent the code from haltng on an error
|
||||
dim oMail
|
||||
|
||||
MailIt=false
|
||||
Set oMail = Server.CreateObject("CDONTS.Newmail")
|
||||
oMail.From = sFrom
|
||||
oMail.To = sTo
|
||||
oMail.Subject = sSub
|
||||
oMail.Body = sBody
|
||||
oMail.Send
|
||||
|
||||
If Err.Number <> 0 then
|
||||
response.write "Error1 Found:" & Err.Number & " " & Err.Description
|
||||
end if
|
||||
|
||||
Set oMail = nothing
|
||||
|
||||
If Err.Number = 0 then
|
||||
MailIt = true
|
||||
Else
|
||||
response.write "Error Found:" & Err.Number & " " & Err.Description
|
||||
End If
|
||||
|
||||
End Function
|
||||
|
||||
Function Cr2br(sIn)
|
||||
Dim sLen
|
||||
Dim iCount
|
||||
Dim iPos
|
||||
Dim sCr
|
||||
Dim sLf
|
||||
|
||||
sCr = chr(13)
|
||||
sLf = chr(10)
|
||||
|
||||
sLen = len(sIn)
|
||||
Cr2br = ""
|
||||
for iPos = 1 to sLen
|
||||
if (mid(sIn,iPos,1) = sCr) then
|
||||
Cr2br=Cr2br & "<br>"
|
||||
iPos=iPos+1
|
||||
else
|
||||
Cr2br=Cr2br & mid(sIn,iPos,1)
|
||||
end If
|
||||
next
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<%
|
||||
Dim i, j, br, lf
|
||||
Dim iByteCount, sData, sTemp, bResponse, sEnd
|
||||
Dim sTo, sFrom, sSubject, sBody, bDataOK, sWebBody, sMessage
|
||||
Dim sFromField, bFromField, sRedirect, bRedirect, bRedirectIsSecure
|
||||
Dim aData, aPermit(), iCount, sLeadIn
|
||||
|
||||
br = "<BR>"
|
||||
lf = Chr(13) & Chr(10)
|
||||
sLeadIn = "The following information was sent:"
|
||||
|
||||
'Grab data from header in byte forma
|
||||
iByteCount = Request.TotalBytes
|
||||
sTemp = Request.BinaryRead(iByteCount)
|
||||
|
||||
'Convert byte data into string data
|
||||
For i = 1 to iByteCount
|
||||
sData = sData & Chr(AscB(MidB(sTemp,i,1)))
|
||||
Next
|
||||
|
||||
'Replace Query String substitution characters
|
||||
sData = Replace(sData, "+", " ")
|
||||
sData = Replace(sData, "=", ": ")
|
||||
|
||||
'Put each value into individual array element
|
||||
aData = Split(sData, "&", -1, 1)
|
||||
|
||||
'Get count of number of entries
|
||||
On Error Resume Next
|
||||
i = 0
|
||||
iCount = 0
|
||||
Do
|
||||
If NOT IsEmpty(aData(i)) then
|
||||
if Err.Number = 0 then
|
||||
iCount = iCount+1
|
||||
Else
|
||||
Exit Do
|
||||
End If
|
||||
end If
|
||||
i=i+1
|
||||
Loop
|
||||
|
||||
'Replace UUEncoding
|
||||
For i = 0 to iCount-1
|
||||
aData(i) = Replace(aData(i), "%21", Chr(33)) '!
|
||||
aData(i) = Replace(aData(i), "%22", Chr(34)) '"
|
||||
aData(i) = Replace(aData(i), "%23", Chr(35)) '#
|
||||
aData(i) = Replace(aData(i), "%24", Chr(36)) '$
|
||||
aData(i) = Replace(aData(i), "%25", Chr(37)) '%
|
||||
aData(i) = Replace(aData(i), "%26", Chr(38)) '&
|
||||
aData(i) = Replace(aData(i), "%27", Chr(39)) ''
|
||||
aData(i) = Replace(aData(i), "%28", Chr(40)) '(
|
||||
aData(i) = Replace(aData(i), "%29", Chr(41)) ')
|
||||
aData(i) = Replace(aData(i), "%2A", Chr(42)) '*
|
||||
aData(i) = Replace(aData(i), "%2B", Chr(43)) '+
|
||||
aData(i) = Replace(aData(i), "%2C", Chr(44)) ',
|
||||
aData(i) = Replace(aData(i), "%2D", Chr(45)) '-
|
||||
aData(i) = Replace(aData(i), "%2E", Chr(46)) '.
|
||||
aData(i) = Replace(aData(i), "%2F", Chr(47)) '/
|
||||
aData(i) = Replace(aData(i), "%3A", Chr(58)) ':
|
||||
aData(i) = Replace(aData(i), "%3B", Chr(59)) ';
|
||||
aData(i) = Replace(aData(i), "%3C", Chr(60)) '<
|
||||
aData(i) = Replace(aData(i), "%3D", Chr(61)) '=
|
||||
aData(i) = Replace(aData(i), "%3E", Chr(62)) '>
|
||||
aData(i) = Replace(aData(i), "%3F", Chr(63)) '?
|
||||
aData(i) = Replace(aData(i), "%40", Chr(64)) '@
|
||||
aData(i) = Replace(aData(i), "%5B", Chr(91)) '[
|
||||
aData(i) = Replace(aData(i), "%5C", Chr(92)) '\
|
||||
aData(i) = Replace(aData(i), "%5D", Chr(93)) ']
|
||||
aData(i) = Replace(aData(i), "%5E", Chr(94)) '^
|
||||
aData(i) = Replace(aData(i), "%5F", Chr(95)) '_
|
||||
aData(i) = Replace(aData(i), "%60", Chr(96)) ''
|
||||
aData(i) = Replace(aData(i), "%7B", Chr(123)) '{
|
||||
aData(i) = Replace(aData(i), "%7C", Chr(123)) '|
|
||||
aData(i) = Replace(aData(i), "%7D", Chr(123)) '}
|
||||
aData(i) = Replace(aData(i), "%7E", Chr(123)) '~
|
||||
aData(i) = Replace(aData(i), "%0D", Chr(13)) 'Carriage Return
|
||||
aData(i) = Replace(aData(i), "%0A", Chr(10)) 'Line Feed
|
||||
Next
|
||||
|
||||
Redim aPermit(iCount)
|
||||
|
||||
For i = 0 to iCount-1
|
||||
aPermit(i) = True
|
||||
If Left(aData(i),Len("MailTo")) = "MailTo" Then
|
||||
sTo = Mid(aData(i),Len("MailTo")+3)
|
||||
' Response.write i & " Found MailTo: " & sTo & "<BR>"
|
||||
aPermit(i) = False
|
||||
End If
|
||||
If Left(aData(i),Len("MailFromDefault")) = "MailFromDefault" Then
|
||||
sFrom = Mid(aData(i),Len("MailFromDefault")+3)
|
||||
aPermit(i) = False
|
||||
' Response.write i & " Found MailFromDefault: " & sFrom & "<BR>"
|
||||
aPermit(i) = False
|
||||
End If
|
||||
If Left(aData(i),Len("MailFromField")) = "MailFromField" Then
|
||||
sFromField = Mid(aData(i),Len("MailFromField")+3)
|
||||
' Response.write i & " Found MailFromField: " & sFromField & "<BR>"
|
||||
bFromField = True
|
||||
aPermit(i) = False
|
||||
End If
|
||||
If Left(aData(i),Len("MailSubject")) = "MailSubject" Then
|
||||
sSubject = Mid(aData(i),Len("MailSubject")+3)
|
||||
' Response.write i & " Found MailSubject: " & sSubject & "<BR>"
|
||||
aPermit(i) = False
|
||||
End If
|
||||
If Left(aData(i),Len("MailRedirect")) = "MailRedirect" Then
|
||||
sRedirect = "http://" & Mid(aData(i),Len("MailRedirect")+3)
|
||||
' Response.write i & " Found MailRedirect: " & sRedirect & "<BR>"
|
||||
bRedirect = True
|
||||
aPermit(i) = False
|
||||
End If
|
||||
If Left(aData(i),Len("MailRedirectSecure")) = "MailRedirectSecure" Then
|
||||
sRedirect = "https://" & Mid(aData(i),Len("MailRedirectSecure")+3)
|
||||
' Response.write i & " Found MailRedirectSecure: " & sRedirect & "<BR>"
|
||||
bRedirect = True
|
||||
aPermit(i) = False
|
||||
End If
|
||||
If Left(aData(i),Len("MailLeadIn")) = "MailLeadIn" Then
|
||||
'Only Assign if NOT blank
|
||||
If Mid(aData(i),Len("MailLeadIn")+3) <> 0 then
|
||||
sLeadIn = Mid(aData(i),Len("MailLeadIn")+3)
|
||||
End If
|
||||
aPermit(i) = False
|
||||
' Response.write i & " Found MailLeadIn: " & sLeadIn & "<BR>"
|
||||
End If
|
||||
Next
|
||||
|
||||
'if MailFromField = true, then find FromField Value
|
||||
If bFromField = True Then
|
||||
For i = 0 to iCount-1
|
||||
If Left(aData(i),Len(sFromField)) = sFromField Then
|
||||
'Only Assign if NOT blank (3 is necessary to remove filler)
|
||||
'***This Section could use some work ensuring email is valid - like ...,; etc ***
|
||||
If Len(Trim(Mid(aData(i),Len(sFromField)+3))) > 0 then
|
||||
sFrom = Mid(aData(i),Len(sFromField)+3)
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
End If
|
||||
|
||||
'Create Body of Message
|
||||
sBody = sLeadIn & lf & lf
|
||||
For i = 0 to iCount-1
|
||||
If aPermit(i) = True Then
|
||||
sBody = sBody & aData(i) & lf
|
||||
End If
|
||||
Next
|
||||
|
||||
'Check that there is enough data to send mail
|
||||
bDataOK = True
|
||||
If len(sFrom) = 0 Then
|
||||
bDataOK = False
|
||||
sMessage = "No FROM Element.<BR>"
|
||||
End If
|
||||
|
||||
If len(sTo) = 0 Then
|
||||
bDataOK = False
|
||||
sMessage = "No TO Element.<BR>"
|
||||
End If
|
||||
|
||||
If len(sSubject) = 0 Then
|
||||
bDataOK = False
|
||||
sMessage = "No SUBJECT Element.<BR>"
|
||||
End If
|
||||
|
||||
If len(sBody) = 0 Then
|
||||
bDataOK = False
|
||||
sMessage = "No BODY Content.<BR>"
|
||||
End If
|
||||
|
||||
' Response.Write "To: " & sTo & br
|
||||
' Response.Write "From: " & sFrom & br
|
||||
' Response.Write "Subject: " & sSubject & br
|
||||
' Response.Write "Body: <BR>" & sWebBody
|
||||
|
||||
If bDataOK = False Then
|
||||
%>
|
||||
<html>
|
||||
<Head>
|
||||
<META NAME="GENERATOR" Content="Microsoft Visual InterDev 1.0">
|
||||
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
|
||||
<title>An Error Occurred</title>
|
||||
</head>
|
||||
|
||||
<body bgcolor="FFFFFF">
|
||||
|
||||
<h1 align="center"><font color="#FF0000">An Error Occurred:</font></h1>
|
||||
|
||||
<p>An Error Occured with this application (Insufficient Data). Please Contact The System
|
||||
Administrator of this website. The form you filled out was NOT configured correctly.<br>
|
||||
<br><br>
|
||||
ERROR:<br>
|
||||
<%= sMessage%><BR><BR>
|
||||
If you should see this message, PLEASE click <a href="Mailto:Webmaster@Aawsom.net">HERE</a>
|
||||
to notify the hostmaster that a problem occurred. Include the name of the website that
|
||||
this error occurred on. It will keep others from having this problem. We apologise that
|
||||
you took the time to fill out this form and that it was NOT delivered due to this site's
|
||||
inability to test their software before implementing it.</p>
|
||||
|
||||
<%
|
||||
Else
|
||||
'Mail It
|
||||
sResult = mailIt(sFrom,sTo,sSubject,sBody)
|
||||
|
||||
'If redirecting to another page, redirect before anything is written to page
|
||||
If bRedirect = True then
|
||||
Response.Redirect sRedirect
|
||||
End If
|
||||
%>
|
||||
<html>
|
||||
<Head>
|
||||
<META NAME="GENERATOR" Content="Microsoft Visual InterDev 1.0">
|
||||
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>Form Results</title>
|
||||
</head>
|
||||
<%
|
||||
'Print out the Message
|
||||
sWebBody = Cr2BR(sBody)
|
||||
Response.Write sWebBody
|
||||
End If
|
||||
%>
|
||||
</BODY>
|
||||
</HTML>
|
26
site/slowtwitch.com/www/secure/SecondaryDomains.txt
Normal file
26
site/slowtwitch.com/www/secure/SecondaryDomains.txt
Normal file
@ -0,0 +1,26 @@
|
||||
'This is the code which one can use to redirect a website to a different page or directory.
|
||||
|
||||
<%
|
||||
sDomain=LCase(request.ServerVariables("HTTP_HOST"))
|
||||
Select Case sDomain
|
||||
Case "www.totallyawesome.net", "totallyawesom.net"
|
||||
Response.Redirect "/totally.asp"
|
||||
End Select
|
||||
%>
|
||||
|
||||
Instructions:
|
||||
|
||||
Copy/paste the above clip at the top of your home page,
|
||||
or at the top of an include file that you use for all pages.
|
||||
|
||||
Replace "www.totallyawesome.net" AND "totallyawesome.net" with your domain name.
|
||||
|
||||
Replace "/totally.asp with your own file OR directory, like "/totallyawesome/".
|
||||
|
||||
Add as many case statements as necessary:
|
||||
|
||||
Case "www.totallyawesome.net", "totallyawesom.net"
|
||||
Response.Redirect "/totally.asp"
|
||||
Case "www.totally.com", "totally.com"
|
||||
Response.Redirect "/totally.asp"
|
||||
|
138
site/slowtwitch.com/www/secure/Secureorder.asp
Normal file
138
site/slowtwitch.com/www/secure/Secureorder.asp
Normal file
@ -0,0 +1,138 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
|
||||
<base face="Arial">
|
||||
<title>Secure Order Form</title>
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" link="#0000FF" vlink="#800000">
|
||||
<div align="left">
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="125"><font color="#FF0000"><big>Aawsom<br>
|
||||
Technologies</big></font></td>
|
||||
<td width="5"></td>
|
||||
<td><h1><font color="#FF0000">Secure Order Form</font></h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="125"></td>
|
||||
<td width="5" bgcolor="#FFFFFF"></td>
|
||||
<td bgcolor="#FFFFFF" align="left"><font face="Arial"><table border="5">
|
||||
<tr>
|
||||
<td>
|
||||
<!-- Start Insert Here -->
|
||||
<form action="https://Secure2.Aawsom.net/forms/FormProcessor.asp" method="POST" name="Comment_Form">
|
||||
<input type="hidden" name="MailTo" value="CustomerService@YourWebsite.com">
|
||||
<input type="hidden" name="MailFromDefault" value="NoEmail@YourWebsite.com">
|
||||
<input type="hidden" name="MailFromField" value="Email">
|
||||
<input type="hidden" name="MailSubject" value="Contact">
|
||||
<input type="hidden" name="MailRedirect" value="www.YourWebsite.com/thanks.htm">
|
||||
<%' <input type="hidden" name="MailRedirectSecure" value="Secure2.Aawsom.net/VirtualXXX/YourUsername/secure/thanks.htm">%>
|
||||
<input type="hidden" name="Time" value="<%=Now()%>">
|
||||
<input type="hidden" name="Browser" value="<%=Request.ServerVariables("HTTP_User_Agent")%>">
|
||||
<!-- End Insert Here -->
|
||||
<hr width="60%" color="#FF0000">
|
||||
<p>Please provide the following ordering information:</p>
|
||||
<table>
|
||||
<tr>
|
||||
<td><strong>QTY</strong></td>
|
||||
<td><strong>DESCRIPTION</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty0" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc0" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty1" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc1" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty2" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc2" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty3" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc3" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty4" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc4" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>BILLING</strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><em>Credit card</em></td>
|
||||
<td><select NAME="Card__Type" size="1">
|
||||
<option SELECTED>VISA </option>
|
||||
<option>MasterCard </option>
|
||||
<option>American Express </option>
|
||||
<option>Diner's Club </option>
|
||||
<option>Discover </option>
|
||||
</select> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Cardholder name</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Card_Name" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Card number</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Card_Nmbr" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Expiration date</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Card__Exp" SIZE="5" MAXLENGTH="5"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>SHIPPING</strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Street address</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Str1" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Address (cont.)</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Str2" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>City</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_City" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>State/Province</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Stat" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Zip/Postal code</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs__Zip" SIZE="12" MAXLENGTH="12"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Country</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Ctry" SIZE="25"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Email Address</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Email" SIZE="25"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align="center"><center><p><input TYPE="submit" VALUE="Submit Form"> </p>
|
||||
</center></div><hr width="60%" color="#FF0000">
|
||||
<div align="center"><center><p><font><small>Designed by: <a href="http://www.Aawsom.net/sitedesign">Aawsom Technologies</a></small></font><br>
|
||||
<font color="#000000" face="Arial" size="1">Revised: <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%m/%d/%y %I:%M %p" startspan -->09/10/98 01:52 PM<!--webbot bot="Timestamp" endspan i-checksum="29431" --></font></p>
|
||||
</center></div><div align="center"><center><p></font> </p>
|
||||
</center></div>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
138
site/slowtwitch.com/www/secure/Testorder.asp
Normal file
138
site/slowtwitch.com/www/secure/Testorder.asp
Normal file
@ -0,0 +1,138 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
|
||||
<base face="Arial">
|
||||
<title>Secure Order Form</title>
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" link="#0000FF" vlink="#800000">
|
||||
<div align="left">
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="125"><font color="#FF0000"><big>Aawsom<br>
|
||||
Technologies</big></font></td>
|
||||
<td width="5"></td>
|
||||
<td><h1><font color="#FF0000">Secure Order Form</font></h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="125"></td>
|
||||
<td width="5" bgcolor="#FFFFFF"></td>
|
||||
<td bgcolor="#FFFFFF" align="left"><font face="Arial"><table border="5">
|
||||
<tr>
|
||||
<td>
|
||||
<!-- Start Insert Here -->
|
||||
<form action="https://Secure2.Aawsom.net/forms/FormProcessor.asp" method="POST" name="Comment_Form">
|
||||
<input type="hidden" name="MailTo" value="Support@Aawsom.net">
|
||||
<input type="hidden" name="MailFromDefault" value="NoEmail@Aawsom.net">
|
||||
<input type="hidden" name="MailFromField" value="Email">
|
||||
<input type="hidden" name="MailSubject" value="Test Form">
|
||||
<input type="hidden" name="MailRedirect" value="Aawsom.net">
|
||||
<%' <input type="hidden" name="MailRedirectSecure" value="Secure2.Aawsom.net/VirtualXXX/YourUsername/secure/thanks.htm">%>
|
||||
<input type="hidden" name="Time" value="<%=Now()%>">
|
||||
<input type="hidden" name="Browser" value="<%=Request.ServerVariables("HTTP_User_Agent")%>">
|
||||
<!-- End Insert Here -->
|
||||
<hr width="60%" color="#FF0000">
|
||||
<p>Please provide the following ordering information:</p>
|
||||
<table>
|
||||
<tr>
|
||||
<td><strong>QTY</strong></td>
|
||||
<td><strong>DESCRIPTION</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty0" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc0" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty1" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc1" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty2" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc2" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty3" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc3" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty4" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc4" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>BILLING</strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><em>Credit card</em></td>
|
||||
<td><select NAME="Card__Type" size="1">
|
||||
<option SELECTED>VISA </option>
|
||||
<option>MasterCard </option>
|
||||
<option>American Express </option>
|
||||
<option>Diner's Club </option>
|
||||
<option>Discover </option>
|
||||
</select> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Cardholder name</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Card_Name" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Card number</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Card_Nmbr" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Expiration date</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Card__Exp" SIZE="5" MAXLENGTH="5"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>SHIPPING</strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Street address</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Str1" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Address (cont.)</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Str2" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>City</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_City" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>State/Province</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Stat" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Zip/Postal code</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs__Zip" SIZE="12" MAXLENGTH="12"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Country</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Ctry" SIZE="25"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Email Address</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Email" SIZE="25"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align="center"><center><p><input TYPE="submit" VALUE="Submit Form"> </p>
|
||||
</center></div><hr width="60%" color="#FF0000">
|
||||
<div align="center"><center><p><font><small>Designed by: <a href="http://www.Aawsom.net/sitedesign">Aawsom Technologies</a></small></font><br>
|
||||
<font color="#000000" face="Arial" size="1">Revised: <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%m/%d/%y %I:%M %p" startspan -->09/10/98 01:52 PM<!--webbot bot="Timestamp" endspan i-checksum="29431" --></font></p>
|
||||
</center></div><div align="center"><center><p></font> </p>
|
||||
</center></div>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
11
site/slowtwitch.com/www/secure/UseThisKevin.asp
Normal file
11
site/slowtwitch.com/www/secure/UseThisKevin.asp
Normal file
@ -0,0 +1,11 @@
|
||||
<!-- Start Insert Here -->
|
||||
<form action="https://Secure2.Aawsom.net/forms/FormProcessor.asp" method="POST" name="Comment_Form">
|
||||
<input type="hidden" name="MailTo" value="Support@Aawsom.net">
|
||||
<input type="hidden" name="MailFromDefault" value="NoEmail@Aawsom.net">
|
||||
<input type="hidden" name="MailFromField" value="Email">
|
||||
<input type="hidden" name="MailSubject" value="Test Form">
|
||||
<input type="hidden" name="MailRedirect" value="Aawsom.net">
|
||||
<%' <input type="hidden" name="MailRedirectSecure" value="Secure2.Aawsom.net/VirtualXXX/YourUsername/secure/thanks.htm">%>
|
||||
<input type="hidden" name="Time" value="<%=Now()%>">
|
||||
<input type="hidden" name="Browser" value="<%=Request.ServerVariables("HTTP_User_Agent")%>">
|
||||
<!-- End Insert Here -->
|
8
site/slowtwitch.com/www/secure/WhereAmI.asp
Normal file
8
site/slowtwitch.com/www/secure/WhereAmI.asp
Normal file
@ -0,0 +1,8 @@
|
||||
<%@ LANGUAGE="vbscript" %>
|
||||
<% Option Explicit %>
|
||||
<html>
|
||||
<Title>Current Path</Title>
|
||||
<body>
|
||||
<% Response.write "The Current Path:" & Request.ServerVariables("Path_Translated")%>
|
||||
</body>
|
||||
</html>
|
94
site/slowtwitch.com/www/secure/database/TableList.asp
Normal file
94
site/slowtwitch.com/www/secure/database/TableList.asp
Normal file
@ -0,0 +1,94 @@
|
||||
<%@ LANGUAGE="vbscript" %>
|
||||
<%Option Explicit%>
|
||||
<%
|
||||
'-------------------------------------------------------------------------------
|
||||
'Aawsom Technologies
|
||||
'Created By: Steve Hunsader
|
||||
'Created On: 2/8/02
|
||||
'-------------------------------------------------------------------------------
|
||||
'Defining Objects
|
||||
Dim sTableName
|
||||
Dim Products, rsProducts 'These should be renamed for each project
|
||||
Dim sQuery, cmdTemp, nFields, ThisRecord, i
|
||||
|
||||
'insert table name
|
||||
sTableName = "Products"
|
||||
|
||||
'If a Query String item "T" exists, then display that table instead.
|
||||
If trim(Request.QueryString("T")) <> "" then
|
||||
sTableName = trim(Request.QueryString("T"))
|
||||
End If
|
||||
|
||||
sQuery = "SELECT * FROM " & sTableName
|
||||
|
||||
'Connection Object to database
|
||||
Set Products=Server.CreateObject("ADODB.Connection")
|
||||
Products.ConnectionTimeout = Session("ConnectionTimeout")
|
||||
Products.CommandTimeout = Session("CommandTimeout")
|
||||
Products.Open Session("ConnectString"), Session("RuntimeUser"), Session("RuntimePass")
|
||||
Set cmdTemp = Server.CreateObject("ADODB.Command")
|
||||
Set rsProducts = Server.CreateObject("ADODB.Recordset")
|
||||
cmdTemp.CommandText = sQuery
|
||||
cmdTemp.CommandType = 1
|
||||
Set cmdTemp.ActiveConnection = Products
|
||||
rsProducts.Open cmdTemp, , 0, 1
|
||||
'Response.Write sQuery
|
||||
%>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Table <%=sTableName%></title>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div align="left">
|
||||
|
||||
<table border="0" cellpadding="6" align="center" width="90%">
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div align="center">
|
||||
<table border="0" cellspacing="4" cellpadding="5" width="90%">
|
||||
<tr>
|
||||
<td>
|
||||
<div align="center"><font size="3"><b>Table <%=sTableName%></b></font></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table border=0 align="center" cellpadding="0" cellspacing="5" width="50%">
|
||||
<tr>
|
||||
<%'Header On The Table of Field Names%>
|
||||
<%nFields=rsProducts.fields.count -1%>
|
||||
<%For i=0 to nFields%>
|
||||
<td><b><%=rsProducts(i).name%></b></td>
|
||||
<%Next%>
|
||||
</tr>
|
||||
<%' Loop through the records%>
|
||||
<%Do While NOT rsProducts.EOF%>
|
||||
<tr>
|
||||
<%For i = 0 to nFields
|
||||
ThisRecord = rsProducts(i)
|
||||
If IsNull(ThisRecord) Then
|
||||
ThisRecord = " "
|
||||
End If%>
|
||||
<td valign=top>
|
||||
<div align="left"><%=ThisRecord%></div>
|
||||
</td>
|
||||
<%Next%>
|
||||
</tr>
|
||||
<%rsProducts.movenext%>
|
||||
<%Loop%>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
14
site/slowtwitch.com/www/secure/database/global.asa
Normal file
14
site/slowtwitch.com/www/secure/database/global.asa
Normal file
@ -0,0 +1,14 @@
|
||||
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
|
||||
Sub Session_OnStart
|
||||
|
||||
'NOTE: The database name must be assigned at the end of the line below.
|
||||
Session("ConnectString") = "DRIVER={SQL Server};SERVER=SQL2;UID=Webuser;APP=Microsoft(R) Windows NT(TM) Operating System;WSID=P150;DATABASE=****YourDatabase****"
|
||||
Session("ConnectionTimeout") = 15
|
||||
Session("CommandTimeout") = 30
|
||||
Session("RuntimeUser") = "Webuser"
|
||||
Session("RuntimePass") = "Webuser"
|
||||
|
||||
End Sub
|
||||
</SCRIPT>
|
||||
|
||||
|
58
site/slowtwitch.com/www/secure/default.htm
Normal file
58
site/slowtwitch.com/www/secure/default.htm
Normal file
@ -0,0 +1,58 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Your Secure Server Page</title>
|
||||
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
|
||||
<base face="Arial">
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" link="#0000FF" vlink="#800000">
|
||||
<div align="left">
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="125"><font color="#FF0000"><big>Aawsom<br>
|
||||
Technologies</big></font></td>
|
||||
<td width="5"></td>
|
||||
<td><font><a href="mailto:info@Unilab.com" id="F9" onmouseover="window.status='Email Us For Additional Information'; return true;" onmouseout="window.status=''; return true;"><p align="center"></a></font><font color="#FF0000" face="Arial"><big><big>Your Secure Server Site</big></big></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="125"></td>
|
||||
<td width="5" bgcolor="#FFFFFF"></td>
|
||||
<td bgcolor="#FFFFFF"><p align="left"><font face="Arial"><br>
|
||||
<small>This page is located in the /secure directory of your website. You can access
|
||||
it through normal FTP or the Frontpage "Publish" features, as you would with any
|
||||
other content in your website. To access this page SECURELY, you must reference this page
|
||||
through the Secure Aawsom website. Anything you put in your /secure directory can be seen
|
||||
at:</small></font></p>
|
||||
<p align="center"><small><font face="Arial"><strong>https://Secure.Aawsom.net/<em>VirtualX</em>/<em>Username</em>/secure/<em>Filename</em></strong></font></small></p>
|
||||
<p align="left"><font face="Arial"><strong>Where:</strong></font></p>
|
||||
<p align="left"><small><font face="Arial"><em><strong>VirtualX =</strong></em> The Virtual
|
||||
Directory you reside in. This information is included on your signup information sheet.</font></small></p>
|
||||
<p align="left"><small><font face="Arial"><em><strong>Username =</strong></em> Your
|
||||
account Username, also included on your signup information sheet.</font></small></p>
|
||||
<p align="left"><small><font face="Arial"><strong><em>Filename =</em></strong> The
|
||||
filename of the form you want to process.</font></small></p>
|
||||
<p align="left"><font face="Arial"><strong>Example</strong></font></p>
|
||||
<p align="left"><small><font face="Arial">A company in <strong><em>Virtual1</em></strong>
|
||||
with username <strong><em>MyCompany</em></strong> would like to use a form called <em><strong>secureorder.htm</strong></em>.
|
||||
Secureorder.htm is copied into the /secure directory using traditional FTP or Frontpage
|
||||
Publish methods. The link to this page should be:</font></small></p>
|
||||
<p align="center"><small><strong><font face="Arial">https://Secure.Aawsom.net/<em>Virtual1</em>/<em>Mycompany</em>/<em>secureorder.htm</em></font></strong></small></p>
|
||||
<p align="left"><small><font face="Arial">Please note that there is an "<strong>S</strong>"
|
||||
in the URL: https:// and not the standard http://. This is how the webserver distinquishes
|
||||
the difference between a secure encrypted webpage and a standard web page.</font></small></p>
|
||||
<p align="left"><small><font face="Arial"><strong>NOTE: </strong>Some additional
|
||||
configuration is required. Please see </font></small>the <a href="http://Aawsom.net/support/">Support</a> section of our website for additional
|
||||
details on processing forms.</p>
|
||||
<p align="left"><small><font face="Arial">If you have any difficulties, please <a href="mailto:Secure@Aawsom.net">contact us.</a></font></small></p>
|
||||
<hr width="60%" color="#FF0000">
|
||||
<p align="center"><font><small>Designed by: <a href="http://www.Aawsom.net/sitedesign">Aawsom
|
||||
Technologies</a></small></font><br>
|
||||
<font color="#000000" face="Arial" size="1">Revised: <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%m/%d/%y %I:%M %p" startspan -->09/12/98 01:51 PM<!--webbot bot="Timestamp" endspan i-checksum="29431" --></font></p>
|
||||
<p align="center"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
133
site/slowtwitch.com/www/secure/formtag.asp
Normal file
133
site/slowtwitch.com/www/secure/formtag.asp
Normal file
@ -0,0 +1,133 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
|
||||
<base face="Arial">
|
||||
<title>Secure Order Form</title>
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" link="#0000FF" vlink="#800000">
|
||||
<div align="left">
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="125"><font color="#FF0000"><big>Aawsom<br>
|
||||
Technologies</big></font></td>
|
||||
<td width="5"></td>
|
||||
<td><h1><font color="#FF0000">Secure Order Form</font></h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="125"></td>
|
||||
<td width="5" bgcolor="#FFFFFF"></td>
|
||||
<td bgcolor="#FFFFFF" align="left"><font face="Arial"><table border="5">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<!-- Start Insert Here -->
|
||||
<form METHOD="POST" action="../_vti_bin/shtml.dll/secure/formtag.asp" webbot-action="--WEBBOT-SELF--">
|
||||
<!--webbot bot="SaveResults" U-File="data/secureorder.txt" S-Format="TEXT/TSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE" S-Email-Address="Steve@Aawsom.net" B-Email-Label-Fields="TRUE" B-Email-ReplyTo-From-Field="True" S-Email-ReplyTo="Email" B-Email-Subject-From-Field="FALSE" S-Email-Subject="Your Secure Order" S-Builtin-Fields="Date Time HTTP_USER_AGENT" startspan --><strong>[FrontPage Save Results Component]</strong><!--webbot bot="SaveResults" endspan i-checksum="6561" -->
|
||||
<!-- End Insert Here -->
|
||||
|
||||
<hr width="60%" color="#FF0000">
|
||||
<p>Please provide the following ordering information:</p>
|
||||
<table>
|
||||
<tr>
|
||||
<td><strong>QTY</strong></td>
|
||||
<td><strong>DESCRIPTION</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty0" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc0" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty1" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc1" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty2" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc2" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty3" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc3" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty4" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc4" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>BILLING</strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><em>Credit card</em></td>
|
||||
<td><select NAME="Card__Type" size="1">
|
||||
<option SELECTED>VISA </option>
|
||||
<option>MasterCard </option>
|
||||
<option>American Express </option>
|
||||
<option>Diner's Club </option>
|
||||
<option>Discover </option>
|
||||
</select> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Cardholder name</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Card_Name" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Card number</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Card_Nmbr" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Expiration date</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Card__Exp" SIZE="5" MAXLENGTH="5"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>SHIPPING</strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Street address</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Str1" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Address (cont.)</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Str2" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>City</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_City" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>State/Province</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Stat" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Zip/Postal code</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs__Zip" SIZE="12" MAXLENGTH="12"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Country</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Ctry" SIZE="25"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Email Address</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Email" SIZE="25"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align="center"><center><p><input TYPE="submit" VALUE="Submit Form"> </p>
|
||||
</center></div><hr width="60%" color="#FF0000">
|
||||
<div align="center"><center><p><font><small>Designed by: <a href="http://www.Aawsom.net/sitedesign">Aawsom Technologies</a></small></font><br>
|
||||
<font color="#000000" face="Arial" size="1">Revised: <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%m/%d/%y %I:%M %p" startspan -->01/09/99 01:36 AM<!--webbot bot="Timestamp" endspan i-checksum="27855" --></font></p>
|
||||
</center></div><div align="center"><center><p></font> </p>
|
||||
</center></div>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
195
site/slowtwitch.com/www/secure/lyrisProcessor.asp
Normal file
195
site/slowtwitch.com/www/secure/lyrisProcessor.asp
Normal file
@ -0,0 +1,195 @@
|
||||
<%@ LANGUAGE="VBSCRIPT" %>
|
||||
<% Option Explicit %>
|
||||
|
||||
<script RUNAT="Server" LANGUAGE="VBScript">
|
||||
|
||||
Function MailIt(sFrom,sTo,sSub,sBody)
|
||||
|
||||
On Error Resume Next 'prevent the code from halting on an error
|
||||
dim oMail
|
||||
|
||||
MailIt=false
|
||||
Set oMail = Server.CreateObject("CDONTS.Newmail")
|
||||
oMail.From = sFrom
|
||||
oMail.To = sTo
|
||||
oMail.Subject = sSub
|
||||
oMail.Body = sBody
|
||||
oMail.Send
|
||||
|
||||
If Err.Number <> 0 then
|
||||
response.write "Error1 Found:" & Err.Number & " " & Err.Description
|
||||
end if
|
||||
|
||||
Set oMail = nothing
|
||||
|
||||
If Err.Number = 0 then
|
||||
MailIt = true
|
||||
Else
|
||||
response.write "Error Found:" & Err.Number & " " & Err.Description
|
||||
End If
|
||||
|
||||
End Function
|
||||
|
||||
Function Cr2br(sIn)
|
||||
Dim sLen
|
||||
Dim iCount
|
||||
Dim iPos
|
||||
Dim sCr
|
||||
Dim sLf
|
||||
|
||||
sCr = chr(13)
|
||||
sLf = chr(10)
|
||||
|
||||
sLen = len(sIn)
|
||||
Cr2br = ""
|
||||
for iPos = 1 to sLen
|
||||
if (mid(sIn,iPos,1) = sCr) then
|
||||
Cr2br=Cr2br & "<br>"
|
||||
iPos=iPos+1
|
||||
else
|
||||
Cr2br=Cr2br & mid(sIn,iPos,1)
|
||||
end If
|
||||
next
|
||||
|
||||
End Function
|
||||
|
||||
</script>
|
||||
|
||||
<%
|
||||
Dim i, j, br, lf, found
|
||||
Dim iByteCount, sData, sTemp, bResponse, sEnd
|
||||
Dim sTo, sFrom, sSubject, sBody, bDataOK, sWebBody, sMessage
|
||||
Dim sFromField, bFromField, sRedirect, bRedirect, bRedirectIsSecure
|
||||
Dim aData, aPermit(), iCount, sLeadIn
|
||||
|
||||
br = "<BR>"
|
||||
lf = Chr(13) & Chr(10)
|
||||
sLeadIn = "login bikila" & lf & "add slowtwitch-news quiet <<" & lf
|
||||
sEnd = ">>"
|
||||
|
||||
'Grab data from header in byte forma
|
||||
iByteCount = Request.TotalBytes
|
||||
sTemp = Request.BinaryRead(iByteCount)
|
||||
|
||||
'Convert byte data into string data
|
||||
For i = 1 to iByteCount
|
||||
sData = sData & Chr(AscB(MidB(sTemp,i,1)))
|
||||
Next
|
||||
|
||||
'Replace Query String substitution characters
|
||||
sData = Replace(sData, "+", " ")
|
||||
sData = Replace(sData, "=", ": ")
|
||||
|
||||
'Put each value into individual array element
|
||||
aData = Split(sData, "&", -1, 1)
|
||||
|
||||
'Get count of number of entries
|
||||
On Error Resume Next
|
||||
i = 0
|
||||
iCount = 0
|
||||
Do
|
||||
If NOT IsEmpty(aData(i)) then
|
||||
if Err.Number = 0 then
|
||||
iCount = iCount+1
|
||||
Else
|
||||
Exit Do
|
||||
End If
|
||||
end If
|
||||
i=i+1
|
||||
Loop
|
||||
|
||||
'Replace UUEncoding
|
||||
For i = 0 to iCount-1
|
||||
aData(i) = Replace(aData(i), "%21", Chr(33)) '!
|
||||
aData(i) = Replace(aData(i), "%22", Chr(34)) '"
|
||||
aData(i) = Replace(aData(i), "%23", Chr(35)) '#
|
||||
aData(i) = Replace(aData(i), "%24", Chr(36)) '$
|
||||
aData(i) = Replace(aData(i), "%25", Chr(37)) '%
|
||||
aData(i) = Replace(aData(i), "%26", Chr(38)) '&
|
||||
aData(i) = Replace(aData(i), "%27", Chr(39)) ''
|
||||
aData(i) = Replace(aData(i), "%28", Chr(40)) '(
|
||||
aData(i) = Replace(aData(i), "%29", Chr(41)) ')
|
||||
aData(i) = Replace(aData(i), "%2A", Chr(42)) '*
|
||||
aData(i) = Replace(aData(i), "%2B", Chr(43)) '+
|
||||
aData(i) = Replace(aData(i), "%2C", Chr(44)) ',
|
||||
aData(i) = Replace(aData(i), "%2D", Chr(45)) '-
|
||||
aData(i) = Replace(aData(i), "%2E", Chr(46)) '.
|
||||
aData(i) = Replace(aData(i), "%2F", Chr(47)) '/
|
||||
aData(i) = Replace(aData(i), "%3A", Chr(58)) ':
|
||||
aData(i) = Replace(aData(i), "%3B", Chr(59)) ';
|
||||
aData(i) = Replace(aData(i), "%3C", Chr(60)) '<
|
||||
aData(i) = Replace(aData(i), "%3D", Chr(61)) '=
|
||||
aData(i) = Replace(aData(i), "%3E", Chr(62)) '>
|
||||
aData(i) = Replace(aData(i), "%3F", Chr(63)) '?
|
||||
aData(i) = Replace(aData(i), "%40", Chr(64)) '@
|
||||
aData(i) = Replace(aData(i), "%5B", Chr(91)) '[
|
||||
aData(i) = Replace(aData(i), "%5C", Chr(92)) '\
|
||||
aData(i) = Replace(aData(i), "%5D", Chr(93)) ']
|
||||
aData(i) = Replace(aData(i), "%5E", Chr(94)) '^
|
||||
aData(i) = Replace(aData(i), "%5F", Chr(95)) '_
|
||||
aData(i) = Replace(aData(i), "%60", Chr(96)) ''
|
||||
aData(i) = Replace(aData(i), "%7B", Chr(123)) '{
|
||||
aData(i) = Replace(aData(i), "%7C", Chr(123)) '|
|
||||
aData(i) = Replace(aData(i), "%7D", Chr(123)) '}
|
||||
aData(i) = Replace(aData(i), "%7E", Chr(123)) '~
|
||||
aData(i) = Replace(aData(i), "%0D", Chr(13)) 'Carriage Return
|
||||
aData(i) = Replace(aData(i), "%0A", Chr(10)) 'Line Feed
|
||||
Next
|
||||
|
||||
Redim aPermit(iCount)
|
||||
|
||||
For i = 0 to iCount-1
|
||||
aPermit(i) = True
|
||||
If Left(aData(i),Len("MailTo")) = "MailTo" Then
|
||||
sTo = Mid(aData(i),Len("MailTo")+3)
|
||||
aPermit(i) = False
|
||||
End If
|
||||
If Left(aData(i),Len("MailFromField")) = "MailFromField" Then
|
||||
sFrom = Mid(aData(i),Len("MailFromField")+3)
|
||||
aPermit(i) = False
|
||||
End If
|
||||
If Left(aData(i),Len("MailSubject")) = "MailSubject" Then
|
||||
sSubject = Mid(aData(i),Len("MailSubject")+3)
|
||||
aPermit(i) = False
|
||||
End If
|
||||
If Left(aData(i),Len("MailRedirectSecure")) = "MailRedirectSecure" Then
|
||||
sRedirect = "https://" & Mid(aData(i),Len("MailRedirectSecure")+3)
|
||||
bRedirect = True
|
||||
aPermit(i) = False
|
||||
End If
|
||||
Next
|
||||
|
||||
'Create Body of Message
|
||||
sBody = sLeadIn
|
||||
For i = 0 to iCount-1
|
||||
If aPermit(i) = True Then
|
||||
found = InStr(aData(i), "email")
|
||||
If found Then
|
||||
found = found + 7
|
||||
sBody = sBody & Mid(aData(i), found) & lf
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
|
||||
sBody = sBody & sEnd
|
||||
|
||||
'Check that there is enough data to send mail
|
||||
bDataOK = True
|
||||
|
||||
If len(sBody) = 0 Then
|
||||
bDataOK = False
|
||||
sMessage = "No BODY Content.<BR>"
|
||||
End If
|
||||
|
||||
If bDataOK = True Then
|
||||
|
||||
'Mail It
|
||||
sResult = mailIt(sFrom,sTo,sSubject,sBody)
|
||||
|
||||
'If redirecting to another page, redirect before anything is written to page
|
||||
If bRedirect = True then
|
||||
Response.Redirect sRedirect
|
||||
End If
|
||||
|
||||
End If
|
||||
%>
|
147
site/slowtwitch.com/www/secure/secureorder.htm
Normal file
147
site/slowtwitch.com/www/secure/secureorder.htm
Normal file
@ -0,0 +1,147 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
|
||||
<base face="Arial">
|
||||
<title>Secure Order Form</title>
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" link="#0000FF" vlink="#800000">
|
||||
<div align="left">
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="125"><font color="#FF0000"><big>Aawsom<br>
|
||||
Technologies</big></font></td>
|
||||
<td width="5"></td>
|
||||
<td><h1><font color="#FF0000">Secure Order Form</font></h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="125"></td>
|
||||
<td width="5" bgcolor="#FFFFFF"></td>
|
||||
<td bgcolor="#FFFFFF" align="left"><font face="Arial"><table border="5">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<!-- Start Insert Here -->
|
||||
<form METHOD="POST" action="../_vti_bin/shtml.dll/secure/secureorder.htm" webbot-action="--WEBBOT-SELF--">
|
||||
<!--webbot bot="SaveResults"
|
||||
U-File="data/secureorder.txt"
|
||||
S-Format="TEXT/TSV"
|
||||
S-Label-Fields="TRUE"
|
||||
B-Reverse-Chronology="FALSE"
|
||||
S-Email-Format="TEXT/PRE"
|
||||
S-Email-Address="Steve@Aawsom.net"
|
||||
B-Email-Label-Fields="TRUE"
|
||||
B-Email-ReplyTo-From-Field="True"
|
||||
S-Email-ReplyTo="Email"
|
||||
B-Email-Subject-From-Field="FALSE"
|
||||
S-Email-Subject="Your Secure Order"
|
||||
S-Builtin-Fields="Date Time HTTP_USER_AGENT" startspan -->
|
||||
<input TYPE="hidden" NAME="VTI-GROUP" VALUE="0">
|
||||
<!--webbot bot="SaveResults" endspan i-checksum="43374" -->
|
||||
<!-- End Insert Here -->
|
||||
|
||||
<hr width="60%" color="#FF0000">
|
||||
<p>Please provide the following ordering information:</p>
|
||||
<table>
|
||||
<tr>
|
||||
<td><strong>QTY</strong></td>
|
||||
<td><strong>DESCRIPTION</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty0" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc0" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty1" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc1" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty2" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc2" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty3" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc3" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input TYPE="TEXT" NAME="Order_Qty4" SIZE="6" MAXLENGTH="6"></td>
|
||||
<td><input TYPE="TEXT" NAME="Order_Dsc4" SIZE="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>BILLING</strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><em>Credit card</em></td>
|
||||
<td><select NAME="Card__Type" size="1">
|
||||
<option SELECTED>VISA </option>
|
||||
<option>MasterCard </option>
|
||||
<option>American Express </option>
|
||||
<option>Diner's Club </option>
|
||||
<option>Discover </option>
|
||||
</select> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Cardholder name</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Card_Name" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Card number</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Card_Nmbr" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Expiration date</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Card__Exp" SIZE="5" MAXLENGTH="5"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>SHIPPING</strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Street address</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Str1" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Address (cont.)</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Str2" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>City</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_City" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>State/Province</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Stat" SIZE="35"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Zip/Postal code</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs__Zip" SIZE="12" MAXLENGTH="12"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Country</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Addrs_Ctry" SIZE="25"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ALIGN="right"><em>Email Address</em></td>
|
||||
<td><input TYPE="TEXT" NAME="Email" SIZE="25"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align="center"><center><p><input TYPE="submit" VALUE="Submit Form"> </p>
|
||||
</center></div><hr width="60%" color="#FF0000">
|
||||
<div align="center"><center><p><font><small>Designed by: <a href="http://www.Aawsom.net/sitedesign">Aawsom Technologies</a></small></font><br>
|
||||
<font color="#000000" face="Arial" size="1">Revised: <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%m/%d/%y %I:%M %p" startspan -->09/10/98 01:52 PM<!--webbot bot="Timestamp" endspan i-checksum="29431" --></font></p>
|
||||
</center></div><div align="center"><center><p></font> </p>
|
||||
</center></div>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
BIN
site/slowtwitch.com/www/secure/thx.gif
Normal file
BIN
site/slowtwitch.com/www/secure/thx.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.2 KiB |
1
site/slowtwitch.com/www/stackreach
Symbolic link
1
site/slowtwitch.com/www/stackreach
Symbolic link
@ -0,0 +1 @@
|
||||
/var/home/slowtwitch/site/stackreach
|
34
site/slowtwitch.com/www/tick/appearance_update.php
Normal file
34
site/slowtwitch.com/www/tick/appearance_update.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$ID = 0;
|
||||
if (isset($_POST['ID'])) { $ID = $_POST['ID']; }
|
||||
|
||||
$stageID = 0;
|
||||
if (isset($_POST['stageID'])) { $stageID = $_POST['stageID']; }
|
||||
|
||||
if ($ID != 0)
|
||||
{
|
||||
$query = "UPDATE maps SET "
|
||||
. "zoom = '" . $_POST['zoom'] . "', "
|
||||
. "map_type = '" . $_POST['map_type'] . "', "
|
||||
. "center_lat = '" . $_POST['center_lat'] . "', "
|
||||
. "center_lon = '" . $_POST['center_lon'] . "' "
|
||||
. "WHERE ID = '$ID'";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
else
|
||||
{
|
||||
$query = "INSERT INTO maps (stageID, zoom, map_type, center_lat, center_lon) VALUES ("
|
||||
. "'" . $stageID . "',"
|
||||
. "'" . $_POST['zoom'] . "',"
|
||||
. "'" . $_POST['map_type'] . "',"
|
||||
. "'" . $_POST['center_lat'] . "',"
|
||||
. "'" . $_POST['center_lon'] . "')";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
|
||||
staticify($stageID);
|
||||
header("Location: /tick/stages.php");
|
||||
|
||||
?>
|
33
site/slowtwitch.com/www/tick/banner.js
Normal file
33
site/slowtwitch.com/www/tick/banner.js
Normal file
@ -0,0 +1,33 @@
|
||||
function banner(which)
|
||||
{
|
||||
var LIMIT = 9;
|
||||
var sections = new Array(LIMIT);
|
||||
|
||||
for (var i=0; i < sections.length; i++)
|
||||
{
|
||||
sections[i] = 'bannerthere';
|
||||
}
|
||||
if (which >= 0 && which <= LIMIT)
|
||||
sections[which] = 'bannerhere';
|
||||
|
||||
document.writeln('<table cellpadding=2 cellspacing=2 border=0 width=700"><tr>');
|
||||
document.writeln('<td align=center width="20%"><img src="/images/omr_logo_on_black_120w.jpg" border=0></td>');
|
||||
document.writeln('<td align=center><a class=' + sections[1] + ' href="events.php">Events</a></td>');
|
||||
document.writeln('<td align=center><a class=' + sections[2] + ' href="stages.php">Stages</a></td>');
|
||||
document.writeln('<td align=center><a class=' + sections[3] + ' href="ticks.php">Ticks</a></td>');
|
||||
document.writeln('<td align=center><a class=' + sections[5] + ' href="standings.php">Standings</a></td>');
|
||||
document.writeln('<td align=center><a class=' + sections[6] + ' href="maps_appearance.php">Maps</a></td>');
|
||||
document.writeln('<td align=center><a class=' + sections[4] + ' href="pics.php">Pics</a></td>');
|
||||
document.writeln('<td align=center><a class=' + sections[7] + ' href="videos.php">Videos</a></td>');
|
||||
//document.writeln('<td align=center><a class=' + sections[8] + ' href="popup.php">Popup</a></td>');
|
||||
document.writeln('</tr></table>');
|
||||
}
|
||||
|
||||
function popup(url, word)
|
||||
{
|
||||
var msg = "Are you sure you want to permanently remove this " + word + "?";
|
||||
if (confirm(msg))
|
||||
{
|
||||
location.replace(url);
|
||||
}
|
||||
}
|
32
site/slowtwitch.com/www/tick/black.php
Normal file
32
site/slowtwitch.com/www/tick/black.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
$img = '';
|
||||
if (isset($_GET['img'])) { $img = $_GET['img']; }
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>:: click on the picture to close window ::</title>
|
||||
</head>
|
||||
|
||||
<body bgcolor=#000000 marginheight=4 marginwidth=15 leftmargin=15 topmargin=4>
|
||||
|
||||
<div align=center>
|
||||
|
||||
<table cellpadding=3 cellspacing=3 border=0 width="100">
|
||||
<tr>
|
||||
|
||||
<td bgcolor="#eeeeee">
|
||||
<a href="javascript:window.close();">
|
||||
<img border=0 src="<?php echo $img ?>">
|
||||
</a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
65
site/slowtwitch.com/www/tick/courses_add.php
Normal file
65
site/slowtwitch.com/www/tick/courses_add.php
Normal file
@ -0,0 +1,65 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$stageID = 0;
|
||||
if (isset($_POST['stageID'])) { $stageID = $_POST['stageID']; }
|
||||
|
||||
$segmentID = 0;
|
||||
if (isset($_POST['segmentID'])) { $segmentID = $_POST['segmentID']; }
|
||||
|
||||
if ($stageID != 0)
|
||||
{
|
||||
$query = "DELETE FROM maps_coords WHERE stageID = " . $stageID;
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$query = "SELECT * FROM segments WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$segment = "segment" . $r['ID'];
|
||||
if (isset($_POST[$segment]) && $_POST[$segment] != "")
|
||||
{
|
||||
$coords = split(":", $_POST[$segment]);
|
||||
for ($i=0; $i < count($coords) - 1; $i++)
|
||||
{
|
||||
list($lat, $lon) = split(",", $coords[$i]);
|
||||
$query2 = "INSERT INTO maps_coords (stageID, segmentID, sequence, latitude, longitude) VALUES ("
|
||||
. "'" . $stageID . "',"
|
||||
. "'" . $r['ID'] . "',"
|
||||
. "'" . $i . "',"
|
||||
. "'" . $lat . "',"
|
||||
. "'" . $lon . "')";
|
||||
$result2 = mysql_query($query2, $db) or mysql_error($result2);
|
||||
}
|
||||
}
|
||||
|
||||
$distance_mi = "distance_mi" . $r['ID'];
|
||||
$distance_km = "distance_km" . $r['ID'];
|
||||
if (isset($_POST[$distance_mi]) && $_POST[$distance_mi] != "")
|
||||
{
|
||||
$query2 = "UPDATE segments SET "
|
||||
. "distance_mi = '" . $_POST[$distance_mi] . "', "
|
||||
. "distance_km = '" . $_POST[$distance_km] . "' "
|
||||
. "WHERE ID = " . $r['ID'];
|
||||
$result2 = mysql_query($query2, $db) or mysql_error($result2);
|
||||
}
|
||||
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
|
||||
if ($segmentID == 0)
|
||||
{
|
||||
$query = "INSERT INTO segments (stageID, color, name) VALUES ("
|
||||
. "'" . $stageID . "', "
|
||||
. "'" . $_POST['color'] . "', "
|
||||
. "'" . myaddslashes($_POST['name']) . "')";
|
||||
$result = mysql_query($query, $db) or mysql_error($result);
|
||||
}
|
||||
}
|
||||
|
||||
header("Location: /tick/maps_courses.php");
|
||||
|
||||
?>
|
58
site/slowtwitch.com/www/tick/courses_copy.php
Normal file
58
site/slowtwitch.com/www/tick/courses_copy.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$stageID = 0;
|
||||
if (isset($_POST['stageID'])) { $stageID = $_POST['stageID']; }
|
||||
|
||||
$newStageID = 0;
|
||||
if (isset($_POST['newStageID'])) { $newStageID = $_POST['newStageID']; }
|
||||
|
||||
if ($newStageID != 0)
|
||||
{
|
||||
$query = "DELETE FROM segments WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$query = "SELECT * from segments WHERE stageID = $newStageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$query2 = "INSERT INTO segments (stageID, name, color, distance_mi, distance_km) VALUES ("
|
||||
. "'" . $stageID . "',"
|
||||
. "'" . $r['name'] . "',"
|
||||
. "'" . $r['color'] . "',"
|
||||
. "'" . $r['distance_mi'] . "',"
|
||||
. "'" . $r['distance_km'] . "')";
|
||||
$result2 = mysql_query($query2, $db);
|
||||
|
||||
$ID = mysql_insert_id();
|
||||
$segments[$r['ID']] = $ID;
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
|
||||
$query = "DELETE FROM maps_coords WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$query = "SELECT * from maps_coords WHERE stageID = $newStageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$query2 = "INSERT INTO maps_coords (stageID, segmentID, sequence, latitude, longitude) VALUES ("
|
||||
. "'" . $stageID . "',"
|
||||
. "'" . $segments[$r['segmentID']] . "',"
|
||||
. "'" . $r['sequence'] . "',"
|
||||
. "'" . $r['latitude'] . "',"
|
||||
. "'" . $r['longitude'] . "')";
|
||||
$result2 = mysql_query($query2, $db);
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
}
|
||||
|
||||
header("Location: /tick/maps_appearance.php");
|
||||
|
||||
?>
|
17
site/slowtwitch.com/www/tick/courses_remove.php
Normal file
17
site/slowtwitch.com/www/tick/courses_remove.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
if (isset($_GET['ID']))
|
||||
{
|
||||
$ID = $_GET["ID"];
|
||||
|
||||
$query = "DELETE FROM maps_coords WHERE segmentID = $ID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$query = "DELETE FROM segments WHERE ID = $ID LIMIT 1";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
|
||||
header("Location: /tick/maps_courses.php");
|
||||
|
||||
?>
|
272
site/slowtwitch.com/www/tick/events.php
Normal file
272
site/slowtwitch.com/www/tick/events.php
Normal file
@ -0,0 +1,272 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$userID = 0;
|
||||
if (isset($_COOKIE['userID'])) { $userID = $_COOKIE['userID']; }
|
||||
else { header("Location: /tick/login.html"); }
|
||||
|
||||
$ID = "0";
|
||||
$tag = "0";
|
||||
$date_start = ''; $year_start = 0; $month_start = 0; $day_start = 0;
|
||||
$date_end = ''; $year_end = 0; $month_end = 0; $day_end = 0;
|
||||
$name = '';
|
||||
$header_html = ''; $footer_html = ''; $banner_html = ''; $tower_html = '';
|
||||
$map_key = ""; $title = "";
|
||||
$status = 'inactive';
|
||||
$notes = '';
|
||||
|
||||
if (isset($_GET['tag']))
|
||||
{
|
||||
$tag = $_GET["tag"];
|
||||
$query = "SELECT * FROM events WHERE tag = '$tag'";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$ID = $r['ID'];
|
||||
$name = $r['name'];
|
||||
|
||||
$date_start = $r['date_start'];
|
||||
list($year_start, $month_start, $day_start) = split("-", $date_start);
|
||||
$date_end = $r['date_end'];
|
||||
list($year_end, $month_end, $day_end) = split("-", $date_end);
|
||||
|
||||
$header_html = $r['header_html'];
|
||||
$footer_html = $r['footer_html'];
|
||||
$banner_html = $r['banner_html'];
|
||||
$tower_html = $r['tower_html'];
|
||||
$status = $r['status'];
|
||||
$map_key = $r['map_key'];
|
||||
$title = $r['title'];
|
||||
$notes = $r['notes'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>OneTicker :: Events</title>
|
||||
<link rel=stylesheet type="text/css" href="tick.css">
|
||||
<script src="banner.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body bgcolor=#000000 marginheight=4 marginwidth=15 leftmargin=15 topmargin=4>
|
||||
|
||||
<script type="text/javascript">banner(1);</script>
|
||||
|
||||
<form name="events" action="events_add.php" method="post">
|
||||
<input type="hidden" name="tag" value="<? echo $tag ?>">
|
||||
<input type="hidden" name="userID" value="<? echo $userID ?>">
|
||||
<input type="hidden" name="status" value="active">
|
||||
|
||||
<table border=0 cellspacing=1 cellpadding=1 width="680">
|
||||
<tr>
|
||||
<td><div class=text><b>Name:</b></div></td>
|
||||
<td><input class=blacktext type=text name="name" value="<? echo $name; ?>" size=50 maxlength=175></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=text><b>Map key:</b></div></td>
|
||||
<td><input class=blacktext type=text name="map_key" value="<? echo $map_key; ?>" size=50 maxlength=254></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=text><b>Window title:</b></div></td>
|
||||
<td><input class=blacktext type=text name="title" value="<? echo $title; ?>" size=50 maxlength=254></td>
|
||||
</tr>
|
||||
|
||||
<!--
|
||||
<tr>
|
||||
<td><div class=text><b>Status:</b></div></td>
|
||||
<td><div class=text>
|
||||
<select name=status class=blacktext>
|
||||
<option value="inactive"<? if ($status == 'inactive') { echo " selected"; } ?>>inactive</option>
|
||||
<option value="active"<? if ($status == 'active') { echo " selected"; } ?>>active</option>
|
||||
<option value="neither"<? if ($status == 'neither') { echo " selected"; } ?>>neither</option>
|
||||
</select>
|
||||
</div></td>
|
||||
</tr>
|
||||
-->
|
||||
|
||||
<tr>
|
||||
<td><div class=text><b>Start date:</b></div></td>
|
||||
<td><div class=text>
|
||||
<select class=blacktext name=month_start>
|
||||
<?
|
||||
while(list($key, $value) = each($month_names))
|
||||
{
|
||||
$selected = "";
|
||||
$month_index = $key + 1;
|
||||
if ($month_index == $month_start) { $selected = " selected"; }
|
||||
echo "<option value=\"${month_index}\"$selected>${value}</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<select class=blacktext name=day_start>
|
||||
<?
|
||||
for ($i=1; $i<32;$i++)
|
||||
{
|
||||
$selected = "";
|
||||
if ($i == $day_start) { $selected = " selected"; }
|
||||
echo "<option value=\"$i\"$selected>$i</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<select class=blacktext name=year_start>
|
||||
<?
|
||||
for ($i=2006; $i<2015;$i++)
|
||||
{
|
||||
$selected = "";
|
||||
if ($i == $year_start) { $selected = " selected"; }
|
||||
echo "<option value=\"$i\"$selected>$i</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=text><b>End date:</b></div></td>
|
||||
<td><div class=text>
|
||||
<select class=blacktext name=month_end>
|
||||
<?
|
||||
reset($month_names);
|
||||
while(list($key, $value) = each($month_names))
|
||||
{
|
||||
$selected = "";
|
||||
$month_index = $key + 1;
|
||||
if ($month_index == $month_end) { $selected = " selected"; }
|
||||
echo "<option value=\"${month_index}\"$selected>${value}</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<select class=blacktext name=day_end>
|
||||
<?
|
||||
for ($i=1; $i<32;$i++)
|
||||
{
|
||||
$selected = "";
|
||||
if ($i == $day_end) { $selected = " selected"; }
|
||||
echo "<option value=\"$i\"$selected>$i</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<select class=blacktext name=year_end>
|
||||
<?
|
||||
for ($i=2006; $i<2015;$i++)
|
||||
{
|
||||
$selected = "";
|
||||
if ($i == $year_end) { $selected = " selected"; }
|
||||
echo "<option value=\"$i\"$selected>$i</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr valign=top>
|
||||
<td><div class=text><b>Header:</b><br> (HTML)</div></td>
|
||||
<td><div class=blacktext>
|
||||
<textarea class=blacktext name="header_html" cols=80 rows=5 wrap="virtual"><? echo "$header_html"; ?></textarea>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr valign=top>
|
||||
<td><div class=text><b>Footer:</b><br> (HTML)</div></td>
|
||||
<td><div class=blacktext>
|
||||
<textarea class=blacktext name="footer_html" cols=80 rows=5 wrap="virtual"><? echo "$footer_html"; ?></textarea>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr valign=top>
|
||||
<td><div class=text><b>Banner:</b><br> (HTML)</div></td>
|
||||
<td><div class=blacktext>
|
||||
<textarea class=blacktext name="banner_html" cols=80 rows=5 wrap="virtual"><? echo $banner_html; ?></textarea>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr valign=top>
|
||||
<td><div class=text><b>Tower:</b><br> (HTML)</div></td>
|
||||
<td><div class=blacktext>
|
||||
<textarea class=blacktext name="tower_html" cols=80 rows=5 wrap="virtual"><? echo $tower_html; ?></textarea>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr valign=top>
|
||||
<td><div class=text><b>Notes:</b></div></td>
|
||||
<td><div class=blacktext>
|
||||
<textarea class=blacktext name="notes" cols=80 rows=3 wrap="virtual"><? echo $notes; ?></textarea>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" align=center>
|
||||
<input class=boldtext type="submit" name="submit" value="add/update event"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<p><table border=0 cellpadding=0 cellspacing=0 bgcolor="#000000" width="700">
|
||||
<tr><td>
|
||||
<table border=0 cellpadding=3 cellspacing=1 bgcolor="#000000" width=100%>
|
||||
|
||||
<tr valign=top>
|
||||
<td bgcolor=#cccccc align=center width="15%"><div class=blacktext><b>START</b></div></td>
|
||||
<td bgcolor=#cccccc align=center width="15%"><div class=blacktext><b>FINISH</b></div></td>
|
||||
<td bgcolor=#cccccc align=center><div class=blacktext><b>NAME</b></div></td>
|
||||
<td bgcolor=#cccccc align=center width="10%"><div class=blacktext> </div></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
$query = "SELECT *, DATE_FORMAT(events.date_start, '%b %e, %Y') AS datef_start, DATE_FORMAT(events.date_end, '%b %e, %Y') AS datef_end FROM events WHERE userID = $userID ORDER BY date_start DESC";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$eventID = $r['ID'];
|
||||
$tag = $r['tag'];
|
||||
$status = $r['status'];
|
||||
$name = $r['name'];
|
||||
$date_start = $r['datef_start'];
|
||||
$date_end = $r['datef_end'];
|
||||
$default_flag = $r['default_flag'];
|
||||
|
||||
if ($eventID == $ID) { echo "<tr bgcolor=#ffaaaa>"; }
|
||||
else { echo "<tr bgcolor=#ffffff>"; }
|
||||
echo "<td><div class=blacktext> <a href=\"events.php?tag=${tag}\">$date_start</a></div></td>";
|
||||
echo "<td><div class=blacktext> $date_end</div></td>";
|
||||
echo "<td><div class=blacktext>$name</div></td>";
|
||||
echo "<td>";
|
||||
//echo "<a href=\"javascript:popup('events_remove.php?tag=${tag}', 'event');\"><img src=\"images/x.gif\" border=0></a> ";
|
||||
|
||||
if ($default_flag == "yes")
|
||||
{
|
||||
echo "<img src=\"images/checkmark.gif\" border=0>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<a href=\"events_set_default.php?tag=${tag}\"><img src=\"images/checkmark_black.gif\" border=0 alt=\"make active\"></a>";
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<tr valign=top>
|
||||
<td bgcolor=#aaaaaa colspan=4><div class=blacktext>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
</table></td></tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
49
site/slowtwitch.com/www/tick/events_add.php
Normal file
49
site/slowtwitch.com/www/tick/events_add.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$tag = 0;
|
||||
if (isset($_POST['tag'])) { $tag = $_POST['tag']; }
|
||||
|
||||
if ($tag != 0)
|
||||
{
|
||||
$query = "UPDATE events SET name = '" . myaddslashes($_POST['name'])
|
||||
. "', date_start = '" . $_POST['year_start'] . "-"
|
||||
. $_POST['month_start'] . "-" . $_POST['day_start']
|
||||
. "', date_end = '" . $_POST['year_end'] . "-"
|
||||
. $_POST['month_end'] . "-" . $_POST['day_end']
|
||||
. "', status = '" . $_POST['status']
|
||||
. "', header_html = '" . myaddslashes($_POST['header_html'])
|
||||
. "', footer_html = '" . myaddslashes($_POST['footer_html'])
|
||||
. "', banner_html = '" . myaddslashes($_POST['banner_html'])
|
||||
. "', tower_html = '" . myaddslashes($_POST['tower_html'])
|
||||
. "', map_key= '" . myaddslashes($_POST['map_key'])
|
||||
. "', title= '" . myaddslashes($_POST['title'])
|
||||
. "', notes = '" . myaddslashes($_POST['notes'])
|
||||
. "' WHERE tag = '$tag'";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
else
|
||||
{
|
||||
$tag = date("Ymdhis") . rand();
|
||||
$query = "INSERT INTO events (tag, userID, name, status, date_start, date_end, header_html, footer_html, banner_html, tower_html, map_key, title, notes) VALUES ('"
|
||||
. $tag . "','"
|
||||
. $_POST['userID'] . "','"
|
||||
. myaddslashes($_POST['name']) . "','"
|
||||
. $_POST['status'] . "','"
|
||||
. $_POST['year_start'] . "-" . $_POST['month_start'] . "-"
|
||||
. $_POST['day_start'] . "','"
|
||||
. $_POST['year_end'] . "-" . $_POST['month_end'] . "-"
|
||||
. $_POST['day_end'] . "','"
|
||||
. myaddslashes($_POST['header_html']) . "','"
|
||||
. myaddslashes($_POST['footer_html']) . "','"
|
||||
. myaddslashes($_POST['banner_html']) . "','"
|
||||
. myaddslashes($_POST['tower_html']) . "','"
|
||||
. myaddslashes($_POST['map_key']) . "','"
|
||||
. myaddslashes($_POST['title']) . "','"
|
||||
. myaddslashes($_POST['notes']) . "')";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
|
||||
header("Location: /tick/events.php");
|
||||
|
||||
?>
|
13
site/slowtwitch.com/www/tick/events_remove.php
Normal file
13
site/slowtwitch.com/www/tick/events_remove.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
if (isset($_GET['tag']))
|
||||
{
|
||||
$tag = $_GET["tag"];
|
||||
$query = "DELETE FROM events WHERE tag = '${tag}' LIMIT 1";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
|
||||
header("Location: /tick/events.php");
|
||||
|
||||
?>
|
16
site/slowtwitch.com/www/tick/events_set_default.php
Normal file
16
site/slowtwitch.com/www/tick/events_set_default.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
if (isset($_GET['tag']))
|
||||
{
|
||||
$tag = $_GET["tag"];
|
||||
$query = "UPDATE events SET default_flag = 'no' WHERE default_flag = 'yes'";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$query = "UPDATE events SET default_flag = 'yes' WHERE tag = '$tag'";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
|
||||
header("Location: /tick/events.php");
|
||||
|
||||
?>
|
114
site/slowtwitch.com/www/tick/global.php
Normal file
114
site/slowtwitch.com/www/tick/global.php
Normal file
@ -0,0 +1,114 @@
|
||||
<?php
|
||||
|
||||
$DOCUMENT_ROOT = '/var/home/slowtwitch/slowtwitch.com/www';
|
||||
$default_font = 'font face="Verdana, Arial, Helvetica, sans-serif"';
|
||||
|
||||
$month_names = array('January','February','March','April','May','June','July',
|
||||
'August','September','October','November','December');
|
||||
|
||||
|
||||
$static_base = "http://www.slowtwitch.com/live/";
|
||||
|
||||
$db = mysql_connect("192.168.1.10", "slowtwitch", "k9volqlAcpq");
|
||||
mysql_select_db("ticker",$db);
|
||||
umask('002');
|
||||
|
||||
function myaddslashes($string)
|
||||
{
|
||||
if (get_magic_quotes_gpc() == 1) { return ($string); }
|
||||
else { return (addslashes($string)); }
|
||||
}
|
||||
|
||||
function staticify($stageID)
|
||||
{
|
||||
$db = mysql_connect("192.168.1.10", "slowtwitch", "k9volqlAcpq");
|
||||
mysql_select_db("ticker",$db);
|
||||
$err = NULL;
|
||||
$url = "http://www.slowtwitch.com";
|
||||
$sourcepage = "$url/tick/viewer.php?ID=$stageID";
|
||||
$query = "SELECT static_url FROM stages WHERE ID = " . $stageID;
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
$r = mysql_fetch_array($result);
|
||||
$static_URL = $r['static_url'];
|
||||
}
|
||||
$tempfilename = "/tmp/temp_viewer.html";
|
||||
$targetfilename = "/var/home/slowtwitch/slowtwitch.com/www/live/".$static_URL.".html";
|
||||
|
||||
$ch = curl_init();
|
||||
|
||||
curl_setopt ($ch, CURLOPT_URL, $sourcepage);
|
||||
curl_setopt ($ch, CURLOPT_HEADER, 0);
|
||||
|
||||
ob_start();
|
||||
|
||||
curl_exec ($ch);
|
||||
curl_close ($ch);
|
||||
$htmldata = ob_get_contents();
|
||||
|
||||
ob_end_clean();
|
||||
|
||||
/**$dynamic_source = fopen($sourcepage, 'r');
|
||||
|
||||
if (!$dynamic_source) {
|
||||
echo "<strong>Unable to load $sourcepage - Static page! Update Failed!</strong>";
|
||||
exit();
|
||||
}
|
||||
|
||||
$htmldata = fread($dynamic_source, 1024*1024);
|
||||
fclose($dynamic_source); **/
|
||||
|
||||
$tempfile = fopen($tempfilename, 'w');
|
||||
if (!$tempfile) {
|
||||
$err = "write_error";
|
||||
}
|
||||
|
||||
fwrite($tempfile, $htmldata);
|
||||
fclose($tempfile);
|
||||
|
||||
copy($tempfilename, $targetfilename);
|
||||
unlink($tempfilename);
|
||||
}
|
||||
|
||||
function staticify_all($eventID)
|
||||
{
|
||||
$db = mysql_connect("192.168.1.10", "slowtwitch", "k9volqlAcpq");
|
||||
mysql_select_db("ticker",$db);
|
||||
$query = "SELECT ID FROM stages WHERE eventID = ${eventID} AND status != 'complete'";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$stageID = $r['ID'];
|
||||
staticify($stageID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function staticify_old($stageID)
|
||||
{
|
||||
//$s = "/usr/bin/wget -O /var/www/html/one/tick/html/stage${stageID}.html 'http://www.onemillionrevolutions.org/tick/viewer.php?ID=${stageID}&link=static'";
|
||||
//exec("$s 2>&1", $updw);
|
||||
//$s = "/usr/bin/wget -O /var/www/html/one/tick/html/stage${stageID}_mobile.html 'http://www.onemillionrevolutions.org/tick/viewer_mobile.php?ID=${stageID}&link=static'";
|
||||
//exec("$s 2>&1", $updw);
|
||||
}
|
||||
|
||||
function staticify_all_old($eventID)
|
||||
{
|
||||
//$db = mysql_connect("localhost", "web", "jalapeno");
|
||||
//mysql_select_db("ticker",$db);
|
||||
//$query = "SELECT ID FROM stages WHERE eventID = ${eventID}";
|
||||
//$result = mysql_query($query, $db);
|
||||
//if ($result)
|
||||
//{
|
||||
//while ($r = mysql_fetch_array($result))
|
||||
//{
|
||||
//$stageID = $r['ID'];
|
||||
//staticify($stageID);
|
||||
//}
|
||||
//}
|
||||
}
|
||||
|
||||
?>
|
23
site/slowtwitch.com/www/tick/login.php
Normal file
23
site/slowtwitch.com/www/tick/login.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
if (isset($_POST['username']) && isset($_POST['password']))
|
||||
{
|
||||
$query = "SELECT ID FROM users WHERE username = '"
|
||||
. $_POST['username'] . "' AND password = password('"
|
||||
. $_POST['password'] . "') LIMIT 1";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
if ($r = mysql_fetch_array($result))
|
||||
{
|
||||
setcookie("userID", $r['ID']);
|
||||
header("Location: /tick/events.php");
|
||||
}
|
||||
else { header("Location: /tick/login.html"); }
|
||||
}
|
||||
else { header("Location: /tick/login.html"); }
|
||||
}
|
||||
else { header("Location: /tick/login.html"); }
|
||||
|
||||
?>
|
268
site/slowtwitch.com/www/tick/maps.php
Normal file
268
site/slowtwitch.com/www/tick/maps.php
Normal file
@ -0,0 +1,268 @@
|
||||
<?require ("global.php");?>
|
||||
<?
|
||||
|
||||
$userID = 0;
|
||||
if (isset($_COOKIE['userID'])) { $userID = $_COOKIE['userID']; }
|
||||
else { header("Location: /tick/login.html"); }
|
||||
|
||||
$ID = 0;
|
||||
$zoom = "4";
|
||||
$map_type = "G_NORMAL_MAP";
|
||||
$center_lat = "39.2";
|
||||
$center_lon = "-96.1419";
|
||||
$current_lat = "";
|
||||
$current_lon = "";
|
||||
$route = "";
|
||||
|
||||
$stageID = 0;
|
||||
if (isset($_COOKIE['stageID'])) { $stageID = $_COOKIE['stageID']; }
|
||||
else { header("Location: /tick/stages.php"); }
|
||||
|
||||
$query = "SELECT events.name as event_name, stages.* FROM events, stages WHERE events.ID = stages.eventID AND stages.ID = $stageID AND events.userID = $userID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$event_name = $r['event_name'];
|
||||
$name = $r['name'];
|
||||
}
|
||||
}
|
||||
mysql_free_result($result);
|
||||
|
||||
$query = "SELECT * FROM maps WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$ID = $r['ID'];
|
||||
$zoom = $r['zoom'];
|
||||
$center_lat = $r['center_lat'];
|
||||
$center_lon = $r['center_lon'];
|
||||
$current_lat = $r['current_lat'];
|
||||
$current_lon = $r['current_lon'];
|
||||
$map_type = $r['map_type'];
|
||||
}
|
||||
}
|
||||
mysql_free_result($result);
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
<title>OneTicker :: Maps</title>
|
||||
<link rel=stylesheet type="text/css" href="tick.css">
|
||||
<style type="text/css">
|
||||
v\:* {
|
||||
behavior:url(#default#VML);
|
||||
}
|
||||
</style>
|
||||
<script src="banner.js" type="text/javascript"></script>
|
||||
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAeMrkW1kxL_t7AGsTQzv_9xTiDdLVRVFb_6ZTq65OUOi0peX-hhSUkw5QRZCCxeeji7sl84l_PgpHCw" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
var map;
|
||||
var markers = new Array();
|
||||
var points = new Array();
|
||||
var whichRadio = 0;
|
||||
var original_zoom = <? echo "$zoom"; ?>;
|
||||
var original_center_lat = "<? echo "$center_lat"; ?>";
|
||||
var original_center_lon = "<? echo "$center_lon"; ?>";
|
||||
var original_current_lat = "<? echo "$current_lat"; ?>";
|
||||
var original_current_lon = "<? echo "$current_lon"; ?>";
|
||||
var currentMarker = new GMarker(new GLatLng(original_current_lat, original_current_lon));
|
||||
|
||||
function loadCoords()
|
||||
{
|
||||
var point;
|
||||
<?
|
||||
$query = "SELECT * FROM maps_coords WHERE stageID = $stageID ORDER BY sequence";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$latitude = $r['latitude'];
|
||||
$longitude = $r['longitude'];
|
||||
echo "point = new GLatLng(\"${latitude}\",\"${longitude}\");";
|
||||
echo "markers.push(new GMarker(point));";
|
||||
echo "points.push(point);";
|
||||
}
|
||||
}
|
||||
echo "document.maps.route.value = makeString();";
|
||||
mysql_free_result($result);
|
||||
?>
|
||||
}
|
||||
|
||||
function makeString()
|
||||
{
|
||||
var result = "";
|
||||
for (var i=0; i < points.length; i++)
|
||||
{
|
||||
result = result + points[i].lat() + "," + points[i].lng() + ":";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function showRoute(showMarkers)
|
||||
{
|
||||
map.clearOverlays();
|
||||
if ((showMarkers == "yes") && (markers.length) > 0)
|
||||
{
|
||||
map.addOverlay(markers[0]);
|
||||
if (markers.length > 1) { map.addOverlay(markers[markers.length-1]); }
|
||||
}
|
||||
if (points.length > 0) { map.addOverlay(new GPolyline(points)); }
|
||||
}
|
||||
|
||||
function removeLastPoint()
|
||||
{
|
||||
if (whichRadio == 1)
|
||||
{
|
||||
if (markers.length > 0) { markers.pop(); }
|
||||
if (points.length > 0) { points.pop(); }
|
||||
showRoute("yes");
|
||||
document.maps.route.value = makeString();
|
||||
}
|
||||
}
|
||||
|
||||
function clearRoute()
|
||||
{
|
||||
if (whichRadio == 1)
|
||||
{
|
||||
markers = new Array();
|
||||
points = new Array();
|
||||
map.clearOverlays();
|
||||
document.maps.route.value = "";
|
||||
}
|
||||
}
|
||||
|
||||
function onLoad()
|
||||
{
|
||||
map = new GMap2(document.getElementById("map"));
|
||||
map.addControl(new GLargeMapControl());
|
||||
map.addControl(new GMapTypeControl());
|
||||
map.setCenter(new GLatLng(original_center_lat, original_center_lon), original_zoom, <? echo "$map_type"; ?>);
|
||||
loadCoords();
|
||||
showRoute("no");
|
||||
map.addOverlay(currentMarker);
|
||||
|
||||
GEvent.addListener(map, 'click', function(marker, point)
|
||||
{
|
||||
if (marker) // someone clicked a marker
|
||||
{
|
||||
if (whichRadio == 0) // in "current" mode
|
||||
{
|
||||
map.removeOverlay(marker);
|
||||
document.maps.current_lat.value = "0.0";
|
||||
document.maps.current_lon.value = "0.0";
|
||||
}
|
||||
}
|
||||
else // someone clicked the map
|
||||
{
|
||||
if (whichRadio == 0) // in "current" mode
|
||||
{
|
||||
map.removeOverlay(currentMarker);
|
||||
currentMarker = new GMarker(point);
|
||||
map.addOverlay(currentMarker);
|
||||
document.maps.current_lat.value = point.lat();
|
||||
document.maps.current_lon.value = point.lng();
|
||||
}
|
||||
else // in "route" mode
|
||||
{
|
||||
markers.push(new GMarker(point));
|
||||
points.push(point);
|
||||
showRoute("yes");
|
||||
document.maps.route.value = makeString();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body bgcolor=#000000 marginheight=4 marginwidth=15 leftmargin=15 topmargin=4 onload="onLoad()" onunload="GUnload()">
|
||||
|
||||
<script type="text/javascript">banner(6);</script>
|
||||
|
||||
<form name="maps" action="maps_update.php" method="post">
|
||||
<input type="hidden" name="ID" value="<? echo "$ID"; ?>">
|
||||
<input type="hidden" name="stageID" value="<? echo "$stageID"; ?>">
|
||||
<input type="hidden" name="route" value="0">
|
||||
<input type="hidden" name="current_lat" value="0">
|
||||
<input type="hidden" name="current_lon" value="0">
|
||||
|
||||
<table border=0 cellspacing=1 cellpadding=1 width="650">
|
||||
<tr><td colspan=3>
|
||||
<div id="map" style="width: 730px; height: 450px; border: 2px solid #aaaaaa"></div>
|
||||
</td></tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=text align=right><b>Zoom:</b> </div></td>
|
||||
<td><div class=text><input class=blacktext type=text name="zoom" value="<? echo "$zoom"; ?>" size=5 maxlength=5>
|
||||
[<a onclick="document.maps.zoom.value = map.getZoom();" href="javascript:void(0);">set</a>]
|
||||
</div></td>
|
||||
<td><div class=text>
|
||||
<input class=blacktext type=radio name="choose" value="current" onclick="if (whichRadio == 1) { showRoute('no'); map.addOverlay(currentMarker); } whichRadio=0;" checked> <b>Mark current position</b>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=text align=right><b>Center latitude:</b> </div></td>
|
||||
<td><div class=text>
|
||||
<input class=blacktext type=text name="center_lat" value="<? echo "$center_lat"; ?>" size=20 maxlength=20>
|
||||
[<a onclick="document.maps.center_lat.value = map.getCenter().lat();" href="javascript:void(0);">set</a>]
|
||||
</div></td>
|
||||
<td rowspan=3><div class=text><input class=blacktext type=radio name="choose" value="route" onclick="if (whichRadio == 0) { showRoute('yes'); } whichRadio=1;"> <b>Edit route</b>
|
||||
<br><ul>
|
||||
<li><a onclick="removeLastPoint();" href="javascript:void(0);">remove last point</a></li>
|
||||
<li><a onclick="clearRoute();" href="javascript:void(0);">clear route</a></li>
|
||||
</ul>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=text align=right><b>Center longitude:</b> </div></td>
|
||||
<td><div class=text>
|
||||
<input class=blacktext type=text name="center_lon" value="<? echo "$center_lon"; ?>" size=20 maxlength=20>
|
||||
[<a onclick="document.maps.center_lon.value = map.getCenter().lng();" href="javascript:void(0);">set</a>]
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=text align=right><b>Initial map type:</b> </div></td>
|
||||
<td><select class=blacktext name="map_type">
|
||||
<option value="G_NORMAL_MAP"<? if ($map_type == 'G_NORMAL_MAP') { echo " selected"; } ?>>normal</option>
|
||||
<option value="G_SATELLITE_MAP"<? if ($map_type == 'G_SATELLITE_MAP') { echo " selected"; } ?>>satellite</option>
|
||||
<option value="G_HYBRID_MAP"<? if ($map_type == 'G_HYBRID_MAP') { echo " selected"; } ?>>hybrid</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan=2 align=center><div class=text>
|
||||
[<a onclick="document.maps.zoom.value = original_zoom; document.maps.center_lat.value = original_center_lat; document.maps.center_lon.value = original_center_lon; map.setCenter(new GLatLng(original_center_lat, original_center_lon), original_zoom);" href="javascript:void(0);">reset map to saved</a>]
|
||||
</div></td>
|
||||
<td><div class=text> </div></td>
|
||||
</tr>
|
||||
|
||||
<tr><td colspan=3><div class=text> </div></td></tr>
|
||||
|
||||
<tr>
|
||||
<td colspan=3 align=center>
|
||||
<input class=boldtext type="submit" name="submit" value="update map for <? echo "$event_name $name"; ?>"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
233
site/slowtwitch.com/www/tick/maps_appearance.php
Normal file
233
site/slowtwitch.com/www/tick/maps_appearance.php
Normal file
@ -0,0 +1,233 @@
|
||||
<?require ("global.php");?>
|
||||
<?
|
||||
|
||||
$userID = 0;
|
||||
if (isset($_COOKIE['userID'])) { $userID = $_COOKIE['userID']; }
|
||||
else { header("Location: /tick/login.html"); }
|
||||
|
||||
$ID = 0;
|
||||
$zoom = "4";
|
||||
$map_type = "G_NORMAL_MAP";
|
||||
$center_lat = "39.2";
|
||||
$center_lon = "-96.1419";
|
||||
$current_lat = "";
|
||||
$current_lon = "";
|
||||
$route = "";
|
||||
|
||||
$stageID = 0;
|
||||
if (isset($_COOKIE['stageID'])) { $stageID = $_COOKIE['stageID']; }
|
||||
else { header("Location: /tick/stages.php"); }
|
||||
|
||||
$query = "SELECT events.name as event_name, stages.* FROM events, stages WHERE events.ID = stages.eventID AND stages.ID = $stageID AND events.userID = $userID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$event_name = $r['event_name'];
|
||||
$name = $r['name'];
|
||||
}
|
||||
}
|
||||
mysql_free_result($result);
|
||||
|
||||
$query = "SELECT * FROM maps WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$ID = $r['ID'];
|
||||
$zoom = $r['zoom'];
|
||||
$center_lat = $r['center_lat'];
|
||||
$center_lon = $r['center_lon'];
|
||||
$current_lat = $r['current_lat'];
|
||||
$current_lon = $r['current_lon'];
|
||||
$map_type = $r['map_type'];
|
||||
}
|
||||
}
|
||||
mysql_free_result($result);
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
<title>OneTicker :: Maps</title>
|
||||
<link rel=stylesheet type="text/css" href="tick.css">
|
||||
<style type="text/css">
|
||||
v\:* {
|
||||
behavior:url(#default#VML);
|
||||
}
|
||||
</style>
|
||||
<script src="banner.js" type="text/javascript"></script>
|
||||
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAeMrkW1kxL_t7AGsTQzv_9xRenuji4aHjAULXgP93zutp7Hv6ShRbebgpZJZpLLF2bt806Iyi896c8g" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
var map;
|
||||
var zoom = <? echo "$zoom"; ?>;
|
||||
var center_lat = "<? echo "$center_lat"; ?>";
|
||||
var center_lon = "<? echo "$center_lon"; ?>";
|
||||
var base = new GIcon();
|
||||
base.image = "/maps/images/pin_red.png";
|
||||
base.shadow = "/images/balloons/shadow.png";
|
||||
base.iconSize = new GSize(12, 20);
|
||||
base.shadowSize = new GSize(22, 20);
|
||||
base.iconAnchor = new GPoint(6, 20);
|
||||
base.infoWindowAnchor = new GPoint(5, 1);
|
||||
|
||||
function onLoad()
|
||||
{
|
||||
var routes, marker;
|
||||
map = new GMap2(document.getElementById("map"));
|
||||
map.addControl(new GLargeMapControl());
|
||||
map.addControl(new GMapTypeControl());
|
||||
map.setCenter(new GLatLng(<? echo "$center_lat"; ?>, <? echo "$center_lon"; ?>), <? echo "$zoom"; ?>, <? echo "$map_type"; ?>);
|
||||
|
||||
GEvent.addListener(map, 'maptypechanged', function()
|
||||
{
|
||||
var name = map.getCurrentMapType().getName();
|
||||
if (name == "Map") { document.appearance.map_type.value = "G_NORMAL_MAP"; }
|
||||
if (name == "Satellite") { document.appearance.map_type.value = "G_SATELLITE_MAP"; }
|
||||
if (name == "Hybrid") { document.appearance.map_type.value = "G_HYBRID_MAP"; }
|
||||
});
|
||||
|
||||
GEvent.addListener(map, 'moveend', function()
|
||||
{
|
||||
var center = map.getCenter();
|
||||
document.appearance.center_lat.value = center.lat();
|
||||
document.appearance.center_lon.value = center.lng();
|
||||
});
|
||||
|
||||
GEvent.addListener(map, 'zoomend', function(oldLevel, newLevel)
|
||||
{
|
||||
document.appearance.zoom.value = newLevel;
|
||||
});
|
||||
|
||||
<?
|
||||
|
||||
$query = "SELECT * FROM segments WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
echo "routes = new Array();";
|
||||
$query2 = "SELECT * FROM maps_coords WHERE segmentID = " . $r['ID'] . " ORDER BY sequence";
|
||||
$result2 = mysql_query($query2, $db);
|
||||
if ($result2)
|
||||
{
|
||||
while ($r2 = mysql_fetch_array($result2))
|
||||
{
|
||||
$lat = $r2['latitude'];
|
||||
$lon = $r2['longitude'];
|
||||
echo "point = new GLatLng(" . $lat . ", " . $lon . ");";
|
||||
echo "routes.push(point);";
|
||||
}
|
||||
mysql_free_result($result2);
|
||||
}
|
||||
echo "if (routes.length > 0) { map.addOverlay(new GPolyline(routes, '" . $r['color'] . "', 5)); }";
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?
|
||||
|
||||
$query = "SELECT * FROM markers WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
echo "base.image = \"/maps/images/" . $r['icon'] . "\";";
|
||||
echo "marker = createMarker(base, new GLatLng(" . $r['latitude'] . ", " . $r['longitude'] . "), '" . $r['ID'] . "', '" . addslashes($r['title']) . "', '" . addslashes($r['text']) . "', '" . $r['image'] . "');";
|
||||
echo "map.addOverlay(marker);";
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
}
|
||||
|
||||
function createMarker(icon, point, markerID, title, text, image)
|
||||
{
|
||||
var marker = new GMarker(point, {icon: icon});
|
||||
var html = '<table cellpadding=1 cellspacing=1 border=0 width=200>';
|
||||
if (image != "")
|
||||
{
|
||||
html = html + '<tr><td align=center><a target=_blank href="/tick/html/black.php?img=/tick/images/gallery/' + image + '"><img height="130" src="/tick/images/gallery/t_' + image + '" border=0></a><br></td></tr>';
|
||||
}
|
||||
html = html + '<tr><td><div class=blacktext><b>' + title + '</b></td></tr>';
|
||||
html = html + '<tr><td><div class=blacktext>' + text + '</div></td></tr>';
|
||||
html = html + '</table>';
|
||||
GEvent.addListener(marker, "click", function() {
|
||||
marker.openInfoWindowHtml(html);
|
||||
});
|
||||
return marker;
|
||||
}
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body bgcolor=#000000 marginheight=4 marginwidth=15 leftmargin=15 topmargin=4 onload="onLoad()" onunload="GUnload()">
|
||||
|
||||
<script type="text/javascript">banner(6);</script>
|
||||
|
||||
<form name="appearance" action="appearance_update.php" method="post">
|
||||
<input type="hidden" name="ID" value="<? echo "$ID"; ?>">
|
||||
<input type="hidden" name="stageID" value="<? echo "$stageID"; ?>">
|
||||
<input type="hidden" name="center_lat" value="<? echo "$center_lat"; ?>">
|
||||
<input type="hidden" name="center_lon" value="<? echo "$center_lon"; ?>">
|
||||
<input type="hidden" name="zoom" value="<? echo "$zoom"; ?>">
|
||||
<input type="hidden" name="map_type" value="<? echo $map_type ?>">
|
||||
|
||||
<table border=1 cellspacing=1 cellpadding=1 width="600">
|
||||
<tr valign=top>
|
||||
<td>
|
||||
<div id="map" style="width: 330px; height: 467px; border: 2px solid #aaaaaa"></div>
|
||||
</td>
|
||||
<td><table cellpadding=2 cellspacing=2 border=0 width=270>
|
||||
<tr>
|
||||
<td colspan=2><div class=text>
|
||||
The map to the left is the same size as the map on the race viewer. It also shows the view that will appear when the viewer initially loads.
|
||||
|
||||
<p>To change what the viewer will initially show, adjust the map and zoom to the view you desire and click the button below.
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align=center>
|
||||
[<a onclick="document.appearance.zoom.value = <? echo "$zoom"; ?>; document.appearance.center_lat.value = <? echo "$center_lat"; ?>; document.appearance.center_lon.value = <? echo "$center_lon"; ?>; map.setCenter(new GLatLng(<? echo "$center_lat"; ?>, <? echo "$center_lon"; ?>), <? echo "$zoom"; ?>, <? echo "$map_type"; ?>);" href="javascript:void(0);">reset map</a>]
|
||||
</div></td>
|
||||
<td align=center>
|
||||
<input class=boldtext type="submit" name="submit" value="save map">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan=2><div class=text>
|
||||
<p> <p>
|
||||
To create courses or add markers to the map, use these links:
|
||||
<p><ul>
|
||||
<li><a href="/tick/maps_courses.php">create/edit courses</a></li>
|
||||
<li><a href="/tick/markers.php">create markers</a></li>
|
||||
<li><a href="/tick/maps_copy.php">copy an existing course</a></li>
|
||||
</ul></div></td>
|
||||
</tr>
|
||||
|
||||
</table></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
168
site/slowtwitch.com/www/tick/maps_copy.php
Normal file
168
site/slowtwitch.com/www/tick/maps_copy.php
Normal file
@ -0,0 +1,168 @@
|
||||
<?require ("global.php");?>
|
||||
<?
|
||||
|
||||
$userID = 0;
|
||||
if (isset($_COOKIE['userID'])) { $userID = $_COOKIE['userID']; }
|
||||
else { header("Location: /tick/login.html"); }
|
||||
|
||||
$stageID = 0;
|
||||
if (isset($_COOKIE['stageID'])) { $stageID = $_COOKIE['stageID']; }
|
||||
else { header("Location: /tick/stages.php"); }
|
||||
|
||||
$query = "SELECT events.name as event_name, stages.* FROM events, stages WHERE events.ID = stages.eventID AND stages.ID = $stageID AND events.userID = $userID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$event_name = $r['event_name'];
|
||||
$name = $r['name'];
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
|
||||
$query = "SELECT * FROM maps WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$ID = $r['ID'];
|
||||
$zoom = $r['zoom'];
|
||||
$center_lat = $r['center_lat'];
|
||||
$center_lon = $r['center_lon'];
|
||||
$map_type = $r['map_type'];
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
<title>OneTicker :: Maps :: Copy</title>
|
||||
<link rel=stylesheet type="text/css" href="tick.css">
|
||||
<style type="text/css">
|
||||
v\:* {
|
||||
behavior:url(#default#VML);
|
||||
}
|
||||
</style>
|
||||
<script src="banner.js" type="text/javascript"></script>
|
||||
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAeMrkW1kxL_t7AGsTQzv_9xRenuji4aHjAULXgP93zutp7Hv6ShRbebgpZJZpLLF2bt806Iyi896c8g" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
var map;
|
||||
var zoom = <? echo "$zoom"; ?>;
|
||||
var center_lat = "<? echo "$center_lat"; ?>";
|
||||
var center_lon = "<? echo "$center_lon"; ?>";
|
||||
|
||||
function onLoad()
|
||||
{
|
||||
var routes;
|
||||
map = new GMap2(document.getElementById("map"));
|
||||
map.addControl(new GLargeMapControl());
|
||||
map.addControl(new GMapTypeControl());
|
||||
map.setCenter(new GLatLng(<? echo "$center_lat"; ?>, <? echo "$center_lon"; ?>), <? echo "$zoom"; ?>, <? echo "$map_type"; ?>);
|
||||
|
||||
<?
|
||||
|
||||
$query = "SELECT * FROM segments WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
echo "routes = new Array();";
|
||||
$query2 = "SELECT * FROM maps_coords WHERE segmentID = " . $r['ID'] . " ORDER BY sequence";
|
||||
$result2 = mysql_query($query2, $db);
|
||||
if ($result2)
|
||||
{
|
||||
while ($r2 = mysql_fetch_array($result2))
|
||||
{
|
||||
$lat = $r2['latitude'];
|
||||
$lon = $r2['longitude'];
|
||||
echo "point = new GLatLng(" . $lat . ", " . $lon . ");";
|
||||
echo "routes.push(point);";
|
||||
}
|
||||
mysql_free_result($result2);
|
||||
}
|
||||
echo "if (routes.length > 0) { map.addOverlay(new GPolyline(routes, '" . $r['color'] . "', 5)); }";
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
}
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body bgcolor=#000000 marginheight=4 marginwidth=15 leftmargin=15 topmargin=4 onload="onLoad()" onunload="GUnload()">
|
||||
|
||||
<script type="text/javascript">banner(6);</script>
|
||||
|
||||
<form name="copy" action="courses_copy.php" method="post">
|
||||
<input type="hidden" name="stageID" value="<? echo "$stageID"; ?>">
|
||||
|
||||
<table border=1 cellspacing=1 cellpadding=1 width="600">
|
||||
<tr valign=top>
|
||||
<td>
|
||||
<div id="map" style="width: 330px; height: 467px; border: 2px solid #aaaaaa"></div>
|
||||
</td>
|
||||
<td><table cellpadding=2 cellspacing=2 border=0 width=270>
|
||||
<tr>
|
||||
<td colspan=2><div class=text>
|
||||
Begin by selecting a course from the pulldown menu below.
|
||||
|
||||
<p>If you would like to copy this course map to this stage, click the button. <b>Make sure you want to do this, as it will erase any courses currently stored for this stage!</b>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align=center><div class=blacktext>
|
||||
<select name=newStageID class=blacktext>
|
||||
|
||||
<?
|
||||
|
||||
$query = "SELECT events.name AS ename, stages.name AS sname, stages.ID FROM events, stages WHERE events.ID = stages.eventID and events.userID = $userID ORDER BY stages.date DESC";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
if ($r['ID'] != $stageID)
|
||||
{
|
||||
echo '<option value="' . $r['ID'] . '">' . $r['ename'] . ' :: ' . $r['sname'] . '</option>';
|
||||
}
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</select>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align=center>
|
||||
<p><input class=boldtext type="submit" name="submit" value="copy course">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
318
site/slowtwitch.com/www/tick/maps_courses.php
Normal file
318
site/slowtwitch.com/www/tick/maps_courses.php
Normal file
@ -0,0 +1,318 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$userID = 0;
|
||||
if (isset($_COOKIE['userID'])) { $userID = $_COOKIE['userID']; }
|
||||
else { header("Location: /tick/login.html"); }
|
||||
|
||||
$ID = 0;
|
||||
$zoom = "4";
|
||||
$map_type = "G_NORMAL_MAP";
|
||||
$center_lat = "39.2";
|
||||
$center_lon = "-96.1419";
|
||||
|
||||
$stageID = 0;
|
||||
if (isset($_COOKIE['stageID'])) { $stageID = $_COOKIE['stageID']; }
|
||||
else { header("Location: /tick/stages.php"); }
|
||||
|
||||
$query = "SELECT events.name as event_name, stages.* FROM events, stages WHERE events.ID = stages.eventID AND stages.ID = $stageID AND events.userID = $userID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$event_name = $r['event_name'];
|
||||
$name = $r['name'];
|
||||
}
|
||||
}
|
||||
mysql_free_result($result);
|
||||
|
||||
$query = "SELECT * FROM maps WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$ID = $r['ID'];
|
||||
$zoom = $r['zoom'];
|
||||
$center_lat = $r['center_lat'];
|
||||
$center_lon = $r['center_lon'];
|
||||
$current_lat = $r['current_lat'];
|
||||
$current_lon = $r['current_lon'];
|
||||
$map_type = $r['map_type'];
|
||||
}
|
||||
}
|
||||
mysql_free_result($result);
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
|
||||
<head>
|
||||
<title>OneTicker :: Maps :: Courses</title>
|
||||
<link rel=stylesheet type="text/css" href="/tick/tick.css">
|
||||
<style type="text/css">
|
||||
v\:* {
|
||||
behavior:url(#default#VML);
|
||||
}
|
||||
</style>
|
||||
<script src="banner.js" type="text/javascript"></script>
|
||||
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAeMrkW1kxL_t7AGsTQzv_9xRenuji4aHjAULXgP93zutp7Hv6ShRbebgpZJZpLLF2bt806Iyi896c8g" type="text/javascript"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
var map;
|
||||
var routes = new Array();
|
||||
var activeSegmentID = 0;
|
||||
var original_zoom = <? echo "$zoom"; ?>;
|
||||
var original_center_lat = "<? echo "$center_lat"; ?>";
|
||||
var original_center_lon = "<? echo "$center_lon"; ?>";
|
||||
|
||||
function onLoad()
|
||||
{
|
||||
var point;
|
||||
map = new GMap2(document.getElementById("map"));
|
||||
map.addControl(new GLargeMapControl());
|
||||
map.addControl(new GMapTypeControl());
|
||||
map.setCenter(new GLatLng(original_center_lat, original_center_lon), original_zoom, <? echo "$map_type"; ?>);
|
||||
|
||||
GEvent.addListener(map, 'click', function(marker, point)
|
||||
{
|
||||
if (marker) // someone clicked a marker
|
||||
{
|
||||
}
|
||||
else // someone clicked the map
|
||||
{
|
||||
if (activeSegmentID != 0)
|
||||
{
|
||||
map.panTo(point);
|
||||
routes[activeSegmentID]['course'].push(point);
|
||||
showRoute(activeSegmentID);
|
||||
makeString();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
<?
|
||||
|
||||
$query = "SELECT * FROM segments WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$segmentID = $r['ID'];
|
||||
echo "activeSegmentID = " . $segmentID . ";";
|
||||
echo "routes[" . $segmentID . "] = new Array();";
|
||||
echo "routes[" . $segmentID . "]['color'] = '". $r['color'] . "';";
|
||||
echo "routes[" . $segmentID . "]['course'] = new Array();";
|
||||
|
||||
$query2 = "SELECT * FROM maps_coords WHERE segmentID = " . $segmentID . " ORDER BY sequence";
|
||||
$result2 = mysql_query($query2, $db);
|
||||
if ($result2)
|
||||
{
|
||||
while ($r2 = mysql_fetch_array($result2))
|
||||
{
|
||||
$lat = $r2['latitude'];
|
||||
$lon = $r2['longitude'];
|
||||
echo "point = new GLatLng(" . $lat . ", " . $lon . ");";
|
||||
echo "routes[" . $segmentID . "]['course'].push(point);";
|
||||
}
|
||||
mysql_free_result($result2);
|
||||
}
|
||||
echo "makeString();";
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
if (typeof document.courses.segmentID != "undefined")
|
||||
{
|
||||
document.courses.segmentID[0].click();
|
||||
}
|
||||
}
|
||||
|
||||
function makeString()
|
||||
{
|
||||
var result = "";
|
||||
var points = routes[activeSegmentID]['course'];
|
||||
for (var i=0; i < points.length; i++)
|
||||
{
|
||||
result = result + points[i].lat() + "," + points[i].lng() + ":";
|
||||
}
|
||||
eval("document.courses.segment" + activeSegmentID + ".value = result");
|
||||
calculate_distance();
|
||||
}
|
||||
|
||||
function showRoute(segmentID)
|
||||
{
|
||||
activeSegmentID = segmentID;
|
||||
map.clearOverlays();
|
||||
if (segmentID > 0)
|
||||
{
|
||||
var num_points = routes[segmentID]['course'].length;
|
||||
if (num_points > 0)
|
||||
{
|
||||
map.addOverlay(new GPolyline(routes[segmentID]['course'], routes[segmentID]['color'], 5));
|
||||
map.addOverlay(new GMarker(routes[segmentID]['course'][0]));
|
||||
map.addOverlay(new GMarker(routes[segmentID]['course'][num_points-1]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function removeLastPoint()
|
||||
{
|
||||
if (routes[activeSegmentID]['course'].length > 0)
|
||||
{
|
||||
routes[activeSegmentID]['course'].pop();
|
||||
}
|
||||
showRoute(activeSegmentID);
|
||||
makeString();
|
||||
}
|
||||
|
||||
function clearRoute()
|
||||
{
|
||||
routes[activeSegmentID]['course'] = new Array();
|
||||
showRoute(activeSegmentID);
|
||||
makeString();
|
||||
}
|
||||
|
||||
function calculate_distance()
|
||||
{
|
||||
var miles = 0.0, kilometers = 0.0;
|
||||
var points = routes[activeSegmentID]['course'];
|
||||
if (points.length < 2)
|
||||
{
|
||||
eval("document.courses.distance_mi" + activeSegmentID + ".value = '0.0'");
|
||||
eval("document.courses.distance_km" + activeSegmentID + ".value = '0.0'");
|
||||
return;
|
||||
}
|
||||
for (var i=0; i < points.length - 1; i++)
|
||||
{
|
||||
kilometers += points[i].distanceFrom(points[i+1]) / 1000;
|
||||
}
|
||||
miles = Math.round(kilometers * 0.621371192 * 100) / 100;
|
||||
kilometers = Math.round(kilometers * 100) / 100;
|
||||
eval("document.courses.distance_mi" + activeSegmentID + ".value = miles");
|
||||
eval("document.courses.distance_km" + activeSegmentID + ".value = kilometers");
|
||||
}
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body bgcolor=#000000 marginheight=4 marginwidth=15 leftmargin=15 topmargin=4 onload="onLoad()" onunload="GUnload()">
|
||||
|
||||
<script type="text/javascript">banner(6);</script>
|
||||
|
||||
<form name="courses" action="/tick/courses_add.php" method="post">
|
||||
<input type="hidden" name="stageID" value="<? echo $stageID ?>">
|
||||
|
||||
<table border=1 cellspacing=2 cellpadding=2>
|
||||
<tr valign=top>
|
||||
|
||||
<td bgcolor="#444444"><table cellpadding=2 cellspacing=2 border=0 width=200>
|
||||
|
||||
<tr>
|
||||
|
||||
<?
|
||||
|
||||
$i = 0;
|
||||
$query = "SELECT * FROM segments WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
if ($i == 0) { echo '<td><div class=text><b>Choose a course:</b><br>'; }
|
||||
|
||||
$file = "dot_red.png";
|
||||
if ($r['color'] == '#ff0202') { $file = "dot_red.png"; }
|
||||
if ($r['color'] == '#fe6702') { $file = "dot_orange.png"; }
|
||||
if ($r['color'] == '#fefe35') { $file = "dot_yellow.png"; }
|
||||
if ($r['color'] == '#02fe35') { $file = "dot_green.png"; }
|
||||
if ($r['color'] == '#3567fe') { $file = "dot_blue.png"; }
|
||||
if ($r['color'] == '#cc00ff') { $file = "dot_purple.png"; }
|
||||
if ($r['color'] == '#ff6699') { $file = "dot_pink.png"; }
|
||||
if ($r['color'] == '#999999') { $file = "dot_grey.png"; }
|
||||
echo '<input type=hidden name=segment' . $r['ID'] . ' value=""';
|
||||
echo "<br><input class=blacktext type=radio name=segmentID onclick=\"javascript:showRoute(" . $r['ID'] . ");\" value=\"" . $r['ID'] . "\"><img height=5 width=40 src=\"/maps/images/" . $file . "\" border=0> " . $r['name'];
|
||||
echo " <a href=\"javascript:popup('courses_remove.php?ID=" . $r['ID'] . "', 'segment');\"><img src=\"/images/x.gif\" border=0></a>";
|
||||
echo '<br><input type=text class=smtext size=7 maxlength=10 name="distance_mi' . $r['ID'] . '" value="' . $r['distance_mi'] . '" readonly> mi';
|
||||
echo ' <input type=text class=smtext size=7 maxlength=10 name="distance_km' . $r['ID'] . '" value="' . $r['distance_km'] . '" readonly> km<br>';
|
||||
$i++;
|
||||
}
|
||||
mysql_free_result($result);
|
||||
if ($i > 0)
|
||||
{
|
||||
echo '<p> <br><input class=blacktext type=radio name=segmentID value=0 onclick="javascript:showRoute(0);">...or create a new course:';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<td><div class=text><b>Create a new course:</b><br>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=text><b>Label: </b>
|
||||
<input class=blacktext type=text name=name size=20 maxlength=40>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=text><b>Color: </b>
|
||||
<select name=color class=blacktext>
|
||||
<option value="#ff0202">red</option>
|
||||
<option value="#fe6702">orange</option>
|
||||
<option value="#fefe35">yellow</option>
|
||||
<option value="#02fe35">green</option>
|
||||
<option value="#3567fe">blue</option>
|
||||
<option value="#cc00ff">purple</option>
|
||||
<option value="#ff6699">pink</option>
|
||||
<option value="#999999">grey</option>
|
||||
</select>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align=center><div class=smtext>
|
||||
<p><input class=blackboldtext type=submit value="save course">
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=text>
|
||||
<p><ul>
|
||||
<li><a onclick="removeLastPoint();" href="javascript:void(0);">remove last point</a></li>
|
||||
<li><a onclick="clearRoute();" href="javascript:void(0);">clear segment</a></li>
|
||||
</ul>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<td><table cellpadding=0 cellspacing=0 border=0>
|
||||
<tr valign=top>
|
||||
<td align=center>
|
||||
<div id="map" style="width: 600px; height: 400px; border: 2px solid #aaaaaa"></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table></td></tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
55
site/slowtwitch.com/www/tick/maps_update.php
Normal file
55
site/slowtwitch.com/www/tick/maps_update.php
Normal file
@ -0,0 +1,55 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$ID = 0;
|
||||
$stageID = 0;
|
||||
if (isset($_POST['ID'])) { $ID = $_POST['ID']; }
|
||||
if (isset($_POST['stageID'])) { $stageID = $_POST['stageID']; }
|
||||
|
||||
if ($ID != 0)
|
||||
{
|
||||
$query = "UPDATE maps SET "
|
||||
. "zoom = '" . $_POST['zoom'] . "', "
|
||||
. "map_type = '" . $_POST['map_type'] . "', "
|
||||
. "current_lat = '" . $_POST['current_lat'] . "', "
|
||||
. "current_lon = '" . $_POST['current_lon'] . "', "
|
||||
. "center_lat = '" . $_POST['center_lat'] . "', "
|
||||
. "center_lon = '" . $_POST['center_lon'] . "' "
|
||||
. "WHERE ID = '$ID'";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
else
|
||||
{
|
||||
$query = "INSERT INTO maps (stageID, zoom, map_type, current_lat, current_lon, center_lat, center_lon) VALUES ("
|
||||
. "'" . $stageID . "',"
|
||||
. "'" . $_POST['zoom'] . "',"
|
||||
. "'" . $_POST['map_type'] . "',"
|
||||
. "'" . $_POST['current_lat'] . "',"
|
||||
. "'" . $_POST['current_lon'] . "',"
|
||||
. "'" . $_POST['center_lat'] . "',"
|
||||
. "'" . $_POST['center_lon'] . "')";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
|
||||
if (isset($_POST['route']) && $_POST['route'] != "")
|
||||
{
|
||||
$query = "DELETE FROM maps_coords WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$coords = split(":", $_POST['route']);
|
||||
for ($i=0; $i < count($coords) - 1; $i++)
|
||||
{
|
||||
list($lat, $lon) = split(",", $coords[$i]);
|
||||
$query = "INSERT INTO maps_coords (stageID, sequence, latitude, longitude) VALUES ("
|
||||
. "'" . $stageID . "',"
|
||||
. "'" . $i . "',"
|
||||
. "'" . $lat . "',"
|
||||
. "'" . $lon . "')";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
}
|
||||
|
||||
staticify($stageID);
|
||||
header("Location: /tick/stages.php");
|
||||
|
||||
?>
|
313
site/slowtwitch.com/www/tick/markers.php
Normal file
313
site/slowtwitch.com/www/tick/markers.php
Normal file
@ -0,0 +1,313 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$userID = 0;
|
||||
if (isset($_COOKIE['userID'])) { $userID = $_COOKIE['userID']; }
|
||||
else { header("Location: /tick/login.html"); }
|
||||
|
||||
$ID = 0;
|
||||
$zoom = "4";
|
||||
$map_type = "G_NORMAL_MAP";
|
||||
$center_lat = "39.2";
|
||||
$center_lon = "-96.1419";
|
||||
|
||||
$stageID = 0;
|
||||
if (isset($_COOKIE['stageID'])) { $stageID = $_COOKIE['stageID']; }
|
||||
else { header("Location: /tick/stages.php"); }
|
||||
|
||||
$query = "SELECT events.name as event_name, stages.* FROM events, stages WHERE events.ID = stages.eventID AND stages.ID = $stageID AND events.userID = $userID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$event_name = $r['event_name'];
|
||||
$name = $r['name'];
|
||||
}
|
||||
}
|
||||
mysql_free_result($result);
|
||||
|
||||
$query = "SELECT * FROM maps WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$ID = $r['ID'];
|
||||
$zoom = $r['zoom'];
|
||||
$center_lat = $r['center_lat'];
|
||||
$center_lon = $r['center_lon'];
|
||||
$current_lat = $r['current_lat'];
|
||||
$current_lon = $r['current_lon'];
|
||||
$map_type = $r['map_type'];
|
||||
}
|
||||
}
|
||||
mysql_free_result($result);
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
|
||||
<head>
|
||||
<title>OneTicker :: Maps :: Markers</title>
|
||||
<link rel=stylesheet type="text/css" href="tick.css">
|
||||
<style type="text/css">
|
||||
v\:* {
|
||||
behavior:url(#default#VML);
|
||||
}
|
||||
</style>
|
||||
<script src="banner.js" type="text/javascript"></script>
|
||||
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAeMrkW1kxL_t7AGsTQzv_9xRenuji4aHjAULXgP93zutp7Hv6ShRbebgpZJZpLLF2bt806Iyi896c8g" type="text/javascript"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
var map, currentMarker;
|
||||
var geocoder = new GClientGeocoder();
|
||||
var zoom = <? echo "$zoom"; ?>;
|
||||
var center_lat = "<? echo "$center_lat"; ?>";
|
||||
var center_lon = "<? echo "$center_lon"; ?>";
|
||||
var pins = new Array();
|
||||
pins[0] = 'pin_red.png';
|
||||
pins[1] = 'pin_orange.png';
|
||||
pins[2] = 'pin_yellow.png';
|
||||
pins[3] = 'pin_green.png';
|
||||
pins[4] = 'pin_blue.png';
|
||||
pins[5] = 'pin_purple.png';
|
||||
pins[6] = 'pin_pink.png';
|
||||
pins[7] = 'pin_grey.png';
|
||||
|
||||
var base = new GIcon();
|
||||
base.image = "/maps/images/" + pins[0];
|
||||
base.shadow = "/images/balloons/shadow.png";
|
||||
base.iconSize = new GSize(12, 20);
|
||||
base.shadowSize = new GSize(22, 20);
|
||||
base.iconAnchor = new GPoint(6, 20);
|
||||
base.infoWindowAnchor = new GPoint(5, 1);
|
||||
|
||||
function onLoad()
|
||||
{
|
||||
var marker, routes;
|
||||
map = new GMap2(document.getElementById("map"));
|
||||
map.addControl(new GLargeMapControl());
|
||||
map.addControl(new GMapTypeControl());
|
||||
map.setCenter(new GLatLng(center_lat, center_lon), zoom, <? echo "$map_type"; ?>);
|
||||
currentMarker = new GMarker(new GLatLng(0.0, 0.0), {icon: base});
|
||||
map.addOverlay(currentMarker);
|
||||
|
||||
GEvent.addListener(map, 'click', function(marker, point)
|
||||
{
|
||||
if (marker) // someone clicked a marker
|
||||
{
|
||||
}
|
||||
else // someone clicked the map
|
||||
{
|
||||
currentMarker.setPoint(point);
|
||||
document.markers.latitude.value = point.lat();
|
||||
document.markers.longitude.value = point.lng();
|
||||
}
|
||||
});
|
||||
|
||||
<?
|
||||
|
||||
$query = "SELECT * FROM segments WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
echo "routes = new Array();";
|
||||
$query2 = "SELECT * FROM maps_coords WHERE segmentID = " . $r['ID'] . " ORDER BY sequence";
|
||||
$result2 = mysql_query($query2, $db);
|
||||
if ($result2)
|
||||
{
|
||||
while ($r2 = mysql_fetch_array($result2))
|
||||
{
|
||||
$lat = $r2['latitude'];
|
||||
$lon = $r2['longitude'];
|
||||
echo "point = new GLatLng(" . $lat . ", " . $lon . ");";
|
||||
echo "routes.push(point);";
|
||||
}
|
||||
mysql_free_result($result2);
|
||||
}
|
||||
echo "if (routes.length > 0) { map.addOverlay(new GPolyline(routes, '" . $r['color'] . "', 5)); }";
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?
|
||||
|
||||
$query = "SELECT * FROM markers WHERE stageID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
echo "base.image = \"/maps/images/" . $r['icon'] . "\";";
|
||||
echo "marker = createMarker(base, new GLatLng(" . $r['latitude'] . ", " . $r['longitude'] . "), '" . $r['ID'] . "', '" . addslashes($r['title']) . "', '" . addslashes($r['text']) . "', '" . $r['image'] . "');";
|
||||
echo "map.addOverlay(marker);";
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
|
||||
?>
|
||||
document.markers.latitude.value = "<? echo "$center_lat"; ?>";
|
||||
document.markers.longitude.value = "<? echo "$center_lon"; ?>";
|
||||
document.markers.icon[0].click();
|
||||
}
|
||||
|
||||
function showAddress(address)
|
||||
{
|
||||
geocoder.getLatLng(address, function(point)
|
||||
{
|
||||
if (!point) { alert("Sorry! I couldn't find that address."); }
|
||||
else
|
||||
{
|
||||
map.panTo(point);
|
||||
currentMarker.setPoint(point);
|
||||
document.markers.latitude.value = point.lat();
|
||||
document.markers.longitude.value = point.lng();
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function changePin(which)
|
||||
{
|
||||
currentMarker.getIcon().image = "/maps/images/" + pins[which];
|
||||
map.removeOverlay(currentMarker);
|
||||
map.addOverlay(currentMarker);
|
||||
}
|
||||
|
||||
function whichNewPin()
|
||||
{
|
||||
for (var i=0; i < document.markers.icon.length; i++)
|
||||
{
|
||||
if (document.markers.icon[i].checked == true)
|
||||
return i;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
function createMarker(icon, point, markerID, title, text, image)
|
||||
{
|
||||
var marker = new GMarker(point, {icon: icon});
|
||||
var html = '<table cellpadding=1 cellspacing=1 border=0 width=200>';
|
||||
if (image != "")
|
||||
{
|
||||
html = html + '<tr><td align=center><a target=_blank href="/tick/html/black.php?img=/tick/images/gallery/' + image + '"><img height="130" src="/tick/images/gallery/t_' + image + '" border=0></a><br></td></tr>';
|
||||
}
|
||||
html = html + '<tr><td><div class=blacktext><b>' + title + '</b></td></tr>';
|
||||
html = html + '<tr><td><div class=blacktext>' + text + '</div></td></tr>';
|
||||
html = html + "<tr><td><div class=blacktext><a href=\"javascript:popup('markers_remove.php?ID=" + markerID + "', 'marker');\"><img src=\"/images/x.gif\" border=0></a>remove this marker</div></td></tr>";
|
||||
html = html + '</table>';
|
||||
GEvent.addListener(marker, "click", function() {
|
||||
marker.openInfoWindowHtml(html);
|
||||
});
|
||||
return marker;
|
||||
}
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body bgcolor=#000000 marginheight=4 marginwidth=15 leftmargin=15 topmargin=4 onload="onLoad()" onunload="GUnload()">
|
||||
|
||||
<script type="text/javascript">banner(6);</script>
|
||||
|
||||
<form name="markers" enctype="multipart/form-data" action="markers_add.php" method="post">
|
||||
<input type="hidden" name="stageID" value="<? echo $stageID ?>">
|
||||
|
||||
<table border=1 cellspacing=1 cellpadding=1>
|
||||
<tr valign=top>
|
||||
|
||||
<td bgcolor="#444444"><table cellpadding=2 cellspacing=2 border=0 width="180">
|
||||
<tr>
|
||||
<td colspan=2><div class=smtext>
|
||||
<b>Title</b>
|
||||
<br><input class=blacktext type=text size=35 maxlength=120 name=title value="<? echo "$title"; ?>">
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan=2><div class=smtext>
|
||||
<b>Image</b>
|
||||
<br><input class=blacktext type=file name="pic" size=30>
|
||||
<p><ul class=text>
|
||||
<li>image will be resized automatically</li>
|
||||
<li>uploaded filesize limit is 800K</li>
|
||||
</ul>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan=2><div class=smtext>
|
||||
<b>Text</b>
|
||||
<br><textarea class=blacktext name="text" cols=35 rows=4 wrap="virtual"><? echo "$text"; ?></textarea>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=smtext>
|
||||
<b>Latitude</b>
|
||||
<br><input class=blacktext type=text size=16 maxlength=20 name=latitude value="<? echo "$latitude"; ?>" readonly>
|
||||
</div></td>
|
||||
<td><div class=smtext>
|
||||
<b>Longitude</b>
|
||||
<br><input class=blacktext type=text size=16 maxlength=20 name=longitude value="<? echo "$longitude"; ?>" readonly>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan=2><table cellpadding=2 cellspacing=2 border=0 width="100%">
|
||||
<tr>
|
||||
<td><input type=radio name=icon value="pin_red.png" checked onclick="javascript:changePin(0);"><img src="/maps/images/pin_red.png" border=0></td>
|
||||
<td><input type=radio name=icon value="pin_orange.png" onclick="javascript:changePin(1);"><img src="/maps/images/pin_orange.png" border=0></td>
|
||||
<td><input type=radio name=icon value="pin_yellow.png" onclick="javascript:changePin(2);"><img src="/maps/images/pin_yellow.png" border=0></td>
|
||||
<td><input type=radio name=icon value="pin_green.png" onclick="javascript:changePin(3);"><img src="/maps/images/pin_green.png" border=0></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type=radio name=icon value="pin_blue.png" onclick="javascript:changePin(4);"><img src="/maps/images/pin_blue.png" border=0></td>
|
||||
<td><input type=radio name=icon value="pin_purple.png" onclick="javascript:changePin(5);"><img src="/maps/images/pin_purple.png" border=0></td>
|
||||
<td><input type=radio name=icon value="pin_pink.png" onclick="javascript:changePin(6);"><img src="/maps/images/pin_pink.png" border=0></td>
|
||||
<td><input type=radio name=icon value="pin_grey.png" onclick="javascript:changePin(7);"><img src="/maps/images/pin_grey.png" border=0></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan=2 align=center><div class=smtext>
|
||||
<p><input class=blackboldtext type=submit value="add marker">
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<td><table cellpadding=1 cellspacing=0 border=0 width="100%">
|
||||
<tr valign=top>
|
||||
<td align=center>
|
||||
<div id="map" style="width: 600px; height: 400px; border: 2px solid #aaaaaa"></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align=center><div class=text>
|
||||
<b>Move marker to address:</b>
|
||||
<input class=blacktext type=text name=address size=30 maxlength=150>
|
||||
<a href="javascript:void(0);" onclick="javascript:showAddress(document.markers.address.value); return false">GO</a>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
</table></td></tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
55
site/slowtwitch.com/www/tick/markers_add.php
Normal file
55
site/slowtwitch.com/www/tick/markers_add.php
Normal file
@ -0,0 +1,55 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$stamp = date("Ymdhis");
|
||||
|
||||
$filename = "";
|
||||
$path = "";
|
||||
$complete = "";
|
||||
|
||||
if (isset($_FILES['pic']['name']) && $_FILES['pic']['name'] != "")
|
||||
{
|
||||
$path = "$DOCUMENT_ROOT/tick/images/gallery/";
|
||||
$filename = $stamp . preg_replace('/\s+/', '', basename($_FILES['pic']['name']));
|
||||
$complete = $path . $filename;
|
||||
move_uploaded_file($_FILES['pic']['tmp_name'], $complete);
|
||||
chmod($complete, 0755);
|
||||
|
||||
$s = "/var/www/html/one/tick/scripts/pics.pl $filename --- 640";
|
||||
exec("$s 2>&1", $updw);
|
||||
|
||||
$s = "/var/www/html/one/tick/scripts/pics.pl $filename t_ 130";
|
||||
exec("$s 2>&1", $updw);
|
||||
}
|
||||
|
||||
$stageID = 0;
|
||||
if (isset($_POST['stageID'])) { $stageID = $_POST['stageID']; }
|
||||
|
||||
if ($stageID != 0)
|
||||
{
|
||||
$query = "INSERT INTO markers (stageID, icon, title, text, image, latitude, longitude) VALUES ("
|
||||
. "'" . $stageID . "', "
|
||||
. "'" . $_POST['icon'] . "', "
|
||||
. "'" . myaddslashes($_POST['title']) . "', "
|
||||
. "'" . myaddslashes($_POST['text']) . "', "
|
||||
. "'" . $filename . "', "
|
||||
. "'" . $_POST['latitude'] . "', "
|
||||
. "'" . $_POST['longitude'] . "')";
|
||||
$result = mysql_query($query, $db) or mysql_error($result);
|
||||
}
|
||||
|
||||
if ($filename != "")
|
||||
{
|
||||
$big = "http://www.onemillionrevolutions.org/tick/images/gallery/${filename}\n";
|
||||
$small = "http://www.onemillionrevolutions.org/tick/images/gallery/t_${filename}\n";
|
||||
$file = "/var/www/html/one/tick/images/gallery/pic${ID}.txt";
|
||||
if (!$file_handle = fopen($file,"a")) { echo "Cannot open file"; }
|
||||
if (!fwrite($file_handle, $big)) { echo "Cannot write to file"; }
|
||||
if (!fwrite($file_handle, $small)) { echo "Cannot write to file"; }
|
||||
fclose($file_handle);
|
||||
}
|
||||
|
||||
staticify($_POST['stageID']);
|
||||
header("Location: /tick/markers.php");
|
||||
|
||||
?>
|
30
site/slowtwitch.com/www/tick/markers_remove.php
Normal file
30
site/slowtwitch.com/www/tick/markers_remove.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
if (isset($_GET['ID']))
|
||||
{
|
||||
$ID = $_GET["ID"];
|
||||
|
||||
$query = "SELECT image FROM markers WHERE ID = $ID LIMIT 1";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
if ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$image = $r['image'];
|
||||
if ($image != '')
|
||||
{
|
||||
unlink("$DOCUMENT_ROOT/tick/images/gallery/${image}");
|
||||
unlink("$DOCUMENT_ROOT/tick/images/gallery/t_${image}");
|
||||
}
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
|
||||
$query = "DELETE FROM markers WHERE ID = $ID LIMIT 1";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
|
||||
header("Location: /tick/markers.php");
|
||||
|
||||
?>
|
152
site/slowtwitch.com/www/tick/pics.php
Normal file
152
site/slowtwitch.com/www/tick/pics.php
Normal file
@ -0,0 +1,152 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$userID = 0;
|
||||
if (isset($_COOKIE['userID'])) { $userID = $_COOKIE['userID']; }
|
||||
else { header("Location: /tick/login.html"); }
|
||||
|
||||
$stageID = 0;
|
||||
if (isset($_COOKIE['stageID'])) { $stageID = $_COOKIE['stageID']; }
|
||||
else { header("Location: /tick/stages.php"); }
|
||||
|
||||
$query = "SELECT events.name as event_name, stages.*, DATE_FORMAT(stages.date, '%b %e, %Y') AS datef FROM events, stages WHERE events.ID = stages.eventID AND stages.ID = $stageID AND events.userID = $userID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$event_name = $r['event_name'];
|
||||
$stage_string = "[${r['datef']}] ${event_name} ${r['name']}";
|
||||
}
|
||||
}
|
||||
mysql_free_result($result);
|
||||
|
||||
$ID = 0;
|
||||
$filename = '';
|
||||
$caption = '';
|
||||
$courtesy_of = '';
|
||||
$default_flag = '';
|
||||
if (isset($_GET['ID']))
|
||||
{
|
||||
$ID = $_GET["ID"];
|
||||
$query = "SELECT * FROM pics WHERE ID = $ID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$filename = $r['filename'];
|
||||
$caption = $r['caption'];
|
||||
$courtesy_of = $r['courtesy_of'];
|
||||
$default_flag = $r['default_flag'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>OneTicker :: Pics</title>
|
||||
<link rel=stylesheet type="text/css" href="tick.css">
|
||||
<script src="banner.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body bgcolor=#000000 marginheight=4 marginwidth=15 leftmargin=15 topmargin=4>
|
||||
|
||||
<script type="text/javascript">banner(4);</script>
|
||||
|
||||
<form name="pics" enctype="multipart/form-data" action="pics_add.php" method="post">
|
||||
<input type="hidden" name="ID" value="<? echo $ID ?>">
|
||||
<input type="hidden" name="stageID" value="<? echo $stageID ?>">
|
||||
|
||||
<table border=0 cellspacing=1 cellpadding=1 width="480">
|
||||
<tr>
|
||||
<td><div class=text><b>Stage:</b></div></td>
|
||||
<td><div class=text><? echo "$stage_string"; ?></div></td>
|
||||
</tr>
|
||||
|
||||
<tr valign=top>
|
||||
<td><div class=text><b>Picture:</b></div></td>
|
||||
<td><div class=text>
|
||||
<input class=blacktext type=file name="pic" size=40>
|
||||
<ul>
|
||||
<li>image will be resized appropriately</li>
|
||||
<li>leave blank to keep existing image</li>
|
||||
<li>DO NOT put non-alphanumeric characters in image filenames</li>
|
||||
<li>don't forget to activate images you want visible</li>
|
||||
</ul>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=text><b>Caption:</b></div></td>
|
||||
<td><input class=blacktext type=text name="caption" value="<? echo "$caption"; ?>" size=50 maxlength=175></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=text><b>Credit:</b></div></td>
|
||||
<td><input class=blacktext type=text name="courtesy_of" value="<? echo "$courtesy_of"; ?>" size=50 maxlength=175></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" align=center>
|
||||
<input class=boldtext type="submit" name="submit" value="add/update picture"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<p><table border=0 cellpadding=3 cellspacing=3 bgcolor="#000000" width="640">
|
||||
<tr valign=top>
|
||||
<?php
|
||||
|
||||
$count = 1;
|
||||
$query = "SELECT * FROM pics WHERE stageID = $stageID ORDER BY default_flag";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$picID = $r['ID'];
|
||||
$caption = $r['caption'];
|
||||
$courtesy_of = $r['courtesy_of'];
|
||||
$fullname = $r['fullname'];
|
||||
$default_flag = $r['default_flag'];
|
||||
$bgcolor = "#888888";
|
||||
|
||||
if ($default_flag == "yes" ) { $bgcolor = "#ffffff"; }
|
||||
if ($picID == $ID) { $bgcolor = "#ff6666"; }
|
||||
|
||||
echo '<td align=center width="33%"><div class=text>';
|
||||
echo "<table cellpadding=2 cellspacing=0 border=0 bgcolor=${bgcolor}>";
|
||||
echo "<tr><td align=center>";
|
||||
echo "<a target=_blank href=\"/tick/html/black.php?img=/tick/images/gallery/${fullname}\"><img src=\"/tick/images/gallery/t_${fullname}\" border=0></a></td></tr></table>";
|
||||
if ($caption != "") { echo "<br>$caption"; }
|
||||
if ($courtesy_of != "") { echo "<br><i>by $courtesy_of</i>"; }
|
||||
echo "<br><a href=\"javascript:popup('pics_remove.php?ID=${picID}', 'picture');\"><img src=\"images/x.gif\" border=0></a> ";
|
||||
echo "[<a href=\"pics.php?ID=${picID}\">edit</a>] ";
|
||||
|
||||
if ($default_flag == "yes")
|
||||
{
|
||||
echo "[<a href=\"pics_set_default.php?stageID=${stageID}&become=no&ID=${picID}\">deactivate</a>]";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "[<a href=\"pics_set_default.php?stageID=${stageID}&become=yes&ID=${picID}\">activate</a>]";
|
||||
}
|
||||
|
||||
echo "</div></td>";
|
||||
if ($count % 3 == 0) { echo "</tr><tr valign=top>"; }
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
57
site/slowtwitch.com/www/tick/pics_add.php
Normal file
57
site/slowtwitch.com/www/tick/pics_add.php
Normal file
@ -0,0 +1,57 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$ID = 0;
|
||||
list($msec, $sec) = explode(" ", microtime());
|
||||
$stamp = date("Ymdhis") . substr($msec, 4);
|
||||
|
||||
$filename = "";
|
||||
$path = "";
|
||||
$complete = "";
|
||||
$url = "";
|
||||
$sql = "";
|
||||
|
||||
if (isset($_POST['ID'])) { $ID = $_POST['ID']; }
|
||||
if (isset($_FILES['pic']['name']) && $_FILES['pic']['name'] != "")
|
||||
{
|
||||
$path = "$DOCUMENT_ROOT/tick/images/gallery/";
|
||||
$pieces = preg_split('/\./', basename($_FILES['pic']['name']));
|
||||
$filename = $stamp . "." . $pieces[1];
|
||||
$complete = $path . $filename;
|
||||
move_uploaded_file($_FILES['pic']['tmp_name'], $complete);
|
||||
chmod($complete, 0755);
|
||||
|
||||
$s = "/var/home/slowtwitch/slowtwitch.com/www/tick/scripts/pics.pl $filename --- 640";
|
||||
exec("$s 2>&1", $updw);
|
||||
|
||||
$s = "/var/home/slowtwitch/slowtwitch.com/www/tick/scripts/pics.pl $filename t_ 130";
|
||||
exec("$s 2>&1", $updw);
|
||||
|
||||
$url = "/tick/images/gallery/";
|
||||
$sql = "fullname = '" . $filename . "', fullurl = '" . $url . "', ";
|
||||
}
|
||||
|
||||
if ($ID != 0)
|
||||
{
|
||||
$query = "UPDATE pics SET "
|
||||
. $sql
|
||||
. "caption = '" . myaddslashes($_POST['caption']) . "',"
|
||||
. "courtesy_of = '" . myaddslashes($_POST['courtesy_of']) . "' "
|
||||
. "WHERE ID = '$ID'";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
else
|
||||
{
|
||||
$query = "INSERT INTO pics (stageID,fullname,fullurl,caption,courtesy_of,default_flag) VALUES ('"
|
||||
. $_POST['stageID'] . "','"
|
||||
. $filename . "','"
|
||||
. $url . "','"
|
||||
. myaddslashes($_POST['caption']) . "','"
|
||||
. myaddslashes($_POST['courtesy_of']) . "','"
|
||||
. "no')";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
|
||||
header("Location: /tick/pics.php");
|
||||
|
||||
?>
|
28
site/slowtwitch.com/www/tick/pics_remove.php
Normal file
28
site/slowtwitch.com/www/tick/pics_remove.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
if (isset($_GET['ID']))
|
||||
{
|
||||
$ID = $_GET["ID"];
|
||||
|
||||
$query = "SELECT fullname, stageID FROM pics WHERE ID = $ID LIMIT 1";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
if ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$fullname = $r['fullname'];
|
||||
$stageID = $r['stageID'];
|
||||
unlink("$DOCUMENT_ROOT/tick/images/gallery/${fullname}");
|
||||
unlink("$DOCUMENT_ROOT/tick/images/gallery/t_${fullname}");
|
||||
}
|
||||
}
|
||||
|
||||
$query = "DELETE FROM pics WHERE ID = $ID LIMIT 1";
|
||||
$result = mysql_query($query, $db);
|
||||
staticify($stageID);
|
||||
}
|
||||
|
||||
header("Location: /tick/pics.php");
|
||||
|
||||
?>
|
16
site/slowtwitch.com/www/tick/pics_set_default.php
Normal file
16
site/slowtwitch.com/www/tick/pics_set_default.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
if (isset($_GET['ID']) && isset($_GET['become']))
|
||||
{
|
||||
$ID = $_GET["ID"];
|
||||
$become = $_GET["become"];
|
||||
$query = "UPDATE pics SET default_flag = '${become}' WHERE ID = $ID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
staticify($_GET['stageID']);
|
||||
}
|
||||
|
||||
header("Location: /tick/pics.php");
|
||||
|
||||
?>
|
79
site/slowtwitch.com/www/tick/popup.php
Normal file
79
site/slowtwitch.com/www/tick/popup.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?require ("global.php");?>
|
||||
<?
|
||||
|
||||
$userID = 0;
|
||||
if (isset($_COOKIE['userID'])) { $userID = $_COOKIE['userID']; }
|
||||
else { header("Location: /tick/login.html"); }
|
||||
|
||||
$stageID = 0;
|
||||
if (isset($_COOKIE['stageID'])) { $stageID = $_COOKIE['stageID']; }
|
||||
else { header("Location: /tick/stages.php"); }
|
||||
|
||||
$query = "SELECT events.name as event_name, stages.* FROM events, stages WHERE events.ID = stages.eventID AND stages.ID = $stageID AND events.userID = $userID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$event_name = $r['event_name'];
|
||||
$name = $r['name'];
|
||||
$popup_link = $r['popup_link'];
|
||||
$popup_text = $r['popup_text'];
|
||||
$popup_position = $r['popup_position'];
|
||||
}
|
||||
}
|
||||
mysql_free_result($result);
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>OneTicker :: Popup</title>
|
||||
<link rel=stylesheet type="text/css" href="tick.css">
|
||||
<script src="banner.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body bgcolor=#000000 marginheight=4 marginwidth=15 leftmargin=15 topmargin=4>
|
||||
|
||||
<script type="text/javascript">banner(8);</script>
|
||||
|
||||
<form name="popup" action="popup_update.php" method="post">
|
||||
<input type="hidden" name="stageID" value="<? echo $stageID ?>">
|
||||
|
||||
<table border=0 cellspacing=2 cellpadding=2 width=640>
|
||||
<tr><td><div class=text> </div></td></tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td><div class=text><span class=smtext>link name</span>
|
||||
<br><input class=blacktext type=text name="popup_link" value="<? echo $popup_link; ?>" size=50 maxlength=300></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td ><div class=blacktext><span class=smtext>popup window contents (HTML)</span>
|
||||
<br><textarea class=blacktext name="popup_text" cols=66 rows=12 wrap="virtual"><? echo $popup_text; ?></textarea>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=text><span class=smtext>position</span>
|
||||
<br><select name="popup_position" class=blacktext>
|
||||
<option value="notes"<? if ($popup_position == 'notes') { echo " selected"; } ?>>end of notes</option>
|
||||
<option value="stages"<? if ($popup_position == 'stages') { echo " selected"; } ?>>stages section</option>
|
||||
</select>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr><td colspan=2><div class=text> </div></td></tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" align=center>
|
||||
<input class=boldtext type="submit" name="submit" value="update popup for <? echo "$event_name $name"; ?>"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
23
site/slowtwitch.com/www/tick/popup_update.php
Normal file
23
site/slowtwitch.com/www/tick/popup_update.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$stageID = 0;
|
||||
if (isset($_POST['stageID']))
|
||||
{
|
||||
$stageID = $_POST['stageID'];
|
||||
$query = "UPDATE stages SET "
|
||||
. "popup_link = '" . myaddslashes($_POST['popup_link']) . "', "
|
||||
. "popup_text = '" . myaddslashes($_POST['popup_text']) . "', "
|
||||
. "popup_position = '" . myaddslashes($_POST['popup_position']) . "' "
|
||||
. "WHERE ID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$s = "/usr/bin/wget -O /var/www/html/one/tick/html/popwindow${stageID}.html 'http://www.onemillionrevolutions.org/tick/popwindow.php?ID=${stageID}'";
|
||||
exec("$s 2>&1", $updw);
|
||||
|
||||
staticify($_POST['stageID']);
|
||||
}
|
||||
|
||||
header("Location: /tick/ticks.php");
|
||||
|
||||
?>
|
60
site/slowtwitch.com/www/tick/popwindow.php
Normal file
60
site/slowtwitch.com/www/tick/popwindow.php
Normal file
@ -0,0 +1,60 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$stageID = 0;
|
||||
$popup_link = "";
|
||||
$popup_text = "";
|
||||
|
||||
if (isset($_GET['ID']))
|
||||
{
|
||||
$stageID = $_GET['ID'];
|
||||
|
||||
$query = "SELECT popup_link, popup_text FROM stages WHERE ID = $stageID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$popup_link = $r['popup_link'];
|
||||
$popup_text = $r['popup_text'];
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>OneTicker :: <? echo "$popup_link"; ?></title>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
|
||||
.text
|
||||
{
|
||||
font-family : Verdana, Arial, Geneva, Helvetica;
|
||||
font-size : 11px;
|
||||
color : #000000;
|
||||
line-height : 120%;
|
||||
}
|
||||
|
||||
-->
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body marginheight=4 marginwidth=15 leftmargin=15 topmargin=4>
|
||||
|
||||
<table cellpadding=1 cellspacing=1 border=0 width="280" align=center>
|
||||
|
||||
<tr>
|
||||
<td><div class=text>
|
||||
<? echo "$popup_text"; ?>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
30
site/slowtwitch.com/www/tick/scripts/pics.pl
Executable file
30
site/slowtwitch.com/www/tick/scripts/pics.pl
Executable file
@ -0,0 +1,30 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use Image::Magick;
|
||||
|
||||
my ($image);
|
||||
my $filename = shift || exit(0);
|
||||
my $append = shift || "";
|
||||
my $max_height = shift || 200;
|
||||
|
||||
if ($append eq "---") { $append = ""; }
|
||||
|
||||
my $base = '/var/home/slowtwitch/slowtwitch.com/www/tick/images/gallery';
|
||||
my $new_filename = "${base}/${append}${filename}";
|
||||
|
||||
$image = Image::Magick->new;
|
||||
$image->Read("${base}/${filename}");
|
||||
|
||||
$width = $image->Get('columns');
|
||||
$height = $image->Get('rows');
|
||||
|
||||
if (($width > 900) || ($height > $max_height))
|
||||
{
|
||||
$image->Resize(geometry=>"${width}x${max_height}");
|
||||
# $image->Scale(geometry=>"${longest_side}x${longest_side}");
|
||||
# $image->Border(geometry=>'5x5');
|
||||
$image->Write(filename=>"${new_filename}", quality=>'75');
|
||||
}
|
||||
|
||||
undef $image;
|
||||
exit(0);
|
30
site/slowtwitch.com/www/tick/scripts/pics.pl~
Executable file
30
site/slowtwitch.com/www/tick/scripts/pics.pl~
Executable file
@ -0,0 +1,30 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use Image::Magick;
|
||||
|
||||
my ($image);
|
||||
my $filename = shift || exit(0);
|
||||
my $append = shift || "";
|
||||
my $max_height = shift || 200;
|
||||
|
||||
if ($append eq "---") { $append = ""; }
|
||||
|
||||
my $base = '/var/www/html/one/tick/images/gallery';
|
||||
my $new_filename = "${base}/${append}${filename}";
|
||||
|
||||
$image = Image::Magick->new;
|
||||
$image->Read("${base}/${filename}");
|
||||
|
||||
$width = $image->Get('columns');
|
||||
$height = $image->Get('rows');
|
||||
|
||||
if (($width > 900) || ($height > $max_height))
|
||||
{
|
||||
$image->Resize(geometry=>"${width}x${max_height}");
|
||||
# $image->Scale(geometry=>"${longest_side}x${longest_side}");
|
||||
# $image->Border(geometry=>'5x5');
|
||||
$image->Write(filename=>"${new_filename}", quality=>'75');
|
||||
}
|
||||
|
||||
undef $image;
|
||||
exit(0);
|
35
site/slowtwitch.com/www/tick/scripts/resizer.pl
Executable file
35
site/slowtwitch.com/www/tick/scripts/resizer.pl
Executable file
@ -0,0 +1,35 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use Image::Magick;
|
||||
|
||||
sub get_files
|
||||
{
|
||||
my @allFiles;
|
||||
|
||||
opendir DIR, "/var/www/html/one/tick/images/gallery";
|
||||
@allFiles = grep !/^\./, readdir DIR;
|
||||
closedir DIR;
|
||||
|
||||
foreach $file (@allFiles)
|
||||
{
|
||||
if ($file =~ m/^f\_.*?/)
|
||||
{
|
||||
print "$file\n";
|
||||
$image = Image::Magick->new;
|
||||
$image->Read("/var/www/html/one/tick/images/gallery/${file}");
|
||||
|
||||
$width = $image->Get('columns');
|
||||
$height = $image->Get('rows');
|
||||
|
||||
if (($width > 700) || ($height > 170))
|
||||
{
|
||||
$image->Resize(geometry=>"1500x170");
|
||||
$image->Write(filename=>"/var/www/html/one/tick/images/gallery/t_${file}", quality=>'80');
|
||||
}
|
||||
|
||||
undef $image;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&get_files();
|
25
site/slowtwitch.com/www/tick/scripts/thumbify.pl
Executable file
25
site/slowtwitch.com/www/tick/scripts/thumbify.pl
Executable file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/perl
|
||||
# resize to 160 on the long edge and add black border
|
||||
|
||||
use Image::Magick;
|
||||
|
||||
$source_dir = shift || ".";
|
||||
|
||||
my @allFiles;
|
||||
opendir DIR, $source_dir;
|
||||
@allFiles = grep !/^\./, readdir DIR;
|
||||
closedir DIR;
|
||||
|
||||
foreach $file (@allFiles)
|
||||
{
|
||||
if ($file =~ m/^b.*?\.jpg/g)
|
||||
{
|
||||
print "$file\n";
|
||||
$image = Image::Magick->new;
|
||||
$image->Read("$source_dir/${file}");
|
||||
$image->Resize(geometry=>"160x160");
|
||||
$image->Border(geometry=>"2x2", fill=>"black");
|
||||
$image->Write(filename=>"$source_dir/t_${file}", quality=>'75');
|
||||
undef $image;
|
||||
}
|
||||
}
|
328
site/slowtwitch.com/www/tick/stages.php
Normal file
328
site/slowtwitch.com/www/tick/stages.php
Normal file
@ -0,0 +1,328 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$userID = 0;
|
||||
if (isset($_COOKIE['userID'])) { $userID = $_COOKIE['userID']; }
|
||||
else { header("Location: /tick/login.html"); }
|
||||
|
||||
$default_stageID = 0;
|
||||
if (isset($_COOKIE['stageID'])) { $default_stageID = $_COOKIE['stageID']; }
|
||||
|
||||
$ID = 0;
|
||||
$date = ''; $year = 0; $month = 0; $day = 0;
|
||||
$name = ''; $status = 'new'; $refresh_type = 'meta';
|
||||
$inc_pics = 'yes'; $inc_video = 'no'; $inc_map = 'yes';
|
||||
$start_location = ''; $end_location = ''; $distance = '';
|
||||
$refresh = ''; $extra_html = '';
|
||||
$tick_sequence = ''; $time_offset = ''; $mobile_notes = ''; $notes = '';
|
||||
|
||||
if (isset($_GET['ID']))
|
||||
{
|
||||
$ID = $_GET["ID"];
|
||||
$query = "SELECT * FROM stages WHERE ID = $ID";
|
||||
$result = mysql_query($query, $db);
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$status = $r['status'];
|
||||
$inc_pics = $r['inc_pics'];
|
||||
$inc_video = $r['inc_video'];
|
||||
$inc_map = $r['inc_map'];
|
||||
$date = $r['date'];
|
||||
list($year, $month, $day) = split("-", $date);
|
||||
$name = $r['name'];
|
||||
$start_location = $r['start_location'];
|
||||
$end_location = $r['end_location'];
|
||||
$distance = $r['distance'];
|
||||
$refresh = $r['refresh'];
|
||||
$tick_sequence = $r['tick_sequence'];
|
||||
$refresh_type = $r['refresh_type'];
|
||||
$time_offset = $r['time_offset'];
|
||||
$mobile_notes = $r['mobile_notes'];
|
||||
$extra_html = $r['extra_html'];
|
||||
$notes = $r['notes'];
|
||||
$static_url = $r['static_url'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$query = "SELECT *, DATE_FORMAT(events.date_start, '%b %e, %Y') AS datef FROM events WHERE default_flag = 'yes' AND userID = $userID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$eventID = $r['ID'];
|
||||
$event_name = $r['name'];
|
||||
$event_date = $r['datef'];
|
||||
}
|
||||
}
|
||||
mysql_free_result($result);
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>OneTicker :: Stages</title>
|
||||
<link rel=stylesheet type="text/css" href="tick.css">
|
||||
<script src="banner.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body bgcolor=#000000 marginheight=4 marginwidth=15 leftmargin=15 topmargin=4>
|
||||
|
||||
<script type="text/javascript">banner(2);</script>
|
||||
|
||||
<form name="stages" enctype="multipart/form-data" action="stages_add.php" method="post">
|
||||
<input type="hidden" name="eventID" value="<? echo $eventID ?>">
|
||||
<input type="hidden" name="ID" value="<? echo $ID ?>">
|
||||
<input type="hidden" name="tick_sequence" value="">
|
||||
|
||||
<?
|
||||
|
||||
if ($default_stageID == 0)
|
||||
{
|
||||
echo "<div class=redtext><img src=\"/tick/images/clear.gif\" border=0 height=2 width=140><b>Please select an active stage.</b><p></div>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<table border=0 cellspacing=1 cellpadding=1 width="640">
|
||||
<tr>
|
||||
<td colspan=2><div class=text><span class=smtext>name</span>
|
||||
<br><input class=blacktext type=text name="name" value="<? echo $name; ?>" size=50 maxlength=175></td>
|
||||
|
||||
<td><div class=text><span class=smtext>distance</span>
|
||||
<br><input class=blacktext type=text name="distance" value="<? echo "$distance"; ?>" size=28 maxlength=100></td>
|
||||
<td><div class=text><span class=smtext>status</span>
|
||||
<br><select name=status class=blacktext>
|
||||
<option value="new"<? if ($status == 'new') { echo " selected"; } ?>>new</option>
|
||||
<option value="ongoing"<? if ($status == 'ongoing') { echo " selected"; } ?>>ongoing</option>
|
||||
<option value="complete"<? if ($status == 'complete') { echo " selected"; } ?>>complete</option>
|
||||
<option value="irrelevant"<? if ($status == 'irrelevant') { echo " selected"; } ?>>irrelevant</option>
|
||||
</select>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><div class=text><span class=smtext>start location</span>
|
||||
<br><input class=blacktext type=text name="start_location" value="<? echo $start_location; ?>" size=23 maxlength=150></td>
|
||||
|
||||
<td><div class=text><span class=smtext>end location</span>
|
||||
<br><input class=blacktext type=text name="end_location" value="<? echo $end_location; ?>" size=23 maxlength=150></td>
|
||||
|
||||
<td><div class=text><span class=smtext>page refresh</span>
|
||||
<br><select name=refresh class=blacktext>
|
||||
<option value="0"<? if ($refresh == 0) { echo " selected"; } ?>>never</option>
|
||||
<option value="60"<? if ($refresh == 60) { echo " selected"; } ?>>every minute</option>
|
||||
<option value="120"<? if ($refresh == 120) { echo " selected"; } ?>>every 2 minutes</option>
|
||||
<option value="180"<? if ($refresh == 180) { echo " selected"; } ?>>every 3 minutes</option>
|
||||
<option value="240"<? if ($refresh == 240) { echo " selected"; } ?>>every 4 minutes</option>
|
||||
<option value="300"<? if ($refresh == 300) { echo " selected"; } ?>>every 5 minutes</option>
|
||||
<option value="480"<? if ($refresh == 480) { echo " selected"; } ?>>every 8 minutes</option>
|
||||
<option value="600"<? if ($refresh == 600) { echo " selected"; } ?>>every 10 minutes</option>
|
||||
<option value="1200"<? if ($refresh == 1200) { echo " selected"; } ?>>every 20 minutes</option>
|
||||
<option value="1800"<? if ($refresh == 1800) { echo " selected"; } ?>>every 30 minutes</option>
|
||||
<option value="3600"<? if ($refresh == 3600) { echo " selected"; } ?>>every hour</option>
|
||||
</select>
|
||||
</div></td>
|
||||
|
||||
<td><div class=text><span class=smtext>refresh method</span>
|
||||
<br><select name="refresh_type" class=blacktext>
|
||||
<option value="meta"<? if ($refresh_type == 'meta') { echo " selected"; } ?>>not controllable</option>
|
||||
<option value="javascript"<? if ($refresh_type == 'javascript') { echo " selected"; } ?>>user controlled</option>
|
||||
</select>
|
||||
</div></td>
|
||||
|
||||
<!--
|
||||
<td><div class=text><span class=smtext>tick sequence</span>
|
||||
<br><select name=tick_sequence class=blacktext>
|
||||
<option value=""<? if ($tick_sequence == '') { echo " selected"; } ?>>most recent last</option>
|
||||
<option value=" DESC"<? if ($tick_sequence == ' DESC') { echo " selected"; } ?>>most recent first</option>
|
||||
</select>
|
||||
</div></td>
|
||||
-->
|
||||
|
||||
</tr>
|
||||
|
||||
<tr valign=top>
|
||||
<td colspan=2><table cellpadding=0 cellspacing=0 border=0 width="100%">
|
||||
<tr valign=top>
|
||||
<td><div class=text><span class=smtext>date</span>
|
||||
<br><select class=blacktext name=month>
|
||||
<?
|
||||
while(list($key, $value) = each($month_names))
|
||||
{
|
||||
$selected = "";
|
||||
$month_index = $key + 1;
|
||||
if ($month_index == $month) { $selected = " selected"; }
|
||||
echo "<option value=\"${month_index}\"$selected>${value}</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<select class=blacktext name=day>
|
||||
<?
|
||||
for ($i=1; $i<32;$i++)
|
||||
{
|
||||
$selected = "";
|
||||
if ($i == $day) { $selected = " selected"; }
|
||||
echo "<option value=\"$i\"$selected>$i</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<select class=blacktext name=year>
|
||||
<?
|
||||
for ($i=2009; $i<2015;$i++)
|
||||
{
|
||||
$selected = "";
|
||||
if ($i == $year) { $selected = " selected"; }
|
||||
echo "<option value=\"$i\"$selected>$i</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div></td>
|
||||
|
||||
|
||||
<td><div class=text><span class=smtext>PST offset</span>
|
||||
<br><select class=blacktext name=time_offset>
|
||||
<?
|
||||
for ($i=-23; $i<24;$i++)
|
||||
{
|
||||
$selected = "";
|
||||
if ($i == $time_offset) { $selected = " selected"; }
|
||||
if ($i > 0) { $i = "+$i"; }
|
||||
echo "<option value=\"$i\"$selected>$i hours</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan=2><div class=text>
|
||||
<br>include:
|
||||
<? $checked = ""; if ($inc_pics == 'yes') { $checked = " checked"; } ?>
|
||||
<input type=checkbox name=inc_pics value=yes<? echo "$checked"; ?> class=blacktext>pics
|
||||
|
||||
<? $checked = ""; if ($inc_video == 'yes') { $checked = " checked"; } ?>
|
||||
<input type=checkbox name=inc_video value=yes<? echo "$checked"; ?> class=blacktext>video
|
||||
|
||||
<? $checked = ""; if ($inc_map == 'yes') { $checked = " checked"; } ?>
|
||||
<input type=checkbox name=inc_map value=yes<? echo "$checked"; ?> class=blacktext>map
|
||||
</div></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
|
||||
<td colspan=2><div class=text><span class=smtext>profile image</span>
|
||||
<br><input class=blacktext type=file name="profile" size=40>
|
||||
<ul>
|
||||
<li>image will be resized automatically</li>
|
||||
<li>leave blank to keep existing image</li>
|
||||
</ul>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<? /** tr>
|
||||
<td colspan=2><div class=blacktext><span class=smtext>comments (viewer)</span>
|
||||
<br><textarea class=blacktext name="notes" cols=46 rows=3 wrap="virtual"><? echo $notes; ?></textarea>
|
||||
</div></td>
|
||||
<td colspan=2><div class=blacktext><span class=smtext>comments (mobile viewer)</span>
|
||||
<br><textarea class=blacktext name="mobile_notes" cols=46 rows=3 wrap="virtual"><? echo $mobile_notes; ?></textarea>
|
||||
</div></td>
|
||||
</tr **/ ?>
|
||||
|
||||
<tr>
|
||||
<td colspan=2><div class=text><span class=smtext>static url</span>
|
||||
<br><input class=blacktext type=text name="static_url" value="<? echo $static_url; ?>" size=23 maxlength=150>
|
||||
</div></td>
|
||||
<td colspan=2><div class=blacktext>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan=4><div class=blacktext><span class=smtext>extra footer (html)</span>
|
||||
<br><textarea class=blacktext name="extra_html" cols=100 rows=4 wrap="virtual"><? echo $extra_html; ?></textarea>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan=4 align=center>
|
||||
<input class=boldtext type="submit" name="submit" value="add/update stage"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<p>
|
||||
<span class=smtext>Click date to edit stage info.<br />
|
||||
Click check-mark to activate a given stage. (Red check indicates active stage.)</span>
|
||||
<table border=0 cellpadding=0 cellspacing=0 bgcolor="#000000" width="700">
|
||||
<tr><td>
|
||||
<table border=0 cellpadding=3 cellspacing=1 bgcolor="#000000" width=100%>
|
||||
|
||||
<tr valign=top>
|
||||
<td bgcolor=#cccccc align=center width="15%"><div class=blacktext><b>DATE</b></div></td>
|
||||
<td bgcolor=#cccccc align=center><div class=blacktext><b>NAME</b></div></td>
|
||||
<td bgcolor=#cccccc align=center width="35%"><div class=blacktext><b>ROUTE</b></div></td>
|
||||
<td bgcolor=#cccccc align=center width="9%"><div class=blacktext><b>STATUS</b></div></td>
|
||||
<td bgcolor=#cccccc align=center width="2%"><div class=blacktext>ACTIVE</div></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
$query = "SELECT *, DATE_FORMAT(stages.date, '%b %e, %Y') AS datef FROM stages WHERE eventID = $eventID ORDER BY date DESC";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
while ($r = mysql_fetch_array($result))
|
||||
{
|
||||
$stageID = $r['ID'];
|
||||
$status = $r['status'];
|
||||
$name = $r['name'];
|
||||
$date = $r['datef'];
|
||||
$start_location = $r['start_location'];
|
||||
$end_location = $r['end_location'];
|
||||
$default_flag = $r['default_flag'];
|
||||
$distance = $r['distance'];
|
||||
$time_offset = $r['time_offset'];
|
||||
$static_url = $r['static_url'];
|
||||
|
||||
if ($stageID == $ID) { echo "<tr bgcolor=#ffaaaa>"; }
|
||||
else { echo "<tr bgcolor=#ffffff>"; }
|
||||
echo "<td><div class=blacktext> <a href=\"stages.php?ID=${stageID}\">$date</a></div></td>";
|
||||
echo "<td><div class=blacktext>$name";
|
||||
echo "<br>[<a target=_blank href=\"viewer.php?ID=${stageID}\">viewer</a>]";
|
||||
echo " [<a target=_blank href=\"$static_base${static_url}.html\">static viewer</a>]";
|
||||
echo "</div></td>";
|
||||
echo "<td><div class=blacktext>${start_location} to ${end_location}<br>${distance}<br> - offset ${time_offset} hours from PST</div></td>";
|
||||
echo "<td align=center><div class=blacktext>${status}</div></td>";
|
||||
//echo "<td><a href=\"javascript:popup('stages_remove.php?ID=${stageID}', 'stage');\"><img src=\"images/x.gif\" border=0></a> ";
|
||||
echo "<td align=center> ";
|
||||
|
||||
if ($stageID == $default_stageID)
|
||||
{
|
||||
echo "<img src=\"images/checkmark.gif\" border=0>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<a href=\"stages_set_default.php?ID=${stageID}\"><img src=\"images/checkmark_black.gif\" border=0 alt=\"make default\"></a>";
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<tr valign=top>
|
||||
<td bgcolor=#aaaaaa colspan=5><div class=blacktext>
|
||||
</div></td>
|
||||
</tr>
|
||||
|
||||
</table></td></tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
90
site/slowtwitch.com/www/tick/stages_add.php
Normal file
90
site/slowtwitch.com/www/tick/stages_add.php
Normal file
@ -0,0 +1,90 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
$ID = 0;
|
||||
if (isset($_POST['ID'])) { $ID = $_POST['ID']; }
|
||||
|
||||
list($msec, $sec) = explode(" ", microtime());
|
||||
$stamp = date("Ymdhis") . substr($msec, 4);
|
||||
|
||||
$filename = ""; $uploaddir = ""; $uploadfile = ""; $profile_sql = "";
|
||||
$inc_pics = 'no'; $inc_video = 'no'; $inc_map = 'no'; $extra_html = '';
|
||||
|
||||
if (isset($_POST['inc_pics']) && $_POST['inc_pics'] == 'yes') { $inc_pics = 'yes'; }
|
||||
if (isset($_POST['inc_video']) && $_POST['inc_video'] == 'yes') { $inc_video = 'yes'; }
|
||||
if (isset($_POST['inc_map']) && $_POST['inc_map'] == 'yes') { $inc_map = 'yes'; }
|
||||
|
||||
if (isset($_FILES['profile']['name']) && $_FILES['profile']['name'] != "")
|
||||
{
|
||||
$uploaddir = "$DOCUMENT_ROOT/tick/images/gallery/";
|
||||
$pieces = preg_split('/\./', basename($_FILES['profile']['name']));
|
||||
$filename = $stamp . "." . $pieces[1];
|
||||
$uploadfile = $uploaddir . $filename;
|
||||
move_uploaded_file($_FILES['profile']['tmp_name'], $uploadfile);
|
||||
chmod($uploadfile, 0755);
|
||||
|
||||
$s = "/var/home/slowtwitch/slowtwitch.com/www/tick/scripts/pics.pl $filename --- 640";
|
||||
exec("$s 2>&1", $updw);
|
||||
|
||||
$s = "/var/home/slowtwitch/slowtwitch.com/www/tick/scripts/pics.pl $filename t_ 60";
|
||||
exec("$s 2>&1", $updw);
|
||||
|
||||
$profile_sql = "', profile = '" . $filename;
|
||||
}
|
||||
|
||||
if ($ID != 0)
|
||||
{
|
||||
$query = "UPDATE stages SET name = '" . myaddslashes($_POST['name'])
|
||||
. "', date = '" . $_POST['year'] . "-" . $_POST['month']
|
||||
. "-" . $_POST['day']
|
||||
. "', status = '" . $_POST['status']
|
||||
. "', inc_pics = '" . $inc_pics
|
||||
. "', inc_video = '" . $inc_video
|
||||
. "', inc_map = '" . $inc_map
|
||||
. "', start_location = '" . myaddslashes($_POST['start_location'])
|
||||
. "', end_location = '" . myaddslashes($_POST['end_location'])
|
||||
. "', distance = '" . myaddslashes($_POST['distance'])
|
||||
. "', refresh = '" . $_POST['refresh']
|
||||
. "', tick_sequence = '" . $_POST['tick_sequence']
|
||||
. "', refresh_type = '" . $_POST['refresh_type']
|
||||
. "', time_offset = '" . $_POST['time_offset']
|
||||
. $profile_sql
|
||||
. "', mobile_notes = '" . myaddslashes($_POST['mobile_notes'])
|
||||
. "', extra_html = '" . myaddslashes($_POST['extra_html'])
|
||||
. "', static_url = '" . myaddslashes($_POST['static_url'])
|
||||
. "', notes = '" . myaddslashes($_POST['notes'])
|
||||
. "' WHERE ID = '$ID'";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
else
|
||||
{
|
||||
$query = "INSERT INTO stages (eventID, name, status, inc_pics, inc_video, inc_map, date, start_location, end_location, distance, refresh, tick_sequence, refresh_type, time_offset, profile, mobile_notes, extra_html, static_url, notes) VALUES ('"
|
||||
. $_POST['eventID'] . "','"
|
||||
. myaddslashes($_POST['name']) . "','"
|
||||
. $_POST['status'] . "','"
|
||||
. $inc_pics . "','"
|
||||
. $inc_video . "','"
|
||||
. $inc_map . "','"
|
||||
. $_POST['year'] . "-" . $_POST['month'] . "-" . $_POST['day'] . "','"
|
||||
. myaddslashes($_POST['start_location']) . "','"
|
||||
. myaddslashes($_POST['end_location']) . "','"
|
||||
. myaddslashes($_POST['distance']) . "','"
|
||||
. $_POST['refresh'] . "','"
|
||||
. $_POST['tick_sequence'] . "','"
|
||||
. $_POST['refresh_type'] . "','"
|
||||
. $_POST['time_offset'] . "','"
|
||||
. myaddslashes($filename) . "','"
|
||||
. myaddslashes($_POST['mobile_notes']) . "','"
|
||||
. myaddslashes($_POST['extra_html']) . "','"
|
||||
. myaddslashes($_POST['static_url']) . "','"
|
||||
. myaddslashes($_POST['notes']) . "')";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$ID = mysql_insert_id();
|
||||
//$query = "UPDATE stages SET static_url = '/tick/html/stage${ID}' WHERE ID = $ID";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
|
||||
header("Location: /tick/stages.php");
|
||||
|
||||
?>
|
32
site/slowtwitch.com/www/tick/stages_remove.php
Normal file
32
site/slowtwitch.com/www/tick/stages_remove.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
if (isset($_GET['ID']))
|
||||
{
|
||||
$ID = $_GET["ID"];
|
||||
|
||||
$query = "DELETE FROM ticks WHERE stageID = $ID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$query = "DELETE FROM maps WHERE stageID = $ID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$query = "DELETE FROM maps_coords WHERE stageID = $ID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$query = "DELETE FROM segments WHERE stageID = $ID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$query = "DELETE FROM markers WHERE stageID = $ID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$query = "DELETE FROM pics WHERE stageID = $ID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$query = "DELETE FROM stages WHERE ID = $ID LIMIT 1";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
|
||||
header("Location: /tick/stages.php");
|
||||
|
||||
?>
|
10
site/slowtwitch.com/www/tick/stages_set_default.php
Normal file
10
site/slowtwitch.com/www/tick/stages_set_default.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
if (isset($_GET['ID']))
|
||||
{
|
||||
setcookie("stageID", $_GET['ID']);
|
||||
}
|
||||
|
||||
header("Location: /tick/stages.php");
|
||||
|
||||
?>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user