$output.="<I>".t("Required, unique, can not be changed.")." ".t("Your real e-mail address is never displayed publicly: only needed in case you lose your password.")."</I><P>\n";
$output.="<I><SMALL>".t("Required, unique, can not be changed.")." ".t("Your real e-mail address is never displayed publicly: only needed in case you lose your password.")."</SMALL></I><P>\n";
$output.="<I>".t("Optional").". ".t("Make sure you enter fully qualified URLs only. That is, remember to include \"http://\".")."</I><P>\n";
$output.="<I><SMALL>".t("Optional").". ".t("Make sure you enter fully qualified URLs only. That is, remember to include \"http://\".")."</SMALL></I><P>\n";
$output.="<I>".t("Optional").". ".t("This biographical information is publicly displayed on your user page.")."<BR>".t("Allowed HTML tags").": ".htmlspecialchars($allowed_html).".</I><P>\n";
$output.="<I><SMALL>".t("Optional").". ".t("This biographical information is publicly displayed on your user page.")."<BR>".t("Allowed HTML tags").": ".htmlspecialchars($allowed_html).".</SMALL></I><P>\n";
$output.="<I>".t("Optional").". ".t("This information will be publicly displayed at the end of your comments.")."<BR>".t("Allowed HTML tags").": ".htmlspecialchars($allowed_html).".</I><P>\n";
$output.="<I><SMALL>".t("Optional").". ".t("This information will be publicly displayed at the end of your comments.")."<BR>".t("Allowed HTML tags").": ".htmlspecialchars($allowed_html).".</SMALL></I><P>\n";
$output.="<I>".t("Enter your new password twice if you want to change your current password or leave it blank if you are happy with your current password.")."</I><P>\n";
$output.="<I><SMALL>".t("Enter your new password twice if you want to change your current password or leave it blank if you are happy with your current password.")."</SMALL></I><P>\n";
$output.="<INPUT TYPE=\"submit\" NAME=\"op\" VALUE=\"".t("Save user information")."\"><BR>\n";
$output.="</FORM>\n";
...
...
@@ -131,25 +131,23 @@ function account_site_edit() {
$output.="<I>".t("Comments that scored less than this threshold setting will be ignored. Anonymous comments start at 0, comments of people logged on start at 1 and moderators can add and subtract points.")."</I><P>\n";
$output.="<I><SMALL>".t("Comments that scored less than this threshold setting will be ignored. Anonymous comments start at 0, comments of people logged on start at 1 and moderators can add and subtract points.")."</SMALL></I><P>\n";
$output.="<INPUT TYPE=\"submit\" NAME=\"op\" VALUE=\"".t("Save site settings")."\"><BR>\n";
$output.="</FORM>\n";
...
...
@@ -197,7 +195,7 @@ function account_content_edit() {
$entry=db_fetch_object(db_query("SELECT * FROM layout WHERE block = '$block->name' AND user = '$user->id'"));
@@ -224,7 +222,7 @@ function account_content_save($edit) {
}
functionaccount_user($uname){
global$user,$theme;
global$user,$status,$theme;
functionmodule($name,$module,$username){
global$theme;
...
...
@@ -256,7 +254,7 @@ function module($name, $module, $username) {
$block1.="</TABLE>\n";
/*
$result = db_query("SELECT c.cid, c.pid, c.lid, c.subject, c.timestamp, n.title AS node FROM comments c LEFT JOIN users u ON u.id = c.author LEFT JOIN nodes ON n.id = c.lid WHERE u.userid = '$uname' AND n.status = 2 AND s.timestamp > ". (time() - 1209600) ." ORDER BY cid DESC LIMIT 10");
$result = db_query("SELECT c.cid, c.pid, c.lid, c.subject, c.timestamp, n.title AS node FROM comments c LEFT JOIN users u ON u.id = c.author LEFT JOIN nodes ON n.id = c.lid WHERE u.userid = '$uname' AND n.status = '$status[posted]' AND s.timestamp > ". (time() - 1209600) ." ORDER BY cid DESC LIMIT 10");
@@ -427,9 +425,9 @@ function account_track_comments() {
}
functionaccount_track_nodes(){
global$theme,$user;
global$status,$theme,$user;
$result=db_query("SELECT n.nid, n.type, n.title, n.timestamp, COUNT(c.cid) AS count FROM nodes n LEFT JOIN comments c ON c.lid = n.nid WHERE n.status = '2' AND n.author = '$user->id' GROUP BY n.nid DESC");
$result=db_query("SELECT n.nid, n.type, n.title, n.timestamp, COUNT(c.cid) AS count FROM nodes n LEFT JOIN comments c ON c.lid = n.nid WHERE n.status = '$status[posted]' AND n.author = '$user->id' GROUP BY n.nid DESC");
@@ -446,11 +444,11 @@ function account_track_nodes() {
}
functionaccount_track_site(){
global$theme,$user,$site_name;
global$status,$theme,$user,$site_name;
$period=259200;// 3 days
$sresult=db_query("SELECT n.title, n.nid, COUNT(c.lid) AS count FROM comments c LEFT JOIN nodes n ON c.lid = n.nid WHERE n.status = 2 AND ".time()." - n.timestamp < $period GROUP BY c.lid ORDER BY n.timestamp DESC LIMIT 10");
$sresult=db_query("SELECT n.title, n.nid, COUNT(c.lid) AS count FROM comments c LEFT JOIN nodes n ON c.lid = n.nid WHERE n.status = '$status[posted]' AND ".time()." - n.timestamp < $period GROUP BY c.lid ORDER BY n.timestamp DESC LIMIT 10");
while($node=db_fetch_object($sresult)){
$output.="<LI>".format_plural($node->count,"comment","comments")." ".t("attached to node")." '<A HREF=\"node.php?id=$node->nid\">".check_output($node->title)."</A>':</LI>";
# The keys of this associative array are displayed in each submission's selection box whereas the corresponding values represent the mathematical calculation to be performed to update a comment's value.
# Warning: changing $submission_votes will affect the integrity of all pending stories in the open submission queue. Do not change this setting unless there are no pending stories in the submission queue or unless you know what you are doing.
# Warning: changing $moderation_votes will affect the integrity of all pending stories in the open submission queue. Do not change this setting unless there are no pending stories in the submission queue or unless you know what you are doing.
$result=db_query("SELECT n.*, s.*, u.userid, COUNT(c.lid) AS comments FROM nodes n LEFT JOIN story s ON n.nid = s.node LEFT JOIN comments c ON n.nid = c.lid LEFT JOIN users u ON n.author = u.id WHERE n.status = 2 AND n.type = 'story' ".($section?"AND s.section = '$section' ":"")."AND n.timestamp <= $date GROUP BY n.nid ORDER BY n.timestamp DESC LIMIT $number");
$result=db_query("SELECT n.*, s.*, u.userid, COUNT(c.lid) AS comments FROM nodes n LEFT JOIN story s ON n.nid = s.node LEFT JOIN comments c ON n.nid = c.lid LEFT JOIN users u ON n.author = u.id WHERE n.status = '$status[posted]' AND n.type = 'story' ".($section?"AND s.section = '$section' ":"")."AND n.timestamp <= $date GROUP BY n.nid ORDER BY n.timestamp DESC LIMIT $number");
$next=db_fetch_object(db_query("SELECT n.nid, n.title FROM nodes n LEFT JOIN book b ON n.nid = b.node WHERE b.parent = '$node->parent' AND b.weight > $node->weight ORDER BY b.weight ASC"));
...
...
@@ -17,49 +30,39 @@ function book_navigation($node) {
$output.=" <TR><TD><B><BIG>".check_output($node->title)."</BIG></B>".($node->body?"<BR><SMALL><I>Last updated by ".format_username($node->userid)." on ".format_date($node->timestamp)."</I></SMALL> ":"")."</TD><TD ALIGN=\"right\">".node_info($node)."</TD></TR>\n";
$output.=" <TR><TD><B><BIG>".check_output($node->title)."</BIG></B><BR><SMALL><I>Last updated by ".format_username($node->userid)." on ".format_date($node->timestamp)."</I></SMALL></TD><TD ALIGN=\"right\">".node_info($node)."</TD></TR>\n";
$result=db_query("SELECT n.*, u.userid FROM nodes n LEFT JOIN users u ON n.author = u.id WHERE n.status = 2 AND n.title LIKE '%".check_input($keys)."%' ORDER BY n.timestamp DESC LIMIT 20");
$result=db_query("SELECT n.*, u.userid FROM nodes n LEFT JOIN users u ON n.author = u.id WHERE n.status = '$status[posted]' AND n.title LIKE '%".check_input($keys)."%' ORDER BY n.timestamp DESC LIMIT 20");
$result=db_query("SELECT n.*, b.* FROM nodes n LEFT JOIN book b ON n.nid = b.node WHERE n.type = 'book' AND b.parent = '$parent' ORDER BY b.weight");
$result=db_query("SELECT n.*, b.* FROM nodes n LEFT JOIN book b ON n.nid = b.node WHERE n.type = 'book' AND n.status = '$status[posted]' AND b.parent = '$parent' ORDER BY b.weight");