Find file
Fetching contributors…
Cannot retrieve contributors at this time
85 lines (73 sloc) 2.68 KB
===Saguaro Imageboard Software===
the above link will have the latest version.
This is a branch off of futallaby and is currently in development because
I felt like doing this and have always prefered imageboards to phpbb clones.
Special thanks to !KNs1o0VDv6, Glas, Anonymous from vchan, RePod, and anyone who actually uses this.
If you need help you can reach me at
or if you would like to help development and have php experience.
If you need help setting saguaro up, check
Remember to look through older threads and see if your problem wasn't solved already!
require "config.php";
require_once(CORE_DIR . "/log/log.php");
$my_log = new Log;
require_once(CORE_DIR . "/mysql/mysql.php");
$mysql = new SaguaroMySQL;
extract($_POST, EXTR_SKIP);
extract($_GET, EXTR_SKIP);
extract($_COOKIE, EXTR_SKIP);
$path = realpath("./") . '/' . IMG_DIR;
// check whether the current user can perform $action (on $no, for some actions)
// board-level access is cached in $valid_cache.
function valid($action = 'moderator', $no = 0) {
require_once(CORE_DIR . "/admin/valid.php");
$validate = new Valid;
return $validate->verify($action);
function error($mes, $dest, $fancy = 0) {
require_once(CORE_DIR . "/general/error.php");
$error = new Error();
$error->format($mes, $dest, $fancy);
switch ($mode) {
case 'regist':
require_once(CORE_DIR . "/regist/regist.php"); // $name, $email, $sub, $com, $url, $pwd, $resto
case 'report':
require_once(CORE_DIR . "/admin/report.php");
$report = new Report;
case 'catalog':
echo "<META HTTP-EQUIV='refresh' content='0;URL=\"catalog.html\"'>"; //let go of the past
case 'usrdel':
global $path, $pwdc, $onlyimgdel;
require_once(CORE_DIR . "/admin/delete.php");
$del = new Delete;
$del->userDel($no, $pwd, $onlyimgdel);
echo "<META HTTP-EQUIV='refresh' content='0;URL=" . PHP_SELF2_ABS . "'>";
if ($res) {
require_once(CORE_DIR . "/general/resredir.php");
echo "<META HTTP-EQUIV='refresh' content='10;URL=" . PHP_SELF2_ABS . "'>";
} else {
echo "Updating index...\n";
echo "<META HTTP-EQUIV='refresh' content='0;URL=" . PHP_SELF2_ABS . "'>";