From 64cd470088c8bc63365528ce0b32f75ef81321d2 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 9 Dec 2006 00:23:15 +0000 Subject: [PATCH] advertising admin code --- includes/account.php | 9 +++++++++ includes/general_stuff.php | 18 +++++++++++++++++- pages/account/40.php | 17 +++++++++++++---- pages/account/43.php | 4 ++++ pages/index/11.php | 17 +++++++++++++---- stamp/displogo.php | 4 ++-- stamp/index.php | 3 ++- stamp/showlogo.php | 4 ++-- www/cap.php | 2 +- www/index.php | 2 +- 10 files changed, 64 insertions(+), 16 deletions(-) diff --git a/includes/account.php b/includes/account.php index bda1673..f4a5f5a 100644 --- a/includes/account.php +++ b/includes/account.php @@ -2284,6 +2284,15 @@ mysql_query("update `users` set `ttpadmin`='$ver' where `id`='$memid'"); } + if($id == 43 && $_REQUEST['adadmin'] > 0) + { + $memid = $_REQUEST['userid'] = intval($_REQUEST['adadmin']); + $query = "select * from `users` where `id`='$memid'"; + $row = mysql_fetch_assoc(mysql_query($query)); + $ver = !$row['adadmin']; + mysql_query("update `users` set `adadmin`='$ver' where `id`='$memid'"); + } + if($id == 43 && $_REQUEST['locadmin'] > 0) { $memid = $_REQUEST['userid'] = intval($_REQUEST['locadmin']); diff --git a/includes/general_stuff.php b/includes/general_stuff.php index aac9e92..98b4de5 100644 --- a/includes/general_stuff.php +++ b/includes/general_stuff.php @@ -40,7 +40,7 @@ function hideall() { var max = Nodes.length for(var i = 0;i < max;i++) { var nodeObj = Nodes.item(i) - if (nodeObj.className == "menu") { + if (nodeObj.className == "menu" && nodeObj.id != "recom") { nodeObj.style.display = 'none'; } } @@ -88,6 +88,22 @@ google_color_border = "FFFFFF";

+
diff --git a/pages/account/40.php b/pages/account/40.php index 9c63784..58f35b2 100644 --- a/pages/account/40.php +++ b/pages/account/40.php @@ -23,10 +23,10 @@

-
+ - + @@ -47,8 +47,8 @@

- - + +
:
:
@@ -67,3 +67,12 @@ CAcert Inc.
P.O. Box 81
Banksia NSW 2216
Australia

+ + diff --git a/pages/account/43.php b/pages/account/43.php index a560e15..2b74ea2 100644 --- a/pages/account/43.php +++ b/pages/account/43.php @@ -166,6 +166,10 @@ + + + + diff --git a/pages/index/11.php b/pages/index/11.php index 9c63784..58f35b2 100644 --- a/pages/index/11.php +++ b/pages/index/11.php @@ -23,10 +23,10 @@

- + - +
:
:
:
:
@@ -47,8 +47,8 @@

- - + +
:
:
@@ -67,3 +67,12 @@ CAcert Inc.
P.O. Box 81
Banksia NSW 2216
Australia

+ + diff --git a/stamp/displogo.php b/stamp/displogo.php index 8578186..7e5b5d6 100644 --- a/stamp/displogo.php +++ b/stamp/displogo.php @@ -8,8 +8,8 @@ $arr = explode("/", $arr['1'], 2); $siteref = $arr['0']; - - header('Content-type: image/png'); + if($_REQUEST['debug'] != 1) + header('Content-type: image/png'); $im = imagecreatefrompng($img); if($ref == "" || ($ref != $siteref && $siteref != "")) diff --git a/stamp/index.php b/stamp/index.php index 82083b5..08f5375 100644 --- a/stamp/index.php +++ b/stamp/index.php @@ -32,6 +32,7 @@ google_ad_channel = "";

<script type="text/javascript" src="http<? if($_SERVER['HTTPS']=="on") { echo "s"; } ?>://stamp.cacert.org/showlogo.php"></script>

- + + diff --git a/stamp/showlogo.php b/stamp/showlogo.php index 8450f79..3b67ce7 100644 --- a/stamp/showlogo.php +++ b/stamp/showlogo.php @@ -1,8 +1,8 @@ var curDateTime = new Date(); var tz = -(curDateTime.getTimezoneOffset()/60); diff --git a/www/cap.php b/www/cap.php index ce7c628..cdb26e7 100644 --- a/www/cap.php +++ b/www/cap.php @@ -64,7 +64,7 @@ $this->Write(4,recode($_SESSION['_config']['recode'], _("It's encouraged that you tear the top of this form off and give it to the person you are assuring as a reminder to sign up, and as a side benefit the tear off section also contains a method of offline verification of our fingerprints."))); // Assuree Section - $top = 110; + $top = 130; $this->Rect(11, $top, $this->w - 25, 50, "D"); $this->SetXY(11, $top + 5); $this->SetFont("Arial", "BUI", "20"); diff --git a/www/index.php b/www/index.php index 2e36930..d8fd6a9 100644 --- a/www/index.php +++ b/www/index.php @@ -429,7 +429,7 @@ $email = stripslashes($_REQUEST['email']); $subject = stripslashes($subject); $message = stripslashes($message); - $secrethash = $_REQUEST['secrethash']; + $secrethash = $_REQUEST['secrethash2']; if($_SESSION['_config']['secrethash'] != $secrethash || $secrethash == "" || $_SESSION['_config']['secrethash'] == "" || strstr($subject, "botmetka") || strstr($subject, "servermetka"))
: