0) { $row = $db->sql_fetchrow($db->sql_query("SELECT topicimage, topictext from ".$prefix."_topics where topicid='$topic'")); $topicimage = filter($row['topicimage'], nohtml); $topictext = filter($row['topictext'], nohtml); if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) { $topicimage = "themes/$ThemeSel/images/topics/$topicimage"; } else { $topicimage = "$tipath/$topicimage"; } } else { $topictext = ""._ALLTOPICS.""; if (file_exists("themes/$ThemeSel/images/topics/AllTopics.gif")) { $topicimage = "themes/$ThemeSel/images/topics/AllTopics.gif"; } else { $topicimage = "$tipath/AllTopics.gif"; } } if (file_exists("themes/$ThemeSel/images/topics/AllTopics.gif")) { $alltop = "themes/$ThemeSel/images/topics/AllTopics.gif"; } else { $alltop = "$tipath/AllTopics.gif"; } OpenTable(); if ($type == "users") { echo "
"._SEARCHUSERS."

"; } elseif ($type == "reviews") { echo "
"._SEARCHREVIEWS."

"; } elseif ($type == "comments" AND isset($sid)) { $res = $db->sql_query("select title from ".$prefix."_stories where sid='$sid'"); list($st_title) = $db->sql_fetchrow($res); $st_title = filter($st_title, nohtml); $instory = "AND sid='$sid'"; echo "
"._SEARCHINSTORY." $st_title

"; } else { echo "
"._SEARCHIN." $topictext

"; } echo "
"; if (($type == "users") OR ($type == "reviews")) { echo "\"\""; } else { echo "\"$topictext\""; } echo "
" ."  " ."

"; if (isset($sid)) { echo ""; } echo ""; $toplist = $db->sql_query("SELECT topicid, topictext from ".$prefix."_topics order by topictext"); echo "

"; } else { echo "

"; } echo ""._REVIEW.":

"; if (is_admin($admin)) { echo ""._PAGEBREAK."
"; } echo " "._CHECKREVIEW."

"._YOURNAME.":
"; if (is_user($user)) { $result = $db->sql_query("select name, user_email from ".$user_prefix."_users where username='$cookie[1]'"); list($name, $email) = $db->sql_fetchrow($result); $name = stripslashes(check_html($name, "nohtml")); $email = stripslashes(check_html($email, "nohtml")); } echo "
"._FULLNAMEREQ."

"._REMAIL.":

"._REMAILREQ."

"._SCORE."
"._SELECTSCORE."

"._RELATEDLINK.":

"._PRODUCTSITE."

"._LINKTITLE.":

"._LINKTITLEREQ."

"; if(is_admin($admin)) { echo " "._RIMAGEFILE.":

"._RIMAGEFILEREQ."

"; } echo ""._CHECKINFO."

"; echo "
"; CloseTable(); include ("footer.php"); } function preview_review($date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id, $rlanguage) { global $admin, $multilingual, $module_name; if (eregi("", $text)) { $text = ereg_replace("","<!--pagebreak-->",$text); } $title = stripslashes(check_html($title, "nohtml")); $text = stripslashes(check_html($text, "")); $reviewer = stripslashes(check_html($reviewer, "nohtml")); $url_title = stripslashes(check_html($url_title, "nohtml")); $email = stripslashes(check_html($email, "nohtml")); $score = intval($score); $cover = stripslashes(check_html($cover, "nohtml")); $url = stripslashes(check_html($url, "nohtml")); $url_title = stripslashes(check_html($url_title, "nohtml")); $hits = intval($hits); $id = intval($id); include ('header.php'); OpenTable(); echo "
"; if ($title == "") { $error = 1; echo ""._INVALIDTITLE."
"; } if ($text == "") { $error = 1; echo ""._INVALIDTEXT."
"; } if (($score < 1) || ($score > 10)) { $error = 1; echo ""._INVALIDSCORE."
"; } if (($hits < 0) && ($id != 0)) { $error = 1; echo ""._INVALIDHITS."
"; } if ($reviewer == "" || $email == "") { $error = 1; echo ""._CHECKNAME."
"; } else if ($reviewer != "" && $email != "") if (!(eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,3}$",$email))) { $error = 1; /* eregi checks for a valid email! works nicely for me! */ echo ""._INVALIDEMAIL."
"; } if (($url_title != "" && $url =="") || ($url_title == "" && $url != "")) { $error = 1; echo ""._INVALIDLINK."
"; } else if (($url != "") && (!(eregi('(^http[s]*:[/]+)(.*)', $url)))) $url = "http://" . $url; /* If the user ommited the http, this nifty eregi will add it */ if ($error == 1) echo "
"._GOBACK.""; else { if ($date == "") $date = date("Y-m-d", time()); $year2 = substr($date,0,4); $month = substr($date,5,2); $day = substr($date,8,2); $fdate = date("F jS Y",mktime (0,0,0,$month,$day,$year2)); echo "
"; echo "

$title
"; echo "

"; if ($cover != "") echo "\"\""; echo "$text

"; echo ""._ADDED." $fdate
"; if ($multilingual == 1) { echo ""._LANGUAGE." $rlanguage
"; } echo ""._REVIEWER." $reviewer
"; echo ""._SCORE." "; display_score($score); if ($url != "") echo "
"._RELATEDLINK.": $url_title"; $id = intval($id); if ($id != 0) { echo "
"._REVIEWID.": $id
"; echo ""._HITS.": $hits
"; } echo "

"; echo "
"; $text = urlencode($text); echo "

"._LOOKSRIGHT." "; echo " "; echo ""; echo " "; $id = intval($id); if($id != 0) $word = ""._RMODIFIED.""; else $word = ""._RADDED.""; if(is_admin($admin)) echo "

"._NOTE." "._ADMINLOGGED." $word."; } CloseTable(); include ("footer.php"); } function send_review($date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id, $rlanguage) { global $admin, $EditedMessage, $prefix, $db, $module_name; include ('header.php'); if (eregi("", $text)) { $text = ereg_replace("","<!--pagebreak-->;",$text); } $id = intval($id); $title = stripslashes(FixQuotes(check_html($title, "nohtml"))); $text = stripslashes(Fixquotes(urldecode(check_html($text, "")))); $reviewer = stripslashes(check_html($reviewer, "nohtml")); $url_title = stripslashes(check_html($url_title, "nohtml")); $email = stripslashes(check_html($email, "nohtml")); $score = intval($score); $cover = stripslashes(check_html($cover, "nohtml")); $url = stripslashes(check_html($url, "nohtml")); $url_title = stripslashes(check_html($url_title, "nohtml")); $hits = intval($hits); if (eregi("<!--pagebreak-->", $text)) { $text = ereg_replace("<!--pagebreak-->","",$text); } OpenTable(); echo "

"._RTHANKS.""; $id = intval($id); if ($id != 0) echo " "._MODIFICATION.""; else echo ", $reviewer"; echo "!
"; if ((is_admin($admin)) && ($id == 0)) { $db->sql_query("INSERT INTO ".$prefix."_reviews VALUES (NULL, '$date', '$title', '$text', '$reviewer', '$email', '$score', '$cover', '$url', '$url_title', '1', '$rlanguage')"); echo ""._ISAVAILABLE.""; } else if ((is_admin($admin)) && ($id != 0)) { $db->sql_query("UPDATE ".$prefix."_reviews SET date='$date', title='$title', text='$text', ropendir($rxt\" name=\"title\" size=\"50\" value=\"$ency[title]"href="http:, uer] == 1))) { echo ""._SUBSCRIBED."
"; } elseif (($userinfo[newsletter] == 0) AND ($username == $cookie[1]) AND ($userinfo[user_password] == $cookie[2]) OR (is_admin($admin) AND ($userinfo[newsletter] == 0))) { echo ""._NOTSUBSCRIBED."
"; } if (is_user($user) AND $cookie[1] == "$username" OR is_admin($admin)) { $numpoints = $db->sql_fetchrow($db->sql_query("SELECT points FROM ".$user_prefix."_users WHERE username='$cookie[1]'")); $n_points = intval($numpoints['points']); echo ""._YOUHAVEPOINTS." $n_points
"; } if (is_active("Journal") AND $cookie[1] != $username) { $row3 = $db->sql_fetchrow($db->sql_query("SELECT jid FROM ".$prefix."_journal WHERE aid='$username' AND status='yes' ORDER BY pdate,jid DESC LIMIT 0,1")); $jid = intval($row3['jid']); if ($jid != "" AND isset($jid)) { echo "[ "._READMYJOURNAL." ]
"; } } if (is_admin($admin)) { echo "[ "._EDITUSER." ]
"; } if (((is_user($user) AND $cookie[1] != $username) OR is_admin($admin)) AND is_active("Private_Messages")) { echo "
[ "._USENDPRIVATEMSG." $username_pm ]
\n"; } echo "
"; } else { echo "
"._NOINFOFOR." $username
"; } CloseTable(); if ($my_headlines == 1 AND ($username == $cookie[1]) AND ($userinfo[user_password] == $cookie[2])) { echo "
"; OpenTable(); echo "
"._MYHEADLINES."

" .""._SELECTASITE."

" ."" ."" ."" ."" ."" ."" .""._ORTYPEURL."

" ."
" ."" ."" ."" ."" ."  " ."
" ."

"; if ($hid != 0 OR ($hid == 0 AND $url != "0" AND $url != "http://") AND $url != "") { if ($hid != 0) { $row5 = $db->sql_fetchrow($db->sql_query("SELECT sitename, headlinesurl FROM ".$prefix."_headlines WHERE hid='$hid'")); $nsitename = $row5['sitename']; $url = $row5['headlinesurl']; $title = stripslashes(check_html($nsitename, "nohtml")); $siteurl = eregi_replace("http://", "", $url); $siteurl = explode("/", $siteurl); } else { if (!ereg("http://", $url)) { $url = "http://$url"; o } $siteurl = eregi_replace("http://", "", $url); $siteurl = explode("/", $siteurl); $title = "http://$siteurl[0]"; } $rdf = parse_url($url); $fp = fsockopen($rdf['host'], 80, $errno, $errstr, 15); if (!$fp) { $content = "
"._RSSPROBLEM."
"; } if ($fp) { fputs($fp, "GET " . $rdf['path'] . "?" . $rdf['query'] . " HTTP/1.0\r\n"); fputs($fp, "HOST: " . $rdf['host'] . "\r\n\r\n"); $string = ""; while(!feof($fp)) { $pagetext = fgets($fp,300); $string .= chop($pagetext); } fputs($fp,"Connection: close\r\n\r\n"); fclose($fp); $items = explode("",$string); $content = ""; for ($i=0;$i<10;$i++) { $link = ereg_replace(".*","",$items[$i]); $link = ereg_replace(".*","",$link); $title2 = ereg_replace(".*","",$items[$i]); $title2 = ereg_replace(".*","",$title2); if ($items[$i] == "" AND $cont != 1) { $content = "
"._RSSPROBLEM."
"; } else { if (strcmp($link,$title2) AND $items[$i] != "") { $cont = 1; $content .= "$title2
\n"; } } } } if ($content != "") { OpenTable2(); echo "
"._HEADLINESFROM." $title

"; echo "$content"; CloseTable2(); } elseif (($cont == 0) OR ($content == "")) { OpenTable2(); echo "
"._RSSPROBLEM."

"; CloseTable2(); } echo "
"; } CloseTable(); } if ($broadcast_msg == 1 AND ($username == $cookie[1]) AND ($userinfo[user_password] == $cookie[2])) { echo "
"; OpenTable(); echo "
"._BROADCAST."

"._BROADCASTTEXT."

" ."
" ."" ."" ."  " ."
"; CloseTable(); } if (is_active("Private_Messages") AND ($username == $cookie[1]) AND ($userinfo[user_password] == $cookie[2])) { echo "
"; OpenTable(); echo "
"._PRIVATEMESSAGES."

"; $numrow = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_bbprivmsgs WHERE privmsgs_to_userid='$userinfo[user_id]' AND (privmsgs_type='1' OR privmsgs_type='5' OR privmsgs_type='0')")); if (is_active("Members_List")) { $mem_list = ""._BROWSEUSERS.""; } else { $mem_list = ""; } if (is_active("Search")) { $mod_search = ""._SEARCHUSERS.""; } else { $mod_search = ""; } if ($mem_list != "" AND $mod_search != "") { $a = " | "; } else { $a = ""; } if ($mem_list != "" OR $mod_search != "") { $links = "[ $mem_list $a $mod_search ]"; } elseif ($mem_list == "" AND $mod_search == "") { $links = ""; } echo ""._YOUHAVE." $numrow "._PRIVATEMSG."

" ."
" .""._USENDPRIVATEMSG.":   $links" ."" ."
"; CloseTable(); } if ($articlecomm == 1) { echo "
"; OpenTable(); echo ""._LAST10COMMENTS." $userinfo[username]:
"; $result6 = $db->sql_query("SELECT tid, sid, subject FROM ".$prefix."_comments WHERE name='$userinfo[username]' ORDER BY tid DESC LIMIT 0,10"); while($row6 = $db->sql_fetchrow($result6)) { $tid = intval($row6['tid']); $sid = intval($row6['sid']); $subject = stripslashes(check_html($row6[subject], "nohtml")); echo "
  • $subject
    "; } CloseTable(); } echo "
    "; OpenTable(); echo ""._LAST10SUBMISSIONS." $userinfo[username]:
    "; $result7 = $db->sql_query("SELECT sid, title FROM ".$prefix."_stories WHERE informant='$userinfo[username]' ORDER BY sid DESC LIMIT 0,10"); while($row7 = $db->sql_fetchrow($result7)) { $sid = intval($row7['sid']); $title = stripslashes(check_html($row7['title'], "nohtml")); echo "
  • $title
    "; } CloseTable(); include("footer.php"); } function main($user) { global $stop, $module_name, $redirect, $mode, $t, $f, $gfx_chk; if(!is_user($user)) { include("header.php"); if ($stop) { OpenTable(); echo "
    "._LOGININCOR."
    \n"; CloseTable(); echo "
    \n"; } else { OpenTable(); echo "
    "._USERREGLOGIN."
    \n"; CloseTable(); echo "
    \n"; } if (!is_user($user)) { OpenTable(); mt_srand ((double)microtime()*1000000); $maxran = 1000000; $random_num = mt_rand(0, $maxran); echo "
    \n" .""._USERLOGIN."

    \n" ."\n" ."\n"; if (extension_loaded("gd") AND ($gfx_chk == 2 OR $gfx_chk == 4 OR $gfx_chk == 5 OR $gfx_chk == 7)) { echo "\n" ."\n" ."\n"; } echo "
    \n" .""._NICKNAME.":
    "._PASSWORD.":
    "._SECURITYCODE.": "._SECURITYCODE."
    "._TYPESECCODE.":
    \n" ."\n" ."\n" ."\n" ."\n" ."

    \n\n" ."
    [ "._PASSWORDLOST." | "._REGNEWUSER." ]
    \n"; CloseTable(); } include("footer.php"); } elseif (is_user($user)) { global $cookie; cookiedecode($user); userinfo($cookie[1]); } } function gfx($random_num) { global $prefix, $db, $module_name; require("config.php"); $datekey = date("F j"); $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey)); $code = substr($rcode, 2, 6); $image = ImageCreateFromJPEG("modules/$module_name/images/code_bg.jpg"); $text_color = ImageColorAllocate($image, 80, 80, 80); Header("Content-type: image/jpeg"); ImageString ($image, 5, 12, 2, $code, $text_color); ImageJPEG($image, '', 75); ImageDestroy($image); die(); } function new_user() { global $my_headlines, $module_name, $db, $gfx_chk; if (!is_user($user)) { mt_srand ((double)microtime()*1000000); $maxran = 1000000; $random_num = mt_rand(0, $maxran); include("header.php"); OpenTable(); echo "
    "._USERREGLOGIN."
    \n"; CloseTable(); echo "
    \n"; OpenTable(); echo "
    \n" .""._REGNEWUSER." ("._ALLREQUIRED.")

    \n" ."\n" .""; echo ""; echo ""; echo ""; echo ""; echo "" ."" ."" ."" ."
    " ."" .""; $avatar_category = ( !empty($HTTP_POST_VARS['avatarcategory']) ) ? $HTTP_POST_VARS['avatarcategory'] : ''; $direktori = "modules/Forums/images/avatars"; $dir = @opendir($direktori); $avatar_images = array(); while( $file = @readdir($dir) ) { if( $file != '.' && $file != '..' && !is_file($direktori . '/' . $file) && !is_link($direktori . '/' . $file) ) { $sub_dir = @opendir($direktori . '/' . $file); $avatar_row_count = 0; $avatar_col_count = 0; while( $sub_file = @readdir($sub_dir) ) { if( preg_match('/(\.gif$|\.png$|\.jpg|\.jpeg)$/is', $sub_file) ) { $avatar_images[$file][$avatar_row_count][$avatar_col_count] = $file . '/' . $sub_file; $avatar_name[$file][$avatar_row_count][$avatar_col_count] = ucfirst(str_replace("_", " ", preg_replace('/^(.*)\..*$/', '\1', $sub_file))); $avatar_col_count++; if( $avatar_col_count == 5 ) { $avatar_row_count++; $avatar_col_count = 0; } } } } } @closedir($dir); @ksort($avatar_images); @reset($avatar_images); if( empty($category) ) { list($category, ) = each($avatar_images); } @reset($avatar_images); $s_categories = ''; $sql = "SELECT * FROM ".$prefix."_bbconfig"; $result = $db->sql_query($sql); while ( $row = $db->sql_fetchrow($result) ) { $board_config[$row['config_name']] = $row['config_value']; } if ($userinfo[user_avatar_type] == 1) { $userinfo[user_avatar] = $board_config['avatar_path']."/".$userinfo[user_avatar]; } elseif ($userinfo[user_avatar_type] == 2) { $userinfo[user_avatar] = $userinfo[user_avatar]; } else { $userinfo[user_avatar] = $board_config[avatar_gallery_path]."/".$userinfo[user_avatar]; } echo ""; echo "
    "; if ($board_config['allow_avatar_local']) { echo "" ."" ."" .""; } else { echo "" .""; } if ($board_config['allow_avatar_upload']) { echo "" ."" ."" .""; } else { echo "" ."" ."" .""; } if ($board_config['allow_avatar_remote']) { echo "" ."" .""; } else { echo "" .""; } echo "
    "._NICKNAME.":sql_fetchrow($resultmonth); $db->sql_freeresult($resultmonth); $result = $db->sql_query("select month,hits from ".$prefix."_stats_month where year='$nowyear'"); echo "
    "._MONTLYSTATS." $nowyear

    "; echo ""; echo ""; while($row = $db->sql_fetchrow($result)) { $month = intval($row['month']); $hits = intval($row['hits']); echo ""; echo ""; } $db->sql_freeresult($result); echo "
    "._UMONTH.""._SPAGESVIEWS."
    "; if ($month != $nowmonth) { echo ""; getmonth($month); echo ""; } else { getmonth($month); } echo ""; $WidthIMG = round(100 * $hits/$TotalHitsMonth,0); echo "\"\"\"\""; echo "\"\" ($hits)
    "; } function showDailyStats($year,$month,$nowdate){ global $prefix,$bgcolor1,$bgcolor2,$db, $ThemeSel, $module_name; $l_size = getimagesize("themes/$ThemeSel/images/leftbar.gif"); $m_size = getimagesize("themes/$ThemeSel/images/mainbar.gif"); $r_size = getimagesize("themes/$ThemeSel/images/rightbar.gif"); $resulttotal = $db->sql_query("SELECT sum(hits) as TotalHitsDate from ".$prefix."_stats_date where year='$year' and month='$month'"); list($TotalHitsDate) = $db->sql_fetchrow($resulttotal); $db->sql_freeresult($resulttotal); $result = $db->sql_query("select year,month,date,hits from ".$prefix."_stats_date where year='$year' and month='$month' order by date"); $total = $db->sql_numrows($result); echo "
    "._DAILYSTATS." "; getmonth($month); echo ", $year

    "; echo ""; echo ""; while($row = $db->sql_fetchrow($result)) { $year = intval($row['year']); $month = intval($row['month']); $date = intval($row['date']); $hits = intval($row['hits']); echo "" .""; } $db->sql_freeresult($result); echo "
    "._DATE.""._SPAGESVIEWS."
    "; if ($date != $nowdate) { echo ""; echo $date; echo ""; } else { echo $date; } echo ""; if ($hits == 0) { $WidthIMG = 0; $d_percent = 0; } else { $WidthIMG = round(100 * $hits/$TotalHitsDate,0); $d_percent = substr(100 * $hits / $TotalHitsDate, 0, 5); } echo "\"\"\"\"" ."\"\" $d_percent% ($hits)
    "; } function showHourlyStats($year,$month,$date){ global $prefix,$bgcolor1,$bgcolor2,$db, $ThemeSel; $l_size = getimagesize("themes/$ThemeSel/images/leftbar.gif"); $m_size = getimagesize("themes/$ThemeSel/images/mainbar.gif"); $r_size = getimagesize("themes/$ThemeSel/images/rightbar.gif"); $resulttotal = $db->sql_query("SELECT sum(hits) as TotalHitsHour from ".$prefix."_stats_hour where year='$year' and month='$month' and date='$date'"); list($TotalHitsHour) = $db->sql_fetchrow($resulttotal); $db->sql_freeresult($resulttotal); $nowdate = date("d-m-Y"); $nowdate_arr = explode("-",$nowdate); echo "
    "._HOURLYSTATS." "; echo getmonth($month)." ".$date.", " .$year."

    "; echo ""; echo ""; for ($k = 0;$k<=23;$k++) { $result = $db->sql_query("select hour,hits from ".$prefix."_stats_hour where year='$year' and month='$month' and date='$date' and hour='$k'"); if ($db->sql_numrows($result) == 0){ $hits=0; } else { $row = $db->sql_fetchrow($result); $hour = intval($row['hour']); $hits = intval($row['hits']); } echo "" .""; if ($email=='') { echo ""; if ($owneremail=='') { echo "" ."" ."" .""; if ($colorswitch == $bgcolor2) { $colorswitch = $bgcolor1; } else { $colorswitch = $bgcolor2; } } } echo "
    "._HOUR.""._SPAGESVIEWS."
    "; if ($k < 10) { $a = "0$k"; } else { $a = $k; } echo "$a:00 - $a:59"; $a = ""; echo ""; if ($hits == 0) { $WidthIMG = 0; $d_percent = 0; } else { $WidthIMG = round(100 * $hits/$TotalHitsHour,0); $d_percent = substr(100 * $hits / $TotalHitsHourrES; }er.php"); OpenTable(); echo "
    "._SORRYNOUSERINFO."
    "; CloseTable(); include("footer.php"); } else { $host_name = $_SERVER["REMOTE_ADDR"]; $row = $db->sql_fetchrow($result); $user_email = $row['user_email']; $user_password = $row['user_password']; $areyou = substr($user_password, 0, 10); if ($areyou==$code) { $newpass=makepass(); $message = ""._USERACCOUNT." '$username' "._AT." $sitename "._HASTHISEMAIL." "._AWEBUSERFROM." $host_name "._HASREQUESTED."\n\n"._YOURNEWPASSWORD." $newpass\n\n "._YOUCANCHANGE." $nukeurl/modules.php?name=$module_name\n\n"._IFYOUDIDNOTASK.""; $subject = ""._USERPASSWORD4." $username"; mail($user_email, $subject, $message, "From: $adminmail\nX-Mailer: PHP/" . phpversion()); /* Next step: add the new password to the database */ $cryptpass = md5($newpass); $query = "UPDATE ".$user_prefix."_users SET user_password='$cryptpass' WHERE username='$username'"; if (!$db->sql_query($query)) { echo ""._UPDATEFAILED.""; } include ("header.php"); OpenTable(); echo "
    "._PASSWORD4." $username "._MAILED."

    "._GOBACK."
    "; CloseTable(); include ("footer.php"); /* If no Code, send it */ } else { $result2 = $db->sql_query("SELECT user_email, user_password FROM ".$user_prefix."_users WHERE username='$username'"); if($db->sql_numrows($result2) == 0) { include ("header.php"); OpenTable(); echo "
    "._SORRYNOUSERINFO."
    "; CloseTable(); include ("footer.php"); } else { $host_name = $_SERVER["REMOTE_ADDR"]; $row2 = $db->sql_fetchrow($result2); $user_email = $row2['user_email']; $user_password = $row2['user_password']; $areyou = substr($user_password, 0, 10); $message = ""._USERACCOUNT." '$username' "._AT." $sitename "._HASTHISEMAIL." "._AWEBUSERFROM." $host_name "._CODEREQUESTED."\n\n"._YOURCODEIS." $areyou \n\n"._WITHTHISCODE." $nukeurl/modules.php?name=$module_name&op=pass_lost\n"._IFYOUDIDNOTASK2.""; $subject=""._CODEFOR." $username"; mail($user_email, $subject, $message, "From: $adminmail\nX-Mailer: PHP/" . phpversion()); include ("header.php"); OpenTable(); echo "
    "._CODEFOR." $username "._MAILED."

    "._GOBACK."
    "; CloseTable(); include ("footer.php"); } } } } function docookie($setuid, $setusername, $setpass, $setstorynum, $setumode, $setuorder, $setthold, $setnoscore, $setublockon, $settheme, $setcommentmax) { $info = base64_encode("$setuid:$setusername:$setpass:$setstorynum:$setumode:$setuorder:$setthold:$setnoscore:$setublockon:$settheme:$setcommentmax"); setcookie("user","$info",time()+2592000); } function login($username, $user_password, $redirect, $mode, $f, $t, $random_num, $gfx_check) { global $setinfo, $user_prefix, $db, $module_name, $pm_login, $prefix; include("config.php"); $result = $db->sqqUWIL $owneremail = stripslashes($row4['user_email']); $url = urlencode($url); echo "
    $title" ."$modifysubmitter"; } else { echo "$modifysubmitter"; } echo "$owner"; } else { echo "$owner"; } echo "
    X
    " ."
    X
    " ."
    X
    " ."
    "; CloseTable(); include ("footer.php"); } function LinksDelBrokenLinks($lid) { global $prefix, $db, $admin_file; $lid = intval($lid); $db->sql_query("delete from " . $prefix . "_links_modrequest where lid='$lid'"); $db->sql_query("delete from " . $prefix . "_links_links where lid='$lid'"); Header("Location: ".$admin_file.".php?op=LinksListBrokenLinks"); } function LinksIgnoreBrokenLinks($lid) { global $prefix, $db, $admin_file; $db->sql_query("delete from " . $prefix . "_links_modrequest where lid='$lid' and brokenlink='1'"); Header("Location: ".$admin_file.".php?op=LinksListBrokenLinks"); } function LinksListModRequests() { global $bgcolor2, $prefix, $db, $user_prefix, $admin_file; include ("header.php"); GraphicAdmin(); OpenTable(); echo "
    " . _WEBLINKSADMIN . "
    "; CloseTable(); echo "
    "; OpenTable(); $result = $db->sql_query("SELECT requestid, lid, cid, sid, title, url, description, modifysubmitter from " . $prefix . "_links_modrequest where brokenlink='0' order by requestid"); $totalmodrequests = $db->sql_numrows($result); echo "
    " . _USERMODREQUEST . " ($totalmodrequests)



    "; echo "
    "; while($row = $db->sql_fetchrow($result)) { $requestid = intval($row['requestid']); $lid = intval($row['lid']); $cid = intval($row['cid']); $sid = intval($row['sid']); $title = stripslashes($row['title']); $url = $row['url']; $description = stripslashes($row['description']); $xdescription = eregi_replace("sql_fetchrow($db->sql_query("SELECT cid, sid, title, url, description, submitter from " . $prefix . "_links_links where lid='$lid'")); $origcid = intval($row2['cid']); $origsid = intval($row2['sid']); $origtitle = stripslashes($row2['title']); $origurl = $row2['url']; $origdescription = stripslashes($row2['description']); $xorigdescription = eregi_replace("sql_query("SELECT title from " . $prefix . "_links_categories where cid='$cid'"); $result5 = $db->sql_query("SELECT title from " . $prefix . "_links_categories where cid='$origcid'"); $result7 = $db->sql_query("SELECT user_email from " . $user_prefix . "_users where username='$modifysubmitter'"); $result8 = $db->sql_query("SELECT user_email from " . $user_prefix . "_users where username='$owner'"); $row3 = $db->sql_fetchrow($result3); $cidtitle = stripslashes($row3['title']); $row5 = $db->sql_fetchrow($result5); $origcidtitle = stripslashes($row5['title']); $row7 = $db->sql_fetchrow($result7); $modifysubmitteremail = $row7['user_email']; $row8 = $db->sql_fetchrow($result8); $owneremail = $row8['user_email']; if ($owner=="") { $owner="administration"; } if ($origsidtitle=="") { $origsidtitle= "-----"; } if ($sidtitle=="") { $sidtitle= "-----"; } echo "" ."" ."" ."" ."" ."" ."" ."
    " ."" ."" ."" ."" ."" ."" ."" ."" ."" ."
    " . _ORIGINAL . "
    " . _DESCRIPTION . ":
    $xorigdescription
    " . _TITLE . ": $origtitle
    " . _URL . ": $origurl
    " . _CATEGORY . ": $origcidtitle
    " . _SUBCATEGORY . ": $origsidtitle
    " ."
    " ."" ."" ."" ."" ."" ."" ."" ."" ."" ."
    " . _PROPOSED . "
    " . _DESCRIPTION . ":
    $xdescription
    " . _TITLE . ": $title
    " . _URL . ": $url
    " . _CATEGORY . ": $cidtitle
    " . _SUBCATEGORY . ": $sidtitle
    " ."
    " ."" .""; if ($modifysubmitteremail=="") { echo ""; } else { echo ""; } if ($owneremail=="") { echo ""; } else { echo ""; } echo "
    " . _SUBMITTER . ": $modifysubmitter" . _SUBMITTER . ": $modifysubmitter" . _OWNER . ": $owner" . _OWNER . ": $owner( " . _ACCEPT . " / " . _IGNORE . " )
    "; } if ($totalmodrequests == 0) { echo "
    " . _NOMODREQUESTS . "


    "; } echo "
    "; CloseTable(); include ("footer.php"); } function LinksChangeModRequests($requestid) { global $prefix, $db, $admin_file; $requestid = intval($requestid); $result = $db->sql_query("SELECT requestid, lid, cid, sid, title, url, description from " . $prefix . "_links_modrequest where requestid='$requestid'"); while ($row = $db->sql_fetchrow($result)) { $requestid = intval($row['requestid']); $lid = intval($row['lid']); $cid = intval($row['cid']); $sid = intval($row['sid']); $title = stripslashes($row['title']); $url = $row['url']; $description = stripslashes($row['description']); $db->sql_query("UPDATE " . $prefix . "_links_links SET cid='$cid', sid='$sid', title='$title', url='$url', description='$description' WHERE lid = '$lid'"); } $db->sql_query("delete from " . $prefix . "_links_modrequest where requestid=$requestid"); Header("Location: ".$admin_file.".php?op=LinksListModRequests"); } function LinksChangeIgnoreRequests($requestid) { global $prefix, $db, $admin_file; $requestid = intval($requestid); $db->sql_query("delete from " . $prefix . "_links_modrequest where requestid=$requestid"); Header("Location: ".$admin_file.".php?op=LinksListModRequests"); } function LinksCleanVotes() { global $prefix, $db, $admin_file; $result = $db->sql_query("SELECT distinct ratinglid FROM " .$prefix . "_links_votedata"); while ($row = $db->sql_fetchrow($result)) { $lid = intval($row['ratinglid']); $voteresult = $db->sql_query("SELECT rating, ratinguser, ratingcomments FROM " . $prefix . "_links_votedata WHERE ratinglid = '$lid'"); $totalvotesDB = $db->sql_numrows($voteresult); include ("voteinclude.php"); $db->sql_query("UPDATE " . $prefix . "_links_links SET linkratingsummary='$finalrating', totalvotes='$totalvotesDB', totalcomments='$truecomments' WHERE lid = '$lid'"); } Header("Location: ".$admin_file.".php?op=Links"); } function LinksModLinkS($lid, $title, $url, $description, $name, $email, $hits, $cat) { global $prefix, $db, $admin_file; $cat = explode("-", $cat); if ($cat[1]=="") { $cat[1] = 0; } $title = stripslashes(FixQuotes($title)); $url = stripslashes(FixQuotes($url)); $description = stripslashes(FixQuotes($description)); $name = stripslashes(FixQuotes($name)); $email = stripslashes(FixQuotes($email)); $db->sql_query("update " . $prefix . "_links_links set cid='$cat[0]', sid='$cat[1]', title='$title', url='$url', description='$description', name='$name', email='$email', hits='$hits' where lid='$lid'"); Header("Location: ".$admin_file.".php?op=Links"); } function LinksDelLink($lid) { global $prefix, $db, $admin_file; $lid = intval($lid); $db->sql_query("delete from " . $prefix . "_links_links where lid='$lid'"); Header("Location: ".$admin_file.".php?op=Links"); } function LinksModCat($cat) { global $prefix, $db, $admin_file; include ("header.php"); GraphicAdmin(); OpenTable(); echo "
    " . _WEBLINKSADMIN . "
    "; CloseTable(); echo "
    "; $cat = explode("-", $cat); if ($cat[1]=="") { $cat[1] = 0; } OpenTable(); echo "
    " . _MODCATEGORY . "


    "; if ($cat[1]==0) { $row = $db->sql_fetchrow($db->sql_query("SELECT title, cdescription from " . $prefix . "_links_categories where cid='$cat[0]'")); $title = stripslashes($row['title']); $cdescription = stripslashes($row['cdescription']); echo "" ."" . _NAME . ":
    " ."" . _DESCRIPTION . ":

    " ."" ."" ."" ."
    " ."" ."
    " ."" ."" ."" ."
    "; } else { $row2 = $db->sql_fetchrow($db->sql_query("SELECT title from " . $prefix . "_links_categories where cid='$cat[0]'")); $ctitle = stripslashes($row2['title']); $row3 = $db->sql_fetchrow($db->sql_query("SELECT title from " . $prefix . "_links_subcategories where sid='$cat[1]'")); $stitle = stripslashes($row3['title']); echo "
    " ."" . _CATEGORY . ": $ctitle
    " ."" . _SUBCATEGORY . ":
    " ."" ."" ."" ."" ."
    " ."" ."
    " ."" ."" ."" ."" ."
    "; } CloseTable(); include("footer.php"); } function LinksModCatS($cid, $sid, $sub, $title, $cdescription) { global $prefix, $db, $admin_file; $cid = intval($cid); if ($sub==0) { $db->sql_query("update " . $prefix . "_links_categories set title='$title', cdescription='$cdescription' where cid='$cid'"); } else { $db->sql_query("update " . $prefix . "_links_subcategories set title='$title' where sid='$sid'"); } Header("Location: ".$admin_file.".php?op=Links"); } function LinksDelCat($cid, $sid, $sub, $ok=0) { global $prefix, $db, $admin_file; include("header.php"); $cid = intval($cid); if($ok==1) { if ($sub>0) { $db->sql_query("delete from " . $prefix . "_links_categories where cid='$cid'"); $db->sql_query("delete from " . $prefix . "_links_links where cid='$cid'"); } else { $db->sql_query("delete from " . $prefix . "_links_links where cid='$cid'"); // suppression des liens de catégories filles $result2 = $db->sql_query("SELECT cid from " . $prefix . "_links_categories where parentid='$cid'"); while ($row2 = $db->sql_fetchrow($result2)) { $cid2 = intval($row2['cid']); $db->sql_query("delete from " . $prefix . "_links_links where cid='$cid2'"); } $db->sql_query("delete from " . $prefix . "_links_categories where parentid='$cid'"); $db->sql_query("delete from " . $prefix . "_links_categories where cid='$cid'"); } Header("Location: ".$admin_file.".php?op=Links"); } else { $result = $db->sql_query("SELECT * from " . $prefix . "_links_categories where parentid='$cid'"); $nbsubcat = $db->sql_numrows($result); $result3 = $db->sql_query("SELECT cid from " . $prefix . "_links_categories where parentid='$cid'"); while ($row3 = $db->sql_fetchrow($result3)) { $cid2 = intval($row3['cid']); $result4 = $db->sql_query("SELECT * from " . $prefix . "_links_links where cid='$cid2'"); $nblink += $db->sql_numrows($result4); } GraphicAdmin(); OpenTable(); echo "
    "; echo "" . _EZTHEREIS . " $nbsubcat " . _EZSUBCAT . " " . _EZATTACHEDTOCAT . "
    "; echo "" . _EZTHEREIS . " $nblink " . _links . " " . _EZATTACHEDTOCAT . "
    "; echo "" . _DELEZLINKCATWARNING . "

    "; } echo "[ " . _YES . " | " . _NO . " ]

    "; CloseTable(); include("footer.php"); } function LinksDelNew($lid) { global $prefix, $db, $admin_file; $lid = intval($lid); $db->sql_query("delete from " . $prefix . "_links_newlink where lid='$lid'"); Header("Location: ".$admin_file.".php?op=Links"); } function LinksAddCat($title, $cdescription) { global $prefix, $db, $admin_file; $parentid=0; $result = $db->sql_query("SELECT cid from " . $prefix . "_links_categories where title='$title'"); $numrows = $db->sql_numrows($result); if ($numrows>0) { include("header.php"); GraphicAdmin(); OpenTable(); echo "
    " ."" . _ERRORTHECATEGORY . " $title " . _ALREADYEXIST . "

    " ."" . _GOBACK . "

    "; CloseTable(); include("footer.php"); } else { $db->sql_query("insert into " . $prefix . "_links_categories values (NULL, '$title', '$cdescription', '$parentid')"); Header("Location: ".$admin_file.".php?op=Links"); } } function LinksAddSubCat($cid, $title, $cdescription) { global $prefix, $db, $admin_file; $cid = intval($cid); $result = $db->sql_query("SELECT cid from " . $prefix . "_ bgcolor='$bgcolor3'>"; if ($userinfo[user_allowbbcode] == 1) { echo ""._YES."  " .""._NO.""; } elseif ($userinfo[user_allowbbcode] == 0) { echo ""._YES."  " .""._NO.""; } echo "
    "._ALLOWHTMLCODE.""; if ($userinfo[user_allowhtml] == 1) { echo ""._YES."  " .""._NO.""; } elseif ($userinfo[user_allowhtml] == 0) { echo ""._YES."  " .""._NO.""; } echo "
    "._ALLOWSMILIES.""; if ($userinfo[user_allowsmile] == 1) { echo ""._YES."  " .""._NO.""; } elseif ($userinfo[user_allowsmile] == 0) { echo ""._YES."  " .""._NO.""; } echo "
    "._FORUMSTIME.""; echo ""; echo "
    "._FORUMSDATE.":
    "._FORUMSDATEMSG."
    "; echo ""; echo "
    "._SIGNATURE.":
    "._OPTIONAL."

    "._255CHARMAX."
    "._EXTRAINFO.":
    "._OPTIONAL."

    "._CANKNOWABOUT."
    "._PASSWORD.":   
    "._TYPENEWPASSWORD."
    " ."" ."" ."" ."" ."
    " ."
    Avatar control panel
    " ."
    Displays a small graphic image below your details in forum posts and on your profile. Only one image can be displayed at a time, its width can be no greater than ".$board_config['avatar_max_width']." pixels, the height no greater than ".$board_config['avatar_max_height']." pixels, and the file size no more than ".CoolSize($board_config['avatar_filesize']).".Current Avatar
    \"\"
    Select Avatar from gallery:".$s_categories."  
    Select Avatar from gallery:Gallery Avatars Currently Disabled
    Upload Avatar from your machine:Upload Through Forum Profile
    Upload Avatar from a URL:
    Enter the URL of the location containing the Avatar image and click on the submit button below, the Avatar image will be copied to this site.
    Upload Through Forum Profile
    Upload Avatar from your machine:Currently Disabled
    Upload Avatar from a URL:
    Enter the URL of the location containing the Avatar image and click on the submit button below, the Avatar image will be copied to this site.
    Currently Disabled
    Link to off-site Avatar:
    Enter the URL of the location containing the Avatar image you wish to link to and click on the submit button below.
    Link to off-site Avatar:
    Enter the URL of the location containing the Avatar image you wish to link to and click on the submit button below.
    Currently Disabled
    " ."" ."
    "; CloseTable(); include("footer.php"); } else { main($user); } } function saveuser($realname, $user_email, $femail, $user_website, $user_icq, $user_aim, $user_yim, $user_msnm, $user_from, $user_occ, $user_interests, $newsletter, $user_viewemail, $user_allow_viewonline, $user_notify, $user_notify_pm, $user_popup_pm, $user_attachsig, $user_allowbbcode, $user_allowhtml, $user_allowsmile, $user_timezone, $user_dateformat, $user_sig, $bio, $user_password, $vpass, $username, $user_id) { global $user, $cookie, $userinfo, $EditedMessage, $user_prefix, $db, $module_name, $minpass; cookiedecode($user); $check = $cookie[1]; $check2 = $cookie[2]; $sql = "SELECT user_id, user_password FROM ".$user_prefix."_users WHERE username='$check'"; $result = $db->sql_query($sql); $row = $db->sql_fetchrow($result); $vuid = intval($row[user_id]); $ccpass = $row[user_password]; $user_sig = htmlspecialchars($user_sig); $user_email = check_html($user_email, nohtml); $femail = check_html($femail, nohtml); $user_website = check_html($user_website, nohtml); $bio = check_html($bio, nohtml); $user_icq = check_html($user_icq, nohtml); $user_aim = check_html($user_aim, nohtml); $user_yim = check_html($user_yim, nohtml); $user_msnm = check_html($user_msnm, nohtml); $user_occ = check_html($user_occ, nohtml); $user_from = check_html($user_from, nohtml); $user_interests = check_html($user_interests, nohtml); $realname = check_html($realname, nohtml); $user_avatar = "$user_avatar"; if (($user_id == $vuid) AND ($check2 == $ccpass)) { if (!eregi("http://", $user_website)) { $user_website = "http://$user_website"; } if ((isset($user_password)) && ("$user_password" != "$vpass")) { echo "
    "._PASSDIFFERENT."
    "; } elseif (($user_password != "") && (strlen($user_password) < $minpass)) { echo "
    "._YOUPASSMUSTBE." $minpass "._CHARLONG."
    "; } else { if ($bio) { filter_text($bio); $bio = $EditedMessage; $bio = FixQuotes($bio); } if ($user_password != "") { cookiedecode($user); $db->sql_query("LOCK TABLES ".$user_prefix."_users WRITE"); $user_password = md5($user_password); $newsletter = intval($newsletter); $user_allow_viewonline = intval($user_allow_viewonline); $user_notify = intval($user_notify); $user_notify_pm = intval($user_notify_pm); $user_popup_pm = intval($user_popup_pm); $user_allowbbcode = intval($user_allowbbcode); $user_allowhtml = intval($user_allowhtml); $user_allowsmile = intval($user_allowsmile); $user_id = intval($user_id); $db->sql_query("UPDATE ".$user_prefix."_users SET name='$realname', user_email='$user_email', femail='$femail', user_website='$user_website', user_password='$user_password', bio='$bio', user_icq='$user_icq', user_occ='$user_occ', user_from='$user_from', user_interests='$user_interests', user_sig='$user_sig', user_aim='$user_aim', user_yim='$user_yim', user_msnm='$user_msnm', newsletter='$newsletter', user_viewemail='$user_viewemail', user_allow_viewonline='$user_allow_viewonline', user_notify='$user_notify', user_notify_pm='$user_notify_pm', user_popup_pm='$user_popup_pm', user_attachsig='$user_attachsig', user_allowbbcode='$user_allowbbcode', user_allowhtml='$user_allowhtml', user_allowsmile='$user_allowsmile', user_timezone='$user_timezone', user_dateformat='$user_dateformat' WHERE user_id='$user_id'"); $sql = "SELECT user_id, username, user_password, storynum, umode, uorder, thold, noscore, ublockon, theme FROM ".$user_prefix."_users WHERE username='$username' AND user_password='$user_password'"; $result = $db->sql_query($sql); if ($db->sql_numrows($result) == 1) { $userinfo = $db->sql_fetchrow($result); docookie($userinfo[user_id],$userinfo[username],$userinfo[user_password],$userinfo[storynum],$userinfo[umode],$userinfo[uorder],$userinfo[thold],$userinfo[noscore],$userinfo[ublockon],$userinfo[theme],$userinfo[commentmax]); } else { echo "
    "._SOMETHINGWRONG."

    "; } $db->sql_query("UNLOCK TABLES"); } else { $db->sql_query("UPDATE ".$user_prefix."_users SET name='$realname', user_email='$user_email', femail='$femail', user_website='$user_website', bio='$bio', user_icq='$user_icq', user_occ='$user_occ', user_from='$user_from', user_interests='$user_interests', user_sig='$user_sig', user_aim='$user_aim', user_yim='$user_yim', user_msnm='$user_msnm', newsletter='$newsletter', user_viewemail='$user_viewemail', user_allow_viewonline='$user_allow_viewonline', user_notify='$user_notify', user_notify_pm='$user_notify_pm', user_popup_pm='$user_popup_pm', user_attachsig='$user_attachsig', user_allowbbcode='$user_allowbbcode', user_allowhtml='$user_allowhtml', user_allowsmile='$user_allowsmile', user_timezone='$user_timezone', user_dateformat='$user_dateformat' WHERE user_id='$user_id'"); } Header("Location: modules.php?name=$module_name"); } } } function edithome() { global $user, $userinfo, $Default_Theme, $cookie, $broadcast_msg, $user_news, $storyhome, $module_name; cookiedecode($user); getusrinfo($user); if ((is_user($user)) AND (strtolower($userinfo['username']) == strtolower($cookie[1])) AND ($userinfo['user_password'] == $cookie[2])) { include ("header.php"); OpenTable(); echo "
    "._HOMECONFIG."
    "; CloseTable(); echo "
    "; OpenTable(); nav(); CloseTable(); echo "
    "; if($userinfo[theme]=="") { $userinfo[theme] = "$Default_Theme"; } OpenTable(); echo "
    "; if ($user_news == 1) { echo ""._NEWSINHOME." "._MAX127." " ."" ."

    "; } else { echo ""; }x>=$perpage) { echo "  [ " ." "._NEXT." >> ]"; } } echo "

    " .""._TRY2SEARCH." \"$the_query\" "._INOTHERSENGINES."
    " ."Alta Vista - " ."HotBot - " ."Infoseek - " ."Deja News - " ."Lycos - " ."Yahoo" ."
    " ."LinuxStart - " ."1stLinuxSearch - " ."Google - " ."LinuxDownloads - " ."Freshmeat - " ."JustLinux" ."
    "; } else { echo "
    "._NOMATCHES."


    "; } CloseTable(); include("footer.php"); } function viewdownloadeditorial($lid, $ttitle) { global $prefix, $db, $admin, $module_name; include("header.php"); include("modules/$module_name/d_config.php"); menu(1); $lid = intval(trim($lid)); $result=$db->sql_query("SELECT adminid, editorialtimestamp, editorialtext, editorialtitle FROM ".$prefix."_downloads_editorials WHERE downloadid = '$lid'"); $recordexist = $db->sql_numrows($result); $transfertitle = ereg_replace ("_", " ", $ttitle); $displaytitle = $transfertitle; echo "
    "; OpenTable(); echo "
    "._DOWNLOADPROFILE.": $displaytitle
    "; downloadinfomenu($lid, $ttitle); if ($recordexist != 0) { while(list($adminid, $editorialtimestamp, $editorialtext, $editorialtitle)=$db->sql_fetchrow($result)) { $editorialtitle = stripslashes(check_html($editorialtitle, "nohtml")); $editorialtext = stripslashes($editorialtext); ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $editorialtimestamp, $editorialtime); $editorialtime = strftime("%F",mktime($editorialtime[4],$editorialtime[5],$editorialtime[6],$editorialtime[2],$editorialtime[3],$editorialtime[1])); $date_array = explode("-", $editorialtime); $timestamp = mktime(0, 0, 0, $date_array["1"], $date_array["2"], $date_array["0"]); $formatted_date = date("F j, Y", $timestamp); echo "

    "; OpenTable2(); echo "
    '$editorialtitle'
    " ."
    "._EDITORIALBY." $adminid - $formatted_date


    " ."$editorialtext"; CloseTable2(); } } else { echo "

    "._NOEDITORIAL."
    "; } echo "

    "; downloadfooter($lid,$ttitle); echo "
    "; CloseTable(); include("footer.php"); } function detecteditorial($lid, $ttitle, $img) { global $prefix, $db, $module_name; $lid = intval($lid); $resulted2 = $db->sql_query("SELECT adminid FROM ".$prefix."_downloads_editorials WHERE downloadid='$lid'"); $recordexist = $db->sql_numrows($resulted2); if ($recordexist != 0) { if ($img == 1) { echo "  \""._EDITORIAL."\""; } else { echo " | "._EDITORIAL.""; } } } function viewdownloadcomments($lid, $ttitle) { global $prefix, $db, $admin, $bgcolor2, $module_name; include("header.php"); include("modules/$module_name/d_config.php"); menu(1); echo "
    "; $lid = intval(trim($lid)); $result=$db->sql_query("SELECT ratinguser, rating, ratingcomments, ratingtimestamp FROM ".$prefix."_downloads_votedata WHERE ratinglid = '$lid' AND ratingcomments != '' ORDER BY ratingtimestamp DESC"); $totalcomments = $db->sql_numrows($result); $transfertitle = ereg_replace ("_", " ", $ttitle); $displaytitle = $transfertitle; OpenTable(); echo "
    "._DOWNLOADPROFILE.": $displaytitle

    "; downloadinfomenu($lid, $ttitle); echo "


    "._TOTALOF." $totalcomments "._COMMENTS."

    " .""; $x=0; while(list($ratinguser, $rating, $ratingcomments, $ratingtimestamp)=$db->sql_fetchrow($result)) { $rating = intval($rating); $ratingcomments = stripslashes($ratingcomments); ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $ratingtimestamp, $ratingtime); $ratingtime = strftime("%F",mktime($ratingtime[4],$ratingtime[5],$ratingtime[6],$ratingtime[2],$ratingtime[3],$ratingtime[1])); $date_array = explode("-", $ratingtime); $timestamp = mktime(0, 0, 0, $date_array["1"], $date_array["2"], $date_array["0"]); $formatted_date = date("F j, Y", $timestamp); /* Individual user information */ $result2=$db->sql_query("SELECT rating FROM ".$prefix."_downloads_votedata WHERE ratinguser = '$ratinguser'"); $usertotalcomments = $db->sql_numrows($result2); $useravgrating = 0; while(list($rating2)=$db->sql_fetchrow($result2)) $useravgrating = $useravgrating + $rating2; $useravgrating = $useravgrating / $usertotalcomments; $useravgrating = number_format($useravgrating, 1); echo "" ."" ."" ."" ."" ."" ."" ."" ."" .""; $x++; } echo "
    " ." "._USER.": $ratinguser" ."" .""._RATING.": $rating" ."" ."$formatted_date" ."
    " .""._USERAVGRATING.": $useravgrating" ."" .""._NUMRATINGS.": $usertotalcomments" ."
    " .""; if (is_admin($admin)) { echo "\""._EDITTHISDOWNLOAD."\""; } echo " $ratingcomments" ."




    "; downloadfooter($lid,$ttitle); echo "
    "; CloseTable(); include("footer.php"); } function viewdownloaddetails($lid, $ttitle) { global $prefix, $db, $admin, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $module_name; include("header.php"); include("modules/$module_name/d_config.php"); menu(1); $lid = intval($lid); $voteresult = $db->sql_query("SELECT rating, ratinguser, ratingcomments FROM ".$prefix."_downloads_votedata WHERE ratinglid = '$lid'"); $totalvotesDB = $db->sql_numrows($voteresult); $totalvotesDB = intval($totalvotesDB); $anonvotes = 0; $anonvoteval = 0; $outsidevotes = 0; $outsidevoteeval = 0; $regvoteval = 0; $topanon = 0; $bottomanon = 11; $topreg = 0; $bottomreg = 11; $topoutside = 0; $bottomoutside = 11; $avv = array(0,0,0,0,0,0,0,0,0,0,0); $rvv = array(0,0,0,0,0,0,0,0,0,0,0); $ovv = array(0,0,0,0,0,0,0,0,0,0,0); $truecomments = $totalvotesDB; while(list($ratingDB, $ratinguserDB, $ratingcommentsDB)=$db->sql_fetchrow($voteresult)) { $ratingDB = intval($ratingDB); if ($ratingcommentsDB=="") $truecomments--; if ($ratinguserDB==$anonymous) { $anonvotes++; $anonvoteval += $ratingDB; } if ($useoutsidevoting == 1) { if ($ratinguserDB=='outside') { $outsidevotes++; $outsidevoteval += $ratingDB; } } else { $outsidevotes = 0; } if ($ratinguserDB!=$anonymous && $ratinguserDB!="outside") { $regvoteval += $ratingDB; } if ($ratinguserDB!=$anonymous && $ratinguserDB!="outside") { if ($ratingDB > $topreg) $topreg = $ratingDB; if ($ratingDB < $bottomreg) $bottomreg = $ratingDB; for ($rcounter=1; $rcounter<11; $rcounter++) if ($ratingDB==$rcounter) $rvv[$rcounter]++; } if ($ratinguserDB==$anonymous) { if ($ratingDB > $topanon) $topanon = $ratingDB; if ($ratingDB < $bottomanon) $bottomanon = $ratingDB; for ($rcounter=1; $rcounter<11; $rcounter++) if ($ratingDB==$rcounter) $avv[$rcounter]++; } if ($ratinguserDB=="outside") { if ($ratingDB > $topoutside) $topoutside = $ratingDB; if ($ratingDB < $bottomoutside) $bottomoutside = $ratingDB; for ($rcounter=1; $rcounter<11; $rcounter++) if ($ratingDB==$rcounter) $ovv[$rcounter]++; } } $regvotes = $totalvotesDB - $anonvotes - $outsidevotes; if ($totalvotesDB == 0) { $finalrating = 0; } else if ($anonvotes == 0 && $regvotes == 0) { /* Figure Outside Only Vote */ $finalrating = $outsidevoteval / $outsidevotes; $finalrating = number_format($finalrating, $detailvotedecimal); $avgOU = $outsidevoteval / $totalvotesDB; $avgOU = number_format($avgOU, $detailvotedecimal); } else if ($outsidevotes == 0 && $regvotes == 0) { /* Figure Anon Only Vote */ $finalrating = $anonvoteval / $anonvotes; $finalrating = number_format($finalrating, $detailvotedecimal); $avgAU = $anonvoteval / $totalvotesDB; $avgAU = number_format($avgAU, $detailvotedecimal); } else if ($outsidevotes == 0 && $anonvotes == 0) { /* Figure Reg Only Vote */ $finalrating = $regvoteval / $regvotes; $finalrating = number_format($finalrating, $detailvotedecimal); $avgRU = $regvoteval / $totalvotesDB; $avgRU = number_format($avgRU, $detailvotedecimal); } else if ($regvotes == 0 && $useoutsidevoting == 1 && $outsidevotes != 0 && $anonvotes != 0 ) { /* Figure Reg and Anon Mix */ $avgAU = $anonvoteval / $anonvotes; $avgOU = $outsidevoteval / $outsidevotes; if ($anonweight > $outsideweight ) { /* Anon is 'standard weight' */ $newimpact = $anonweight / $outsideweight; $impactAU = $anonvotes; $impactOU = $outsidevotes / $newimpact; $finalrating = ((($avgOU * $impactOU) + ($avgAU * $impactAU)) / ($impactAU + $impactOU)); $finalrating = number_format($finalrating, $detailvotedecimal); } else { /* Outside is 'standard weight' */ $newimpact = $outsideweight / $anonweight; $impactOU = $outsidevotes; $impactAU = $anonvotes / $newimpact; $finalrating = ((($avgOU * $impactOU) + ($avgAU * $impactAU)) / ($impactAU + $impactOU)); $finalrating = number_format($finalrating, $detailvotedecimal); } } else { /* REG User vs. Anonymous vs. Outside User Weight Calutions */ $impact = $anonweight; $outsideimpact = $outsideweight; if ($regvotes == 0) { $avgRU = 0; } else { $avgRU = $regvoteval / $regvotes; } if ($anonvotes == 0) { $avgAU = 0; } else { $avgAU = $anonvoteval / $anonvotes; } if ($outsidevotes == 0 ) { $avgOU = 0; } else { $avgOU = $outsidevoteval / $outsidevotes; } $impactRU = $regvotes; $impactAU = $anonvotes / $impact; $impactOU = $outsidevotes / $outsideimpact; $finalrating = (($avgRU * $impactRU) + ($avgAU * $impactAU) + ($avgOU * $impactOU)) / ($impactRU + $impactAU + $impactOU); $finalrating = number_format($finalrating, $detailvotedecimal); } if ($avgOU == 0 || $avgOU == "") { $avgOU = ""; } else { $avgOU = number_format($avgOU, $detailvotedecimal); } if ($avgRU == 0 || $avgRU == "") { $avgRU = ""; } else { $avgRU = number_format($avgRU, $detailvotedecimal); } if ($avgAU == 0 || $avgAU == "") { $avgAU = ""; } else { $avgAU = number_format($avgAU, $detailvotedecimal); } if ($topanon == 0) $topanon = ""; if ($bottomanon == 11) $bottomanon = ""; if ($topreg == 0) $topreg = ""; if ($bottomreg == 11) $bottomreg = ""; if ($topoutside == 0) $topoutside = ""; if ($bottomoutside == 11) $bottomoutside = ""; $totalchartheight = 70; $chartunits = $totalchartheight / 10; $avvper = array(0,0,0,0,0,0,0,0,0,0,0); $rvvper = array(0,0,0,0,0,0,0,0,0,0,0); $ovvper = array(0,0,0,0,0,0,0,0,0,0,0); $avvpercent = array(0,0,0,0,0,0,0,0,0,0,0); $rvvpercent = array(0,0,0,0,0,0,0,0,0,0,0); $ovvpercent = array(0,0,0,0,0,0,0,0,0,0,0); $avvchartheight = array(0,0,0,0,0,0,0,0,0,0,0); $rvvchartheight = array(0,0,0,0,0,0,0,0,0,0,0); $ovvchartheight = array(0,0,0,0,0,0,0,0,0,0,0); $avvmultiplier = 0; $rvvmultiplier = 0; $ovvmultiplier = 0; for ($rcounter=1; $rcounter<11; $rcounter++) { if ($anonvotes != 0) $avvper[$rcounter] = $avv[$rcounter] / $anonvotes; if ($regvotes != 0) $rvvper[$rcounter] = $rvv[$rcounter] / $regvotes; if ($outsidevotes != 0) $ovvper[$rcounter] = $ovv[$rcounter] / $outsidevotes; $avvpercent[$rcounter] = number_format($avvper[$rcounter] * 100, 1); $rvvpercent[$rcounter] = number_format($rvvper[$rcounter] * 100, 1); $ovvpercent[$rcounter] = number_format($ovvper[$rcounter] * 100, 1); if ($avv[$rcounter] > $avvmultiplier) $avvmultiplier = $avv[$rcounter]; if ($rvv[$rcounter] > $rvvmultiplier) $rvvmultiplier = $rvv[$rcounter]; if ($ovv[$rcounter] > $ovvmultiplier) $ovvmultiplier = $ovv[$rcounter]; } if ($avvmultiplier != 0) $avvmultiplier = 10 / $avvmultiplier; if ($rvvmultiplier != 0) $rvvmultiplier = 10 / $rvvmultiplier; if ($ovvmultiplier != 0) $ovvmultiplier = 10 / $ovvmultiplier; for ($rcounter=1; $rcounter<11; $rcounter++) { $avvchartheight[$rcounter] = ($avv[$rcounter] * $avvmultiplier) * $chartunits; $rvvchartheight[$rcounter] = ($rvv[$rcounter] * $rvvmultiplier) * $chartunits; $ovvchartheight[$rcounter] = ($ovv[$rcounter] * $ovvmultiplier) * $chartunits; if ($avvchartheight[$rcounter]==0) $avvchartheight[$rcounter]=1; if ($rvvchartheight[$rcounter]==0) $rvvchartheight[$rcounter]=1; if ($ovvchartheight[$rcounter]==0) $ovvchartheight[$rcounter]=1; } $transfertitle = ereg_replace ("_", " ", $ttitle); $displaytitle = $transfertitle; $res = $db->sql_query("SELECT name, email, description, filesize, version, homepage FROM ".$prefix."_downloads_downloads WHERE lid='$lid'"); list($auth_name, $email, $description, $filesize, $version, $homepage) = $db->sql_fetchrow($res); $auth_name = stripslashes($auth_name); $email = stripslashes($email); $description = stripslashes($description); $homepage = stripslashes($homepage); echo "
    "; OpenTable(); echo "
    "._DOWNLOADPROFILE.": $displaytitle

    "; downloadinfomenu($lid, $ttitle); echo "

    "._DOWNLOADRATINGDET."
    " .""._TOTALVOTES." $totalvotesDB
    " .""._OVERALLRATING.": $finalrating

    " ."$description
    "; if ($auth_name == "") { $auth_name = ""._UNKNOWN.""; } else { if ($email == "") { $auth_name = "$auth_name"; } else { $email = ereg_replace("@"," at ",$email); $email = ereg_replace("\."," dot ",$email); $auth_name = "$auth_name ($email)"; } } echo "
    "._AUTHOR.": $auth_name
    " .""._VERSION.": $version "._FILESIZE.": ".CoolSize($filesize)."


    " ."[ "._DOWNLOADNOW." "; if (($homepage == "") OR ($homepage == "http://")) { echo "]

    "; } else { echo "| "._HOMEPAGE." ]

    "; } echo "" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" .""; if ($useoutsidevoting == 1) { echo "" ."
    " .""._REGISTEREDUSERS."" ."
    " .""._NUMBEROFRATINGS.": $regvotes" .""; if ($regvotes==0) { echo "
    "._NOREGUSERSVOTES."
    "; } else { echo "" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."
    "._BREAKDOWNBYVAL."
    \"$rvv[1]\"$rvv[2]\"$rvv[3]\"$rvv[4]\"$rvv[5]\"$rvv[6]\"$rvv[7]\"$rvv[8]\"$rvv[9]\"$rvv[10]
    " ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."
    12345678910
    " ."
    "; } echo "
    "._DOWNLOADRATING.": $avgRU
    "._HIGHRATING.": $topreg
    "._LOWRATING.": $bottomreg
    "._NUMOFCOMMENTS.": $truecomments


    "._WEIGHNOTE." $anonweight "._TO." 1.
    "._UNREGISTEREDUSERS."
    "._NUMBEROFRATINGS.": $anonvotes"; if ($anonvotes==0) { echo "
    "._NOUNREGUSERSVOTES."
    "; } else { echo "" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."
    "._BREAKDOWNBYVAL."
    \"$avv[1]\"$avv[2]\"$avv[3]\"$avv[4]\"$avv[5]\"$avv[6]\"$avv[7]\"$avv[8]\"$avv[9]\"$avv[10]
    " ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."
    12345678910
    " ."
    "; } echo "
    "._DOWNLOADRATING.": $avgAU
    "._HIGHRATING.": $topanon
    "._LOWRATING.": $bottomanon
     


    "._WEIGHOUTNOTE." $outsideweight "._TO." 1.
    "._OUTSIDEmages/2/kosamui-or-info-or-yellow-pages-or-thailand.html">kosamui or info or yellow pages or thailandtullus hostiliushentaiquestzenith transoceanic 7000jeff balisnaples florida personal concierge servicesbaymount inngeorge thurogoodmcculloch eager beaverdeer jerkeymyceneanssharon moalemtiffany dillowsony pcga bp2nx laptop batteryart photos marcelino herranzmenard building supply cocellular passive repeaterinfantismbaldwin brass candlesticksthousand foot krutch mp3jenny finch nudethreadlike fungilogical falliciessimpsons large marge implantsancient aksumjla home beddingsteak and chesseinsane clown posse slim anusodette yustmaninnovis data solutionanaverde planned communityashlee simpson lip synctexasbeautiesmolly pitcher + biographybreaking substitution cipherspinich dipear wax removal peroxideoceanfront homesite st simons island gaboreal cordillerazuber et ciemohabbatein mp3rietschle vacuumvillandry castlefook mi costumeginny weasley nakedmegan caublemegaman x6 mp3dogshit.comkillingmesoftlyocns small business partnerchinese legalismkingscliff tafedroukiskirstie alley playboypetticoat disiplinedog flea and tick control zodiacsalomon 1080 gunklipsch rf35def leppard miss you in a heartbeatdrizunkthoroughbred racing syndicationmcculloch chipper shreddertiffin motorhome specscandida skin fungus picturenaoko moritabob seger mainstreetmy2way t900andy milinakisamericas army multihackdeep water homesite sea island georgiacandy code pokemon rare rubyadult yuna cosplaysneakboxsaban saulic mp3hodentritt285/70/17 tireshogtied and tapedcrazy train ozzy ozbournecaniglias venice innchore worksheets for teensshapeshift anthillbiography of florence griffith joynerphina oruchefrancesca kitten natividaddeduplication softwarenascar standupssherlock holmes otrfrank harberoslen twins nudeindependent distributor indianapolis herbalifeyuumibellevue facial plastic surgeryfree aim password stealerkemal malovcic mp3stephanie mcmahon revealedanimaniacs hentaiheadon headachewilliam orbit adagio for stringskeira knightley esquiretasco optima 2000anna nalick paper baganne arundel patioswilmer valderamamuscadine jelly recipetit maulinglakefront properties in terral tximpotencia ereccion calviciebehaviorism direct education in instructionsuperalexx fozyayoung rascals discographyinvention of the frisbeeseiko sna411anthons la mesanatural dog soft treatsmariana sea trenchimbel falmudbugshockeypual reverequeasy bake ovenautopsy layne staleyfree subsidy code v300honeycomb calcitekaraoke freemp-3aiden knife blood nightmarenilo train tableyomiko readmangreek god cronuslouise redknapp gallery220v tanning bedtsunami sasamia scrap of paper playwrightbrunswick deep water homesitesruger 10/22 folding stockchasenrainbowsdudy noble fieldlongford legendbobbi billard webcamgreek god cronusfurminator brushconstutionslipknot prostheticsjackie o nookiewilliams sanomawarrioressgay makeoutruger 10/22 folding stockalternative parasite zapperlawn sprinkler troubleshootingkomatsu d31kayak loaderkalvins szechuan restaurantjubjubzdravko colic mp3sybil danning gallerywormy maplekasey chambers not pretty enoughradius gp300first jamaican bobsled teamdtmf tone generatoractress peepleskamau daaoodadam sandler thanksgiving songparakeet life expectancyranchero villagestihl fs45cyanine diaz scorelandshanette clousespittle bughiko sushiholly willoughby nakeddnp fat lossrockwell hcf 56k data fax pci modemlow carb catsupparsloefox forage harvestercourteny coxrobin and starfire hentaiacreage for sale texas schertzsavastat hwwhen was the abacus inventedspunbond polypropylenebeverly hills tooth whitening bleachingduplex acorn lugnutdreamtheatrechavin civilizationpill indentificationmaltz museumbristol f2bprader willy syndromekings dominion discount ticketsdebby turpinaloha flight 243scare taticshicondos.comsports illastratedseusical the musicalcaprice bourret nakedsurchacalcomp drawing boardabacoa in jupiter floridafiremountainebonics slangintertherm heat pumpsylvester howard roperadult baby infantilism diapers dominationelementry science projectsmatrushka dollssudirman mp3njla.orghomemade tamale recipeskirikirimaiindoor doormatidena menzelkeira knightelypenny thortonnet_save.dnafemale infibulationpaul maccartneygeorge crum biographynordic track c2050tsuki no ieanatomy of coitusmerrell tokenpetz 5 breedzjohnny ybarradigital humidistatgranbury tx waterfront homesitesmizerablemizuki tachibanafenda extendadvd-rw blank media coatingoctolamo2jam mp3john wayne bobbit uncutgrandtheftauto3cheatscarmon electrasucanat sugarlinda vester legsekranoplan

    Back to top


    3.3 The version check tool

    Since the release of cpg1.3.2 Coppermine comes with an additional version checking tool to help you resolve issues with upgrades and updates easily. Except for spec; if (empty($ip)) { $ip = $_SERVER["REMOTE_ADDR"]; } echo "$displaytitle" ."

      " ."
    • "._RATENOTE1."" ."
    • "._RATENOTE2."" ."
    • "._RATENOTE3."" ."
    • "._DRATENOTE4."" ."
    • "._RATENOTE5.""; if(is_user($user)) { $user2 = base64_decode($user); $user2 = addslashes($user2); $cookie = explode(":", $user2); echo "
    • "._YOUAREREGGED."" ."
    • "._FEELFREE2ADD.""; cookiedecode($user); $auth_name = $cookie[1]; } else { echo "
    • "._YOUARENOTREGGED."" ."
    • "._IFYOUWEREREG.""; $auth_name = "$anonymous"; } echo "
    " ."" ."" ."" ."
    " ."" ."" ."

    It will show everything in red that needs to be fixed. Entries in yellow need looking into. Entries in green (or your theme's default font color) are OK and should be left alone. When an entry is red or yellow, a help icon will appear next to it. Click it to find out more. Hovering with your mouse over an item will display additional information as well (tooltip).

    The versioncheck screen has several sections:

    • Section 1 explains what the versioncheck tool can be used for
    • Section 2 ("Options") displays the options you can chose
    • Section 3 will display a warning if coppermine was not able to connect to the online repository (where the most recent version data is being stored). The script will default to a local copy of the repository file. If connection to the online repository was succesfull, there will of course be no error message (no section 3).
    • Section 4 will show what version of coppermine you actually use. The versioncheck script draws this piece of information from the file include/init.inc.php - if you haven't replaced your copy of this file with the new version during upgrade, your old (outdated) version will appear in this section.
    • Section 5 will show the core of versioncheck's file: the version comparison. The script will loop through all files that are suppossed to exist (based on repository data) and compare them to the files you actually have on your webserver.
    • Section 6 will display a summary of the files and folders checked

    3.3.2 Options

    The options screen lets you configure the versioncheck, or rather what is being displayed. The options aren't saved anywhere, so you will have to adjust them each time you run versioncheck. The default options should be OK for most users - only change them if you have good reasons to do so.

    • show optional folders/files
      Uncheck this to hide files that are tagged as "optional" (display mandatory files only)
    • show mandatory files
      Uncheck this to hide files that are tagged as "mandatory" (Note disabling both optional and mandatory files will of course result in no files being displayed at all)
    • show additional information
      Toggles whether informaton about the installed coppermine version and the repository connection status are being disp