-  |
-
-
- $this->box("Status", "Username: Your Name E-mail: your.name@drop.org Status: Logged in Since: The beginning of time | ");
+ -->
+
+
+
+
+  |
+
+
+ $this->box("Status", "Username: Your Name E-mail: your.name@drop.org Status: Logged in Since: The beginning of time | ");
?>
+ |
+
+
+
+
+ dbconnect();
+
+ ### Display admin blocks:
+ displayAdminblock($this);
+
+ ### Display referring sites:
+ displayReferrals($this);
+ ?>
|
-
-
-
- dbconnect();
-
- ### Display admin blocks:
- displayAdminblock($this);
-
- ### Display referring sites:
- displayReferrals($this);
- ?>
- |
-
+ |
}
@@ -68,16 +69,22 @@
include "config.inc";
?>
-
+
}
@@ -148,33 +166,166 @@ SRC="themes/Jeroen/images/ echo $img; ?>" WIDTH="20" HEIGHT="20" ALT=""> |
$timestamp = date("l, F d, Y - h:i:s A", $timestamp);
include "config.inc";
- ?>
-
- echo $subject; ?> |
-
-
-
- if ($informant) {
- print "Posted by $informant on $timestamp"; ?> if ($department) echo " from the $department dept."; ?> print "";
- }
- else {
- print "Posted by $anonymous on $timestamp"; ?> if ($department) echo " from the $department dept."; ?> print "";
- }
- ?>
- |
-
-
-
-
- if ($abstract) echo " $abstract ";
- if ($comments) echo " bgcolor1\">Editor's note by $editor: $comments ";
- if ($article) echo "$article ";
- ?>
- |
-
- echo "$reply"; ?> |
-
-
+ ?>
+
+
+
+ }
+
+ ######
+ # Syntax.......: commentControl(...);
+ # Description..: this function is used to theme the comment control box.
+ function commentControl($sid, $title, $thold, $mode, $order) {
+ global $user;
+ dbconnect();
+ $query = mysql_query("SELECT sid FROM comments WHERE sid = $sid");
+
+ if (!$query) $count = 0; else $count = mysql_num_rows($query);
+ if (!isset($thold)) $thold = 0;
+
+ ?>
+
+
+
+
+ |
+
+ Comment control
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ $result = mysql_query("SELECT COUNT(tid) FROM comments WHERE sid = $sid AND score < $thold");
+ if ($result && $number = mysql_result($result, 0)) {
+ ?>
+
+ bgcolor2"; ?>">
+ fgcolor2"; ?>">There are at least echo $number; ?> comments below your threshold.
+ |
+
+
+ }
+ ?>
+
+
}
######
@@ -189,14 +340,14 @@ SRC="themes/Jeroen/images/ echo $img; ?>" WIDTH="20" HEIGHT="20" ALT="">
### Create comment header:
echo "";
- echo " bgcolor2\">";
+ echo " ";
echo " ";
echo " ";
### Subject:
echo " ";
- echo " bgcolor1\">Subject: | ";
- echo " bgcolor1\">$subject";
+ echo " | Subject: | ";
+ echo " $subject";
echo " [Score: $score";
if (isset($reason)) echo ", $comments_meta_reasons[$reason]";
echo "]";
@@ -234,13 +385,13 @@ SRC="themes/Jeroen/images/ echo $img; ?>" WIDTH="20" HEIGHT="20" ALT=""> |
echo " ";
### Print body of comment:
- if ($comment) echo " bgcolor3\">$comment | ";
+ if ($comment) echo " $comment | ";
### Print thread (if any):
- if ($thread) echo " bgcolor2\">$thread | ";
+ if ($thread) echo " $thread | ";
### Print bottom link(s):
- echo " bgcolor2\">[ $link ] | ";
+ echo " [ $link ] | ";
echo " ";
}
@@ -254,15 +405,19 @@ SRC="themes/Jeroen/images/ echo $img; ?>" WIDTH="20" HEIGHT="20" ALT=""> |
include "config.inc";
?>
- echo $subject; ?> |
+
+
+ echo $subject; ?>
+ |
+
if ($informant) {
- print "Posted by $informant on $timestamp"; ?> if ($department) echo " from the $department dept."; ?> print "";
+ print "Posted by $informant on $timestamp"; ?> if ($department) echo " from the $department dept."; ?> print "";
}
else {
- print "Posted by $anonymous on $timestamp"; ?> if ($department) echo " from the $department dept."; ?> print "";
+ print "Posted by $anonymous on $timestamp"; ?> if ($department) echo " from the $department dept."; ?> print "";
}
?>
|
@@ -273,12 +428,12 @@ SRC="themes/Jeroen/images/ echo $img; ?>" WIDTH="20" HEIGHT="20" ALT="">
if ($abstract) echo "$abstract ";
if ($comments) echo " bgcolor1\">Editor's note by $editor: $comments ";
if ($article) echo "$article ";
- ?>
-
-
- |
-
-
+ ?>
+
+
+ |
+
+
}
######
@@ -286,36 +441,59 @@ SRC="themes/Jeroen/images/ echo $img; ?>" WIDTH="20" HEIGHT="20" ALT="">
# Description..: a function to draw a box/block.
function box($subject, $content) {
include "config.inc";
- if (rand(0,40) == 20) $img = "boxbottomright6.gif";
+ if (rand(0,50) == 25) $img = "boxbottomright6.gif";
else $img = "boxbottomright5.gif";
$width = rand(10,200);
+ if (rand(0,100) == 50) $img2 = "boxtopleftside4.gif";
+ else $img2 ="boxtopleftside3.gif";
?>
-  |
-  |
-  |
-  |
-  |
+
+  |
+
+  |
+
+  |
+
+  |
+
+  |
-  |
- echo $subject; ?> |
-  |
+
+
+ |
+
+ echo $subject; ?>
+ |
+
+
+ |
|
-
+
+
+
+ echo $content; ?>
+ |
+
+
|
|
-  |
- |
-  |
+
+  |
+
+ |
+
+  |
-
+
+
}
@@ -331,7 +509,7 @@ SRC="themes/Jeroen/images/ echo $img; ?>" WIDTH="20" HEIGHT="20" ALT=""> |
$this->box("Drop where?", "");
- if (strstr($PHP_SELF, "index.php")) {
+ if (strstr($PHP_SELF, "index.php")) {
global $user;
### Display login box:
@@ -342,12 +520,12 @@ SRC="themes/Jeroen/images/ echo $img; ?>" WIDTH="20" HEIGHT="20" ALT="">
### Display old headlines:
displayOldHeadlines($this);
- }
- elseif (strstr($PHP_SELF, "account.php")) {
+ }
+ elseif (strstr($PHP_SELF, "account.php")) {
### Display account settings:
displayAccountSettings($this);
- }
- elseif (strstr($PHP_SELF, "article.php")) {
+ }
+ elseif (strstr($PHP_SELF, "article.php")) {
global $sid;
### Display related links:
@@ -355,21 +533,21 @@ SRC="themes/Jeroen/images/ echo $img; ?>" WIDTH="20" HEIGHT="20" ALT="">
### Display new headlines:
displayNewHeadlines($this);
- }
- else {
- ### Display new headlines:
- displayNewHeadlines($this);
- }
- ?>
-
-
-