"._ERRORINVEMAIL."
"; if (strrpos($user_email,' ') > 0) $stop = "
"._ERROREMAILSPACES."
"; if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9_-]",$username))) $stop = "
"._ERRORINVNICK."

"; if (strlen($username) > 25) $stop = "
"._NICK2LONG."
"; if (eregi("^((root)|(adm)|(linux)|(webmaster)|(admin)|(god)|(administrator)|(administrador)|(nobody)|(anonymous)|(anonimo)|(anónimo)|(operator))$",$username)) $stop = "
"._NAMERESERVED."
"; if (strrpos($username,' ') > 0) $stop = "
"._NICKNOSPACES."
"; if ($db->sql_numrows($db->sql_query("SELECT username FROM ".$user_prefix."_users WHERE username='$username'")) > 0) $stop = "
"._NICKTAKEN."

"; if ($db->sql_numrows($db->sql_query("SELECT username FROM ".$user_prefix."_users_temp WHERE username='$username'")) > 0) $stop = "
"._NICKTAKEN."

"; if ($db->sql_numrows($db->sql_query("SELECT user_email FROM ".$user_prefix."_users WHERE user_email='$user_email'")) > 0) $stop = "
"._EMAILREGISTERED."

"; if ($db->sql_numrows($db->sql_query("SELECT user_email FROM ".$user_prefix."_users_temp WHERE user_email='$user_email'")) > 0) $stop = "
"._EMAILREGISTERED."

"; return($stop); } function makePass() { $cons = "bcdfghjklmnpqrstvwxyz"; $vocs = "aeiou"; for ($x=0; $x < 6; $x++) { mt_srand ((double) microtime() * 1000000); $con[$x] = substr($cons, mt_rand(0, strlen($cons)-1), 1); $voc[$x] = substr($vocs, mt_rand(0, strlen($vocs)-1), 1); } $makepass = $con[0] . $voc[0] .$con[2] . $con[1] . $voc[1] . $con[3] . $voc[3] . $con[4]; return($makepass); } function confirmNewUser($username, $user_email, $user_password, $user_password2, $random_num, $gfx_check) { global $stop, $EditedMessage, $sitename, $module_name, $minpass; include("header.php"); include("config.php"); filter_text($username); $username = $EditedMessage; $user_viewemail = "0"; userCheck($username, $user_email); if (!$stop) { $datekey = date("F j"); $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $_POST[random_num] . $datekey)); $code = substr($rcode, 2, 6); if (extension_loaded("gd") AND $code != $gfx_check AND ($gfx_chk == 3 OR $gfx_chk == 4 OR $gfx_chk == 6 OR $gfx_chk == 7)) { title(""._NEWUSERERROR.""); OpenTable(); echo "
"._SECCODEINCOR."

" .""._GOBACK."
"; CloseTable(); incltopmgin="0" rightmargin=USER_CAT, $FORBIDDEle_name.""._PASSDIFFERENT."

"._GOBACK.""; CloseTable(); include("footer.php"); die(); } elseif ($user_password == $user_password2 AND strlen($user_password) < $minpass) { title(""._NEWUSERERROR.""); OpenTable(); echo "
"._YOUPASSMUSTBE." $minpass "._CHARLONG."

"._GOBACK."
"; CloseTable(); include("footer.php"); die(); } title("$sitename: "._USERREGLOGIN.""); OpenTable(); echo "
"._USERFINALSTEP."

$username, "._USERCHECKDATA."


" ."" ."" ."
"._UUSERNAME.": $username
"._EMAIL.": $user_email


" ."
"._NOTE." "._YOUWILLRECEIVE.""; echo "
" ."" ."" ."" ."" ."" ."

" ."   "._GOBACK."
"; CloseTable(); } else { OpenTable(); echo "
Registration Error!

"; echo "$stop
"._GOBACK."
"; CloseTable(); } include("footer.php"); } function finishNewUser($username, $user_email, $user_password, $random_num, $gfx_check) { global $stop, $EditedMessage, $adminmail, $sitename, $Default_Theme, $user_prefix, $db, $storyhome, $module_name, $nukeurl; include("header.php"); include("config.php"); userCheck($username, $user_email); $user_regdate = date("M d, Y"); if (!isset($stop)) { $datekey = date("F j"); $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey)); $code = substr($rcode, 2, 6); if (extension_loaded("gd") AND $code != $gfx_check AND ($gfx_chk == 3 OR $gfx_chk == 4 OR $gfx_chk == 6 OR $gfx_chk == 7)) { Header("Location: modules.php?name=$module_name"); die(); } mt_srand ((double)microtime()*1000000); $maxran = 1000000; $check_num = mt_rand(0, $maxran); $check_num = md5($check_num); $time = time(); $finishlink = "$nukeurl/modules.php?name=$module_name&op=activate&username=$username&check_num=$check_num"; $new_password = md5($user_password); $username = check_html($username, nohtml); $user_email = check_html($user_email, nohtml); $result = $db->sql_query("INSERT INTO ".$user_prefix."_users_temp (user_id, username, user_email, user_password, user_regdate, check_num, time) VALUES (NULL, '$username', '$user_email', '$new_password', '$user_regdate', '$check_num', '$time')"); if(!$result) { echo ""._ERROR."
"; } else { $message = ""._WELCOMETO." $sitename!\n\n"._YOUUSEDEMAIL." ($user_email) "._TOREGISTER." $sitename.\n\n "._TOFINISHUSER."\n\n $finishlink\n\n "._FOLLOWINGMEM."\n\n"._UNICKNAME." $username\n"._UPASSWORD." $user_password"; $subject = ""._ACTIVATIONSUB.""; $from = "$adminmail"; mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion()); title("$sitename: "._USERREGLOGIN.""); OpenTable(); echo "
"._ACCOUNTCREATED."

"; echo ""._YOUAREREGISTERED."" ."

" .""._FINISHUSERCONF."

" .""._THANKSUSER." $sitename!
"; CloseTable(); } } else { echo "$stop"; } include("footer.php"); } function activate($username, $check_num) { global $db, $user_prefix, $module_name, $language; $past = time()-86400; $db->sql_query("DELETE FROM ".$user_prefix."_users_temp WHERE time < $past"); $result = $db->sql_query("SELECT * FROM ".$user_prefix."_users_temp WHERE username='$username' AND check_num='$check_num'"); if ($db->sql_numrows($result) == 1) { $row = $db->sql_fetchrow($result); if ($check_num == $row[check_num]) { $db->sql_query("INSERT INTO ".$user_prefix."_users (user_id, username, user_email, user_password, user_avatar, user_avatar_type, user_regdate, user_lang) VALUES (NULL, '$row[username]', '$row[user_email]', '$row[user_password]', 'gallery/blank.gif', 3, '$row[user_regdate]', '$language')"); $db->sql_query("DELETE FROM ".$user_prefix."_users_temp WHERE username='$username' AND check_num='$check_num'"); include("header.php"); title(""._ACTIVATIONYES.""); OpenTable(); echo "
$row[username]: "._ACTMSG."
"; CloseTable(); include("footer.php"); die(); } else { include("header.php"); title(""._ACTIVATIONERROR.""); OpenTable(); echo "
"._ACTERROR1."
"; CloseTable(); include("footer.php"); die(); } } else { include("header.php"); title(""._ACTIVATIONERROR.""); OpenTable(); echo "
"._ACTERROR2."
"; CloseTable(); include("footer.php"); die(); } } function userinfo($username, $bypass=0, $hid=0, $url=0) { global $user, $cookie, $sitename, $prefix, $user_prefix, $db, $admin, $broadcast_msg, $my_headlines, $module_name; $result = $db->sql_query("SELECT * FROM ".$user_prefix."_users WHERE username='$username'"); $num = $db->sql_numrows($result); $userinfo = $db->sql_fetchrow($result); if(!$bypass) cookiedecode($user); include("header.php"); OpenTable(); echo "
"; if((strtolower($username) == strtolower($cookie[1])) AND ($userinfo[user_password] == $cookie[2])) { echo "$username, "._WELCOMETO." $sitename!

"; echo ""._THISISYOURPAGE."


"; nav(1); echo "

"; } else { echo ""._PERSONALINFO.": $username

"; } if ($userinfo[user_website]) { if (!eregi("http://", $userinfo[user_website])) { $userinfo[user_website] = "http://$userinfo[user_website]"; } } if(($num == 1) && ($userinfo[user_website] || $userinfo[femail] || $userinfo[bio] || $userinfo[user_avatar] || $userinfo[user_icq] || $userinfo[user_aim] || $userinfo[user_yim] || $userinfo[user_msnm] || $userinfo[user_location] || $userinfo[user_occ] || $userinfo[user_interests] || $userinfo[user_sig])) { echo "
"; if (ereg("(http)", $userinfo[user_avatar])) { echo "
\n"; } elseif ($userinfo[user_avatar]) { echo "
\n"; } if ($userinfo[user_website] != "http://" AND $userinfo[user_website] != "") { echo ""._MYHOMEPAGE." $userinfo[user_website]
\n"; } if ($userinfo[femail]) { echo ""._MYEMAIL." $userinfo[femail]
\n"; } if ($userinfo[user_icq]) echo ""._ICQ.": $userinfo[user_icq]
\n"; if ($userinfo[user_aim]) echo ""._AIM.": $userinfo[user_aim]
\n"; if ($userinfo[user_yim]) echo ""._YIM.": $userinfo[user_yim]
\n"; if ($userinfo[user_msnm]) echo ""._MSNM.": $userinfo[user_msnm]
\n"; if ($userinfo[user_from]) echo ""._LOCATION.": $userinfo[user_from]
\n"; if ($userinfo[user_occ]) echo ""._OCCUPATION.": $userinfo[user_occ]
\n"; if ($userinfo[user_interests]) echo ""._INTERESTS.": $userinfo[user_interests]
\n"; $userinfo[user_sig] = nl2br($userinfo[user_sig]); if ($userinfo[user_sig]) echo "
"._SIGNATURE.":
$userinfo[user_sig]
\n"; if ($userinfo[bio]) { echo "
"._EXTRAINFO.":
$userinfo[bio]
\n"; } $row2 = $db->sql_fetchrow($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE uname='$username'")); $username_pm = $username; $username_online = $row2['uname']; if ($username_online == "") { $online = _OFFLINE; } else { $online = _ONLINE; } echo ""._USERSTATUS.": $online
\n"; if (($userinfo[newsletter] == 1) AND ($username == $cookie[1]) AND (.""._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 :
" ."" . _HOMEPAGE . ":  [ " . _VISIT . " ]
" ."" . _HITS . ":
"; $result2 = $db->sql_query("SELECT cid, title, parentid from " . $prefix . "_downloads_categories order by title"); echo "" ."" . _CATEGORY . ": " ."" ." [ " . _DELETE . " ]
"; CloseTable(); echo "
"; /* Modify or Add Editorial */ $lid = intval($lid); $resulted2 = $db->sql_query("SELECT adminid, editorialtimestamp, editorialtext, editorialtitle from " . $prefix . "_downloads_editorials where downloadid='$lid'"); $recordexist = $db->sql_numrows($resulted2); OpenTable(); /* if returns 'bad query' status 0 (add editorial) */ if ($recordexist == 0) { echo "
" . _ADDEDITORIAL . "


" ."
" ."" ."" . _EDITORIALTITLE . ":

" ."" . _EDITORIALTEXT . ":

" .""; } else { /* if returns 'cool' then status 1 (modify editorial) */ while($row3 = $db->sql_fetchrow($resulted2)) { $adminid = intval($row3['adminid']); $editorialtimestamp = $row3['editorialtimestamp']; $editorialtext = stripslashes($row3['editorialtext']); $editorialtitle = stripslashes($row3['editorialtitle']); 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 "
Modify Editorial


" ."" ."" . _AUTHOR . ": $adminid
" ."" . _DATEWRITTEN . ": $formatted_date

" ."" ."" . _EDITORIALTITLE . ":

" ."" . _EDITORIALTEXT . ":

" ." [ " . _DELETE . " ]"; } } CloseTable(); echo "
"; OpenTable(); /* Show Comments */ $result4 = $db->sql_query("SELECT ratingdbid, ratinguser, ratingcomments, ratingtimestamp FROM " . $prefix . "_downloads_votedata WHERE ratinglid='$lid' AND ratingcomments != '' ORDER BY ratingtimestamp DESC"); $totalcomments = $db->sql_numrows($result4); echo ""; echo ""; echo "
"; if ($totalcomments == 0) echo ""; $x=0; $colorswitch="dddddd"; while($row4 = $db->sql_fetchrow($result4)) { $ratingdbid = intval($row4['ratingdbid']); $ratinguser = $row4['ratinguser']; $ratingcomments = stripslashes($row4['ratingcomments']); $ratingtimestamp = $row4['ratingtimestamp']; 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); echo "
"; $x++; if ($colorswitch=="dddddd") $colorswitch="ffffff"; else $colorswitch="dddddd"; } // Show Registered Users Votes $result5 = $db->sql_query("SELECT ratingdbid, ratinguser, rating, ratinghostname, ratingtimestamp FROM " . $prefix . "_downloads_votedata WHERE ratinglid='$lid' AND ratinguser != 'outside' AND ratinguser != '$anonymous' ORDER BY ratingtimestamp DESC"); $totalvotes = $db->sql_numrows($result5); echo ""; echo "
"; if ($totalvotes == 0) echo ""; $x=0; $colorswitch="dddddd"; while($row5 = $db->sql_fetchrow($result5)) { $ratingdbid = intval($row5['ratingdbid']); $ratinguser = $row5['ratinguser']; $rating = intval($row5['rating']); $ratinghostname = $row5['ratinghostname']; $ratingtimestamp = $row5['ratingtimestamp']; 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 $result6 = $db->sql_query("SELECT rating FROM " . $prefix . "_downloads_votedata WHERE ratinguser = '$ratinguser'"); $usertotalcomments = $db->sql_numrows($result6); $useravgrating = 0; while($row6 = $db->sql_fetchrow($result6)) $useravgrating = $useravgrating + $rating2; $rating2 = intval($row6['rating']); $useravgrating = $useravgrating / $usertotalcomments; $useravgrating = number_format($useravgrating, 1); echo "
Download Comments (total comments: $totalcomments)

User Comment
Delete
No Comments
$ratinguser$ratingcomments
X


Registered User Votes (total votes: $totalvotes)

