If your account is new, it may not have been validated yet. Please check your e-mail for a validation link. If you used to be able to see this page, it probably means you pissed someone off and they took away some of your permissions. If you think you should have access to this page, please e-mail the ".sb_link(sb_url("email/send?to=&subject=Account%20Question"), "webmaster").".

\n"; $newUserText = "

Congratulations!

\n

Your account has been created. Please feel free to look around. You should receive a validation e-mail soon. To fully activate your account, you must click on the link included in it. Be sure to read the News to see what is happening and go ahead and add a new news item to introduce yourself.

"; $notesText = "Please tell us how you found out about us."; $customGoogle = "&cof=T:000000;L:http://www.shitbag.com/images/Homebutton.jpg;BGC:FFFFFF;AH:left;AWFID:580e1015ada1f205;"; $validationMessage = "%LOGIN%,\n Your account on $domainName has been validated. E-mail sent to %LOGIN%@$domainName will now be forwarded to %EMAIL%. You also have access to the restricted areas of $domainName. Please e-mail $userAdmin if you have any questions.\n"; ?> ".sb_link($reportsDir."update.php","Add a report")); print(" -- ".sb_link($reportsDir."index.php?offset=0","Show newest reports")); print(" -- ".sb_link($reportsDir."index.php?limit=-1","Show all reports")."

\n"); print("