User IP Address Rating User AVG Rating Total Ratings Date
Delete
No Registered User Votes
$ratinguser$ratinghostname$rating$useravgrating$usertotalcomments$formatted_date
X
year'"); list($TotalHitsMonth) = $db->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 ""; $dum = 1; } $count++; if ($count==2) { echo ""; $count = 0; $dum = 0; } } if ($dum == 1) { 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 = roer_prefix."_users WHERE uername='$username'"); if($db->sql_numrows($result) == 0 include("header.php"); OpenTable(); echo "
"._SORRYNOUSERINFO."sql_fetchrow($result3)) { $cid3 = intval($row3['cid']); $title3 = stripslashes(check_html($row3['title'], "nohtml")); if ($space>0) { echo ", "; } echo "$title3"; $space++; } if ($count<1) { echo "
    
"; } elseif ($dum == 0) { echo "
"; } echo "
"; $orderbyTrans = convertorderbytrans($orderby); echo "
"._SORTLINKSBY.": " .""._TITLE." (A\D) " .""._DATE." (A\D) " .""._RATING." (A\D) " .""._POPULARITY." (A\D)" ."
"._SITESSORTED.": $orderbyTrans


"; $result4 = $db->sql_query("SELECT lid, title, description, date, hits, linkratingsummary, totalvotes, totalcomments from ".$prefix."_links_links where cid='$cid' order by $orderby limit $min,$perpage"); $fullcountresult = $db->sql_query("SELECT lid, title, description, date, hits, linkratingsummary, totalvotes, totalcomments from ".$prefix."_links_links where cid='$cid'"); $totalselectedlinks = $db->sql_numrows($fullcountresult); echo "
"; $x=0; while($row4 = $db->sql_fetchrow($result4)) { $lid = intval($row4['lid']); $title = stripslashes(check_html($row4['title'], "nohtml")); $description = stripslashes($row4['description']); $time = $row4['date']; $hits = intval($row4['hits']); $linkratingsummary = $row4['linkratingsummary']; $totalvotes = intval($row4['totalvotes']); $totalcomments = intval($row4['totalcomments']); $linkratingsummary = number_format($linkratingsummary, $mainvotedecimal); echo "motorola starpointlesbian orgiimbochmichelle pfeiffer as catwomanroyal antediluvian order of buffaloespiperinebeatrice mckinseymila kunassoundly spanked bottomabsolutely free motorola t900iranianmusiclatios pokemon rubysutherlandia frutescensgsm homagegsr engine swapshpinxcarrie southworthonsite training voip vonage voip adapter phone voipnaval technology.comed huckebyalternative menstral productsrainbow parrotfishidenity theft caseyoko naitofio dental bikinibluestone quarriesdean graziosi reviewdansko franlawn striping rollerhahara buffetsoapstone quarriespizelle makerexpobagno meetingfrere jaquesismael serrano mp3fretilty pills onlinedarien ga intercoastal homesitedermabrasion crystalsstacey haidukfripp island waterway real estatefripp island waterway south carolina homesitesfrisco temporary office spacealyssa alps gallerychicago gastric banding915 mhz rfidusa india chamber of commerce karun rishiigesturestiff nipsgunbeltsacth herbdarien intercoastal homesitesirving tooth whiteninggumdrop cakebarbara charline jordandisneyficationfrupacsexual spooningcuckold ankle braceletaparate auditivedw edge snarecillian murphy nudesusina bakery and cafeillinois gastric bandingmicro hole edmcorrector padfischerspooner mp3scorpio tattoo gallerythatch palapajunior high teens boner storylavinia milosovici nuderenee weingartneryardman mower partschiara mastalligsr evo club747 takeoffleland dog the bounty hunters sonportland maine instant orthodonticsburcitis2way pager activationamatuartoni overbyrearsetnozomi kurahashi bbsCHMOD command on your files and folders. Go to your coppermine folder using your shell access, then apply the permissions to the albums and include folder and everything within it. As explained above, the user the apache daemon runs under needs write access, so you should CHMOD to 777 or 755, depending on your server setup.

Back to top


2.1.1.2 Apache on Windows

You have to understand that there is no such thing as CHMOD on Windows operating systems - this command is available on Unix/Linux only, even if your FTP application displays a CHMOD option. If you try to apply CHMOD on Windows, the command will simply be ignored and do nothing. However, there are permissions on Windows as well.

The apache webserver service runs under a particular user - if you have full access to the server, check the services control to find out which one it is. If you can't do this, ask your webhost.

As a temporary workaround, set permissions on folder and file level as suggested in the section IIS on Windows, but not for the IUSR (which only exists on IIS), but for "everyone". However, allowing "everyone" to have read, write and execute permissions might be a security risk and is not recommended at all.

Back to top


2.1.1.3 IIS on Windows

Pre-requisites: you will need full admin privileges over your server to execute this process. If you do not run the webserver yourself, your webhost has probably set up a web-based interface to let you change permissions. If you're not sure, contact your webhost.

The dialogs may differ slightly depending on the Windows version you have:

  • Start Windows Explorer on your webserver and navigate to your coppermine folder
  • right-click on the folder you want to change permissions for
  • Choose "Properties"
  • On the properties dialog, click on the "Security" tab
  • Highlight the user "Internet guest account (hostname\IUSR_hostname). If it's not there already, use the "Add..." dialog to add this particular user
  • Tick the "Allow"-checkbox for "Write"-access
  • Click the "Advanced" button
  • Just to make sure the write access propagates to all folders and files within the folder you're currently editing, tick the checkbox "Reset permissions on all child objects and enable propagation of inheritable permissions"
  • click "OK"
  • answer the confirmation dialog box that asks you if all permissions should be replaced with "Yes"
  • depending on the number of child objects and your system's speed, wait until the permissions of all objects have been changed and the status window goes away.
  • Click "OK" to close the permissions dialog

You have to understand that there is no such thing as CHMOD on Windows operating systems - this command is available on Unix/Linux only, even if your FTP application displays a CHMOD option. If you try to apply CHMOD on Windows, the command will simply be ignored and do nothing. However, there are permissions on Windows as well.

Back to top


2.1.2 The install screen

Your admin account
This section requires information to create your administration account. Use only alphanumeric characters. Enter the data carefully ! Input an original admin username and password here. Make sure to either memorize it well, or note it down somewhere safe; you won't be able to administer your site if you lose this data.
Username This will be the username for your everyday administration of coppermine - choose one that you can memorize and enter easily. This entry is case sensitive so give special consideration when creating a username. Pics that you upload later under this admin account will display the name shown in the uploader field. Comments you make will also display this name, as well, for others to see.
Password This will be your admin password to your coppermine install. Don't use trivial, overly abused passwords - if an attacker figures out your password, s/he will be able to hack your entire site! Use a combination of letters, numbers and special characters in your password. like " j3e4n5n6y* " Remember, passwords like your admin username are case sensitive. Be careful when creating your password. Write it down and keep it safe, preferably somewhere away from your computer.
Email address This email address will be used to send emails from the webserver (e.g. the registration email, notifications and ecards). Make sure that it is a valid email address.
Your MySQL configuration MySQL is the type of database service that is available on most webservers. If you don't have it, you cannot install it. That is, unless the server is yours to administer. If you are webhosted, you are probably out of luck. It's mandatory to have a mySQL database to run Coppermine or any other PHP-based script. You can not fake the mySQL information during install, you must know it before hand, and enter the information as required. If you're not sure about the information required, ask your webhost.
This section requires information on how to access your MySQL database. If you don't know how to fill them, check with your webhost support.
MySQL Host
(localhost is usually OK)
MySQL Database Name Coppermine will not create this database for you - it must exist prior to any attempt at installing coppermine. (If you do not have a pre-designated database, you will have to create one, provided you have the authority on your site to do so).
MySQL Username The mySQL user name does not have to be your coppermine admin username, nor is it the necessarily the same as your FTP username (although this can be the case for some users, but only by sheer coincidence or deliberate intention, to simplify site administration).
The mySQL user needs the permissions CREATE TABLE, INSERT, ALTER, UPDATE, DELETE, SELECT.
MySQL Password The password that goes with your mySQL username.
MySQL table prefix
(the default value is OK; do not use dots!)
Coppermine's tables can co-exist in an existing database which has tables used by other applications. All coppermine tables will be using a different prefix from these, as specified here. You can even have several coppermine installs using one database - only the table prefixes have to differ in each case. Unless you know what you are doing, don't change the default value.
ImageMagick You can not fake an ImageMagick path, you have to know it. If you're not sure, leave this field empty - Coppermine will then try to use GD by default. You can edit the path later as well in the config screen. You can only install ImageMagick or GD if the server is yours to administer - if you're webhosted, you probably can't. The user of the webserver, who wishes to use ImageMagick, will need read/write/execute permissions in the folder where ImageMagick's convert executable resides in.
Coppermine can use the ImageMagick 'convert' program to create thumbnails. Quality of images produced by ImageMagick is superior to GD1 but equivalent to GD2.

If ImageMagick is installed on your system and you want to use it, you need to input the full path to the 'convert' program below. On Windows the path should look like 'c:/ImageMagick/' (use / not \ in the path) and should not contain any space, on Unix is it something like '/usr/bin/X11/'.
ImageMagick path



After having entered all required data, click this button to submit the form

Back to top


2.1.3 What the installer does

After performing some basic checks, the installer creates the needed database tables for you and fills them with default values. It creates the file include/config.inc.php within the coppermine folder on your server that stores the database details you entered during install. If you should change your mysql database details later (i.e. if you change the password of your mysql user account or if you migrate your gallery to another server), you will need to edit include/config.inc.php manually to reflect the changes. The file include/config.inc.php also keeps the install script from being run twice: if the installer is run, a check is performed wether the config file exists - if yes, the installer will stop and redirect the user to the index page.

Back to top


2.2 Getting started

Use the "Album Manager" ("Albums" link in the admin menu) in to create and order your albums. You'll need at least one album your files can go into.

Use the anonymous group to define what non-registered users can and can't do (in the groups panel).

Use the properties of an album to modify its description and permissions.

In order for a user to be allowed to upload a file in album two conditions must be met:

  • The user must be part of a group that can upload files.
  • There must be at least one album where "Visitors can upload files" has been set to "Yes",
    OR
    The user has created an album in the 'user galleries', if allowed.

The same applies to picture rating and comment posting.

If you have installed the script succesfully but are having trouble getting it working properly you can enable the "debug mode" on the Config page. In this mode, the script outputs most of the warning/error messages produced by PHP in addition to some debug information. This can provide valuable information to understand what is wrong.

2.2.1 Basic concepts

Of course you're exited about Coppermine and want to start with it right now. However, there are some basic considerations you should make up your mind about first, as some settings can't be changed easily once your gallery has been populated with content.

So this section is meant as a guide once you've finished installing Coppermine. Go through it carefully to avoid issues that may turn up later.