".sb_link($reportsDir."index.php?offset=".($offset-5),"\"Prev")); print(sb_link($reportsDir."index.php?offset=".($offset+5),"\"Next")."

\n"); } function sb_reportPrintPageLinks($reportid, $reportsDir = "", $dbConn = 0) { $reportsDir = ($reportsDir == "")?"":$reportsDir."/"; print("

".sb_link($reportsDir."update.php","Add a report")); print(" -- ".sb_link($reportsDir."index.php?offset=0","Show newest reports")); print(" -- ".sb_link($reportsDir."index.php?limit=-1","Show all reports")."

\n"); print("

".sb_link($reportsDir."index.php?reportid=".($reportid-1),"\"Prev\"")); print(sb_link($reportsDir."index.php?reportid=".($reportid+1),"\"Next\"")."

\n"); } function sb_reportGetReport($reportid, $reportsDir = "", $dbConn = 0) { global $dbPref; $reportsQuery = "select *, tt.content as tmplbody from ${dbPref}report r " . "left outer join ${dbPref}reporttemplate tmpl " . "on r.templateid = tmpl.templateid " . "left outer join ${dbPref}text tt " . "on tmpl.textid = tt.textid " . "left outer join ${dbPref}text t " . "on r.textid = t.textid " . "where reportid = $reportid "; #sb_debug($reportsQuery); $result = sb_dbQuery($reportsQuery, $dbConn); if ($report = sb_dbGetRow($result)) { $searchArray = array(); $replaceArray = array(); $imageids = $report['imageid']; $imageids = $report[3]; $imagearray = array(); $i = 0; foreach (split(',', $imageids) as $imageid) { $alttext = sb_imageGetAltText($imageid); $size = sb_imageGetSize($imageid); $image = "src=\"/site/show_image.php?imageid=$imageid\" alt=\"$alttext\" $size"; array_push($searchArray, "/REPORT_IMAGE_${i}/"); array_push($replaceArray, $image); $imagearray[$i++] = $image; } $report['images'] = $imagearray; $report['imageid'] = split(',',$imageids); $body = $report['tmplbody']; array_push($searchArray, "/REPORT_TITLE/"); array_push($searchArray, "/REPORT_CONTENT/"); array_push($replaceArray, $report['title']); array_push($replaceArray, $report['content']); $body = preg_replace($searchArray,$replaceArray,$body); $report['body'] = $body; } else { $report = array(); } return $report; } function sb_reportGetTitle($reportid, $reportsDir = "", $dbConn = 0) { global $dbPref; $reportsQuery = "select title from ${dbPref}report r " . "where reportid = $reportid "; $result = sb_dbQuery($reportsQuery, $dbConn); if ($row = sb_dbGetRow($result)) { $title = $row["title"]; } else { $title = ""; } return $title; } function sb_reportShowPage($reportid, $reportsDir = "", $dbConn = 0) { $reportsDir = ($reportsDir == "")?"":$reportsDir."/"; $report = sb_reportGetReport($reportid); if (count($report) > 0) { sb_printHeader($report['title']); sb_reportPrintPageLinks($reportid); print($report['body']); sb_printFooter(); } else { header("Location: index.php"); } } function sb_reportShow($reportid, $reportsDir = "", $dbConn = 0) { $reportsDir = ($reportsDir == "")?"":$reportsDir."/"; $report = sb_reportGetReport($reportid); print($report['body']); } function sb_reportListAll($limit = 5, $offset = 0, $minpriority = 0, $reportsDir = "", $dbConn = 0) { global $headlineFont; global $dbPref; global $domainName; global $headlineBG; $reportsDir = ($reportsDir == "")?"":$reportsDir."/"; $limitString = (isset($limit)||isset($offset))?"limit $offset,$limit":""; $reportsQuery = "select * from ${dbPref}report r " . "order by reportDate desc $limitString"; $result = sb_dbQuery($reportsQuery, $dbConn); print(""); while ($row = sb_dbGetRow($result)) { $reportid = $row["reportid"]; $userid = $row["userid"]; if (sb_pageCheckPerms("writeable")) { $updateLink = "Update"; } elseif (sb_getLoggedInUID() == $userid) { $updateLink = "Update"; } $title = stripslashes($row["title"]); $abstract = stripslashes($row["abstract"]); $email = sb_usermanEmailLink($row['userid'],"RE: ".$row['title']); print(""); print(""); print(""); print(""); $reportDate = strftime("%a %b %e at %I:%M %p",strtotime($row["reportDate"])); print(" "); print(""); print(""); print(" "); print(""); print(""); print(""); print(""); } print("
\"\""); print("$title
Posted: $reportDate by $email$updateLink
$abstract"); print("
 
"); } function sb_reportUpdate($report, $dbConn = 0) { global $dbPref; extract($report); $dbConn = ($dbConn == 0)?sb_dbGetConn():$dbConn; if ($reportid == 0) { $textinsert = "insert into ${dbPref}text (language, content) " . "values ('en', '$content')"; #sb_debug($textinsert); sb_dbQuery($textinsert, $dbConn); $textid = sb_dbGetInsertID($dbConn); $imageid = "0"; $update = "insert into ${dbPref}report " . "(userid, textid, imageid, templateid, title, identifier, " . "reportDate, eventDate, abstract, keywords) " . "values ($userid, $textid, '$imageid', $templateid, '$title', " . "'$identifier', now(), '$eventDate', '$abstract', '$keywords')"; #sb_debug($update); sb_dbQuery($update, $dbConn); $reportid = sb_dbGetInsertID($dbConn); } else { $imageid = join(',',$imageid); $update = "update ${dbPref}report set templateid = $templateid, imageid = '$imageid', title = '$title', identifier = '$identifier', eventDate = '$eventDate', abstract = '$abstract', keywords = '$keywords' where reportid = $reportid"; sb_dbQuery($update, $dbConn); $update = "update ${dbPref}text set content = '$content' where textid = $textid"; sb_dbQuery($update, $dbConn); } #sb_debug($reportid); return $reportid; } function sb_reportSelectImage($selectname, $selectedid = 0, $ownerid = 0, $dbConn = 0) { global $dbPref; $query = "select * from ${dbPref}image where ownerid = $ownerid"; $result = sb_dbQuery($query); print("\n"); } function sb_reportSelectTemplate($selectname, $selectedid = 0, $dbConn = 0) { global $dbPref; $query = "select * from ${dbPref}reporttemplate"; $result = sb_dbQuery($query); print("\n"); } ?> "; $showjs = 0; } ?> Reports

Shitbag!

S H I T B A G

climbing's little joke
$url) { if ($url == "") { print("\n \n\n"); } else { print("\n \n\n"); } } } foreach ($commonMenus as $name => $url) { if ($url == "") { print("\n \n\n"); } else { print("\n \n\n"); } } ?>
Adventures
Random Pictures
Tech Stuff
News
Log In
Administration
\n"); print(" $name\n"); print("
\n"); print(" $name\n"); print("
\n"); print(" $name\n"); print("
\n"); print(" $name\n"); print("