admin/000075500407710040771000000000001075663035300112245ustar00jml600005120001530admin/add-entry/000075500407710040771000000000001075663034600131155ustar00jml600005120001530admin/add-entry/index.php000064400407710040771000000131001075663034600147300ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 1, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page .= $template->getFileSource(); $bbCode = new BBCode(stripslashes($_POST['add-entry-title'])); $entryTitle = $bbCode->getStrippedCode(); $bbCode = new BBCode(stripslashes($_POST['add-entry-body'])); $entryBody = $bbCode->getStrippedCode(); if(($_POST['add-entry-title']) && (strlen($entryTitle) > 0) && ($_POST['add-entry-body']) && (strlen($entryBody) > 0) && ($_POST['add-entry-topic']) && (!ereg('[^0-9]', $_POST['add-entry-topic'])) && ($_POST['add-entry-topic'] == 0 || ($dbms->countFields("SELECT * FROM ".$databaseVaiables['topic']['table']." WHERE ".$databaseVaiables['topic']['id']."='".mysql_real_escape_string($_POST['add-entry-topic'])."';") == 1)) && (ereg('^(0|1)$', $_POST['add-entry-comments']))){ if($dbms->editDatabase("INSERT INTO `".$databaseVaiables['entry']['table']."` (".$databaseVaiables['entry']['title'].", ".$databaseVaiables['entry']['posted'].", ".$databaseVaiables['entry']['user'].", ".$databaseVaiables['entry']['content'].", ".$databaseVaiables['entry']['topic'].", ".$databaseVaiables['entry']['comments'].") VALUES ('".$entryTitle."', '".date("Y-m-d H:i:s")."', '".$login->getUserId()."', '".$entryBody."', '".mysql_real_escape_string($_POST['add-entry-topic'])."', '".mysql_real_escape_string($_POST['add-entry-comments'])."');")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-added-entry.tmpl"); $page .= $template->getFileSource(); }else{ pageError("add-entry-fail"); } }else{ if($_POST['add-submit']){ if((!$_POST['add-entry-title']) || (strlen($entryTitle) == 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-title-none.tmpl"); $titleError .= $template->getFileSource(); } if((!$_POST['add-entry-body']) || (strlen($entryBody) == 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-body-none.tmpl"); $bodyError .= $template->getFileSource(); } if((!$_POST['add-entry-topic']) || (ereg('[^0-9]', $_POST['add-entry-topic'])) || ($dbms->countFields("SELECT * FROM ".$databaseVaiables['topic']['table']." WHERE ".$databaseVaiables['topic']['id']."='".mysql_real_escape_string($_POST['add-entry-topic'])."';") == 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-topic-invalid.tmpl"); $topicError .= $template->getFileSource(); } if(!ereg('^(0|1)$', $_POST['add-entry-comments'])){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-comments-invalid.tmpl"); $commentsError .= $template->getFileSource(); } } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-add-entry.tmpl"); $template->addTemplateKey("add-entry-title", stripslashes($_POST['add-entry-title'])); $template->addTemplateKey("entry-title-error", $titleError); $template->addTemplateKey("entry-body-error", $bodyError); $template->addTemplateKey("add-entry-body", stripslashes($_POST['add-entry-body'])); $template->addTemplateKey("entry-comments-error", $commentsError); $template->addTemplateKey("add-entry-comments-".htmlspecialchars(stripslashes($_POST['add-entry-comments'])), "selected=\"yes\""); $template->addTemplateKey("entry-topic-error", $topicError); if($dbms->queryDatabase("SELECT ".$databaseVaiables['topic']['id'].", ".$databaseVaiables['topic']['title']." FROM ".$databaseVaiables['topic']['table'].";")){ while($rows = $dbms->getDataArray()){ $stylesTemplate = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/topic-option.tmpl"); $stylesTemplate->addTemplateKey("topic-id", $rows[$databaseVaiables['topic']['id']]); $stylesTemplate->addTemplateKey("topic-name", $rows[$databaseVaiables['topic']['title']]); if($rows[$databaseVaiables['topic']['id']] == stripslashes($_POST['add-entry-topic'])){ $stylesTemplate->addTemplateKey("topic-selected", "selected=\"yes\""); } $stylesTemplate->alterSource(); $topics .= $stylesTemplate->getFileSource(); } } $template->addTemplateKey("entry-topic-options", $topics); $template->alterSource(); $page .= $template->getFileSource(); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/add-style/000075500407710040771000000000001075663034600131145ustar00jml600005120001530admin/add-style/index.php000064400407710040771000000064421075663034600147420ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 3, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page .= $template->getFileSource(); $dir = THIS_FOLDER."/templates/"; $itemsFound = false; if($dbms->countFields(($query = "SELECT ".$databaseVaiables['styles']['table'].".* FROM ".$databaseVaiables['styles']['table'].";")) > 0){ $dbms->queryDatabase($query); while($rows = $dbms->getDataArray()){ $stylesInstalled[] = $rows[$databaseVaiables['styles']['name']]; } } if(is_dir(($directory = THIS_FOLDER."/templates/"))){ if($directoryFeed = opendir($directory)){ while(($file = readdir($directoryFeed)) !== false){ if((is_dir($directory.$file)) && ($file != ".") && ($file != "..") && ((!is_array($stylesInstalled)) || ((is_array($stylesInstalled)) && (!in_array($file, $stylesInstalled))))){ if(is_dir($directory.$file."/html") && is_dir($directory.$file."/html/error") && is_dir($directory.$file."/html/admin") && is_dir($directory.$file."/html/admin/error") && is_dir($directory.$file."/html/admin/change") && is_dir($directory.$file."/html/admin/options") && is_dir($directory.$file."/css") && is_dir($directory.$file."/images") && is_dir($directory.$file."/scripts") && is_dir($directory.$file."/style-info")){ $thisFile = new FileHandler($directory.$file."/style-info/version"); $version = $thisFile->getFileSource(); if($version == VERSION){ if(!eregi("[^A-Za-z0-9_-]+", $file)){ $itemsFound = true; $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-install-style.tmpl"); $template->addTemplateKey("style-name", $file); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->alterSource(); $page .= $template->getFileSource(); } } } } } closedir($directoryFeed); } if($itemsFound){ }else{ pageError("no-styles-install"); } }else{ pageError("directory-invalid"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/add-topic/000075500407710040771000000000001075663034700130735ustar00jml600005120001530admin/add-topic/index.php000064400407710040771000000063701075663034700147210ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 2, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page .= $template->getFileSource(); $bbCode = new BBCode(stripslashes($_POST['add-topic-title'])); $topicTitle = $bbCode->getStrippedCode(); $bbCode = new BBCode(stripslashes($_POST['add-topic-description'])); $topicDescription = $bbCode->getStrippedCode(); if(($_POST['add-topic-title']) && (strlen($topicTitle) > 0) && ($_POST['add-topic-description']) && (strlen($topicDescription) > 0)){ if($dbms->editDatabase("INSERT INTO `".$databaseVaiables['topic']['table']."` (".$databaseVaiables['topic']['title'].", ".$databaseVaiables['topic']['description'].") VALUES ('".mysql_real_escape_string($topicTitle)."', '".mysql_real_escape_string($topicDescription)."');")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-added-topic.tmpl"); $page .= $template->getFileSource(); }else{ pageError("add-topic-fail"); } }else{ if($_POST['add-submit']){ if((!$_POST['add-topic-title']) || (strlen($topicTitle) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-title-none.tmpl"); $topicTitleError .= $template->getFileSource(); } if((!$_POST['add-topic-description']) || (strlen($topicDescription) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-description-none.tmpl"); $topicTitleDescription .= $template->getFileSource(); } } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-add-topic.tmpl"); $template->addTemplateKey("add-topic-title", stripslashes($_POST['add-topic-title'])); $template->addTemplateKey("topic-title-error", $topicTitleError); $template->addTemplateKey("add-topic-description", stripslashes($_POST['add-topic-description'])); $template->addTemplateKey("topic-description-error", $topicTitleDescription); $template->alterSource(); $page .= $template->getFileSource(); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/add-user/000075500407710040771000000000001075663034700127335ustar00jml600005120001530admin/add-user/index.php000064400407710040771000000172111075663034700145550ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 3, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $entries .= $template->getFileSource(); $bbCode = new BBCode(stripslashes($_POST['add-display-name'])); $displayName = $bbCode->getStrippedCode(); if((($_POST['add-display-name']) && (strlen($displayName) <= 100) && (strlen($displayName) > 0) && ($dbms->countFields("SELECT * FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['displayname']."='".mysql_real_escape_string($displayName)."';") == 0)) && (($_POST['add-username']) && (strlen($_POST['add-username'])<= 30) && (strlen($_POST['add-username']) > 0) && (!eregi("[^A-Za-z0-9_-]+", $_POST['add-username'])) && ($dbms->countFields("SELECT * FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['displayname']."='".mysql_real_escape_string($_POST['add-username'])."';") == 0)) && (($_POST['add-password']) && (strlen($_POST['add-password']) <= 100) && (strlen($_POST['add-password']) > 0) && (!eregi("[^A-Za-z0-9_-]+", $_POST['add-password']))) && ($_POST['add-password'] === $_POST['add-repassword']) && (($_POST['add-user-level']) && (strlen($_POST['add-user-level']) <= 3) && (strlen($_POST['add-user-level']) >= 1) && (!eregi("[^1-3]+", $_POST['add-user-level'])))){ if($dbms->editDatabase("INSERT INTO `".$databaseVaiables['users']['table']."` (".$databaseVaiables['users']['username'].", ".$databaseVaiables['users']['password'].", ".$databaseVaiables['users']['displayname'].", ".$databaseVaiables['users']['access'].", ".$databaseVaiables['users']['active'].") VALUES ('".mysql_real_escape_string($_POST['add-username'])."', '".md5(mysql_real_escape_string($_POST['add-password']))."', '".mysql_real_escape_string($displayName)."', '".mysql_real_escape_string($_POST['add-user-level'])."', '1');")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-added-user.tmpl"); $entries .= $template->getFileSource(); }else{ pageError("add-user-fail"); } }else{ if($_POST['add-submit']){ if((!$_POST['add-display-name']) || (strlen($displayName) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-display-none.tmpl"); $displayNameError .= $template->getFileSource(); } if($dbms->countFields("SELECT * FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['displayname']."='".$displayName."';") != 0){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-display-exists.tmpl"); $displayNameError .= $template->getFileSource(); } if(strlen($displayName) > 100){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-display-too-long.tmpl"); $displayNameError .= $template->getFileSource(); } if((!$_POST['add-username']) || (strlen($_POST['add-username']) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-username-none.tmpl"); $usernameError .= $template->getFileSource(); } if(strlen($_POST['add-username']) > 30){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-username-too-long.tmpl"); $usernameError .= $template->getFileSource(); } if(eregi("[^A-Za-z0-9_-]+", $_POST['add-username'])){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-username-invalid.tmpl"); $usernameError .= $template->getFileSource(); } if($dbms->countFields("SELECT * FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['username']."='".mysql_real_escape_string($_POST['add-username'])."';") != 0){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-username-exists.tmpl"); $usernameError .= $template->getFileSource(); } if((!$_POST['add-password']) ||(strlen($_POST['add-password']) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-password-none.tmpl"); $passwordError .= $template->getFileSource(); } if(strlen($_POST['add-password']) > 100){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-password-too-long.tmpl"); $passwordError .= $template->getFileSource(); } if(eregi("[^A-Za-z0-9_-]+", $_POST['add-password'])){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-password-invalid.tmpl"); $passwordError .= $template->getFileSource(); } if($_POST['add-password'] !== $_POST['add-repassword']){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-repassword-not-match.tmpl"); $repasswordError .= $template->getFileSource(); } if(!$_POST['add-user-level']){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-level-none.tmpl"); $userLevelError .= $template->getFileSource(); } if(($_POST['add-user-level']) && ((strlen($_POST['add-user-level']) < 1) || (strlen($_POST['add-user-level']) > 3) || (eregi("[^1-3]+", $_POST['add-user-level'])))){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-level-invalid.tmpl"); $userLevelError .= $template->getFileSource(); } } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-add-user.tmpl"); $template->addTemplateKey("add-user-display", htmlspecialchars(stripslashes($_POST['add-display-name']))); $template->addTemplateKey("user-display-error", $displayNameError); $template->addTemplateKey("add-user-username", htmlspecialchars(stripslashes($_POST['add-username']))); $template->addTemplateKey("user-username-error", $usernameError); $template->addTemplateKey("add-user-password", htmlspecialchars(stripslashes($_POST['add-password']))); $template->addTemplateKey("user-password-error", $passwordError); $template->addTemplateKey("add-user-repassword", htmlspecialchars(stripslashes($_POST['add-repassword']))); $template->addTemplateKey("user-repassword-error", $repasswordError); $template->addTemplateKey("level".htmlspecialchars(stripslashes($_POST['add-user-level']))."selected", "selected=\"true\""); $template->addTemplateKey("user-level-error", $userLevelError); $template->alterSource(); $entries .= $template->getFileSource(); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $entries); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/block-ip/000075500407710040771000000000001075663034700127275ustar00jml600005120001530admin/block-ip/index.php000064400407710040771000000032521075663034700145510ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 1, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ if($_GET['comment']){ if(!ereg('[^0-9]', $_GET['comment'])){ if($dbms->countFields(($query = "SELECT ".$databaseVaiables['comments']['ip'].", ".$databaseVaiables['comments']['entry']." FROM ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['comments']['id']."='".mysql_real_escape_string($_GET['comment'])."';")) == 1){ $row = mysql_fetch_row($dbms->queryDatabase($query)); if($dbms->countFields(($query = "SELECT * FROM ".$databaseVaiables['blocked']['table']." WHERE ".$databaseVaiables['blocked']['ip']."='".$row[0]."';")) == 0){ if($dbms->editDatabase("INSERT INTO `".$databaseVaiables['blocked']['table']."` (".$databaseVaiables['blocked']['ip'].") VALUES ('".$row[0]."');")){ header("location:../comments-post-list/?entry=".$row[1]); } }else{ pageError("already-blocked-ip"); } }else{ pageError("no-comments-found"); } }else{ pageError("no-comments-found"); } }else{ pageError("no-comments-found"); } }else{ pageError("not-logged-invalid-level"); } ?>admin/change-password/000075500407710040771000000000001075663035000143065ustar00jml600005120001530admin/change-password/index.php000064400407710040771000000127231075663035000161330ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 1, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn()){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page .= $template->getFileSource(); //---- if($_POST['change-password']){ if(($_POST['current-password']) && (strlen($_POST['current-password']) <= 100) && (strlen($_POST['current-password']) > 0) && (!eregi("[^A-Za-z0-9_-]+", $_POST['current-password'])) && ($dbms->countFields("SELECT * FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['id']."='".mysql_real_escape_string($login->getUserId())."' && ".$databaseVaiables['users']['password']."='".md5(mysql_real_escape_string($_POST['current-password']))."';") == 1) && ($_POST['new-password']) && (strlen($_POST['new-password']) <= 100) && (strlen($_POST['new-password']) > 0) && (!eregi("[^A-Za-z0-9_-]+", $_POST['new-password'])) && ($_POST['new-password'] === $_POST['renew-password'])){ if($dbms->editDatabase("UPDATE `".$databaseVaiables['users']['table']."` SET ".$databaseVaiables['users']['password']."='".md5(mysql_real_escape_string($_POST['new-password']))."' WHERE ".$databaseVaiables['users']['id']."='".mysql_real_escape_string($login->getUserId())."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-changed-password.tmpl"); $page .= $template->getFileSource(); }else{ pageError("edit-password-fail"); } }else{ if((!$_POST['current-password']) || (strlen($_POST['current-password']) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/change-password-current-blank.tmpl"); $currentPasswordErrors .= $template->getFileSource(); } if(eregi("[^A-Za-z0-9_-]+", $_POST['current-password'])){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/change-password-current-invalid.tmpl"); $currentPasswordErrors .= $template->getFileSource(); } if(strlen($_POST['current-password']) > 100){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/change-password-current-too-long.tmpl"); $currentPasswordErrors .= $template->getFileSource(); } if($dbms->countFields("SELECT * FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['id']."='".$login->getUserId()."' && ".$databaseVaiables['users']['password']."='".md5(mysql_real_escape_string($_POST['current-password']))."';") == 0){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/change-password-current-incorrect.tmpl"); $currentPasswordErrors .= $template->getFileSource(); } if((!$_POST['new-password']) || (strlen($_POST['new-password']) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/change-password-new-blank.tmpl"); $newPasswordErrors .= $template->getFileSource(); } if(eregi("[^A-Za-z0-9_-]+", $_POST['new-password'])){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/change-password-new-invalid.tmpl"); $newPasswordErrors .= $template->getFileSource(); } if(strlen($_POST['new-password']) > 100){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/change-password-new-too-long.tmpl"); $newPasswordErrors .= $template->getFileSource(); } if($_POST['new-password'] !== $_POST['renew-password']){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/change-password-new-not-match.tmpl"); $renewPasswordErrors .= $template->getFileSource(); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-change-password.tmpl"); $template->addTemplateKey("current-password-error", $currentPasswordErrors); $template->addTemplateKey("new-password-error", $newPasswordErrors); $template->addTemplateKey("renew-password-error", $renewPasswordErrors); $template->alterSource(); $page .= $template->getFileSource(); } }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-change-password.tmpl"); $page .= $template->getFileSource(); } //---- $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-login.tmpl"); $template->alterSource(); setPage($template->getFileSource()); } ?>admin/comment-delete/000075500407710040771000000000001075663035000141235ustar00jml600005120001530admin/comment-delete/index.php000064400407710040771000000051061075663035000157450ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 1, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page = $template->getFileSource(); if($_GET['comment']){ if(!ereg('[^0-9]', $_GET['comment'])){ if($dbms->countFields(($query = "SELECT * FROM ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['comments']['id']."='".mysql_real_escape_string($_GET['comment'])."';")) == 1){ if($_POST['delete-submit']){ if($dbms->editDatabase("DELETE FROM `".$databaseVaiables['comments']['table']."` WHERE ".$databaseVaiables['comments']['id']."='".mysql_real_escape_string($_GET['comment'])."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-deleted-comment.tmpl"); $page .= $template->getFileSource(); }else{ pageError("delete-user-fail"); } }else{ if($_POST['delete-cancel']){ header("location:".THIS_FOLDER."/admin/entry-list"); } $row = mysql_fetch_row($dbms->queryDatabase($query)); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-delete-comment.tmpl"); $page .= $template->getFileSource(); } }else{ pageError("no-comments-found"); } }else{ pageError("no-comments-found"); } }else{ pageError("no-comments-found"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/comment-edit/000075500407710040771000000000001075663035000136065ustar00jml600005120001530admin/comment-edit/index.php000064400407710040771000000146341075663035000154360ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 1, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page .= $template->getFileSource(); $bbCode = new BBCode(stripslashes($_POST['edit-comment-name'])); $commentName = $bbCode->getStrippedCode(); $bbCode = new BBCode(stripslashes($_POST['edit-comment-body'])); $commentBody = $bbCode->getStrippedCode(); if($_GET['comment']){ if(!ereg('[^0-9]', $_GET['comment'])){ if($dbms->countFields("SELECT * FROM ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['comments']['id']."='".mysql_real_escape_string($_GET['comment'])."';") == 1){ if(((($_POST['edit-comment-name']) && (strlen($commentName) > 0) && (strlen($commentName) <= 50)) || (!$_POST['edit-comment-name'])) && ((($_POST['edit-comment-email']) && (strlen($_POST['edit-comment-email']) > 0) && (strlen($_POST['edit-comment-email']) <= 100) && (eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $_POST['edit-comment-email']))) || (!$_POST['edit-comment-email'])) && (($_POST['edit-comment-body']) && (strlen($commentBody) > 0) && (strlen($commentBody) <= COMMENT_LENGTH))){ if($dbms->editDatabase("UPDATE `".$databaseVaiables['comments']['table']."` SET ".$databaseVaiables['comments']['name']."='".mysql_real_escape_string($commentName)."', ".$databaseVaiables['comments']['email']."='".mysql_real_escape_string($_POST['edit-comment-email'])."', ".$databaseVaiables['comments']['comment']."='".mysql_real_escape_string($commentBody)."' WHERE ".$databaseVaiables['comments']['id']."='".mysql_real_escape_string($_GET['comment'])."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edited-comment.tmpl"); $page .= $template->getFileSource(); }else{ pageError("edit-comment-fail"); } }else{ if($_POST['edit-submit']){ if(($_POST['edit-comment-name']) && (strlen($commentName) > 50)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-name-too-long.tmpl"); $commentNameError .= $template->getFileSource(); } if(($_POST['edit-comment-email']) && (strlen($_POST['edit-comment-email']) > 100)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-email-too-long.tmpl"); $commentEmailError .= $template->getFileSource(); } if(($_POST['edit-comment-email']) && (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $_POST['edit-comment-email']))){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-email-invalid.tmpl"); $commentEmailError .= $template->getFileSource(); } if(($_POST['edit-comment-body']) && (strlen($commentBody) > COMMENT_LENGTH)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-body-too-long.tmpl"); $commentBodyError .= $template->getFileSource(); } if((!$_POST['edit-comment-body']) || (strlen($commentBody) == 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-body-blank.tmpl"); $commentBodyError .= $template->getFileSource(); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edit-comment.tmpl"); $template->addTemplateKey("edit-comment-name", $commentName); $template->addTemplateKey("comment-name-error", $commentNameError); $template->addTemplateKey("edit-comment-email", stripslashes($_POST['edit-comment-email'])); $template->addTemplateKey("comment-email-error", $commentEmailError); $template->addTemplateKey("edit-comment-body", $commentBody); $template->addTemplateKey("comment-body-error", $commentBodyError); $template->addTemplateKey("comment-id", $_GET['comment']); $template->alterSource(); $page .= $template->getFileSource(); }else{ if(($query = $dbms->queryDatabase("SELECT ".$databaseVaiables['comments']['name'].", ".$databaseVaiables['comments']['email'].", ".$databaseVaiables['comments']['comment']." FROM ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['comments']['id']."='".mysql_real_escape_string($_GET['comment'])."';"))){ $row = mysql_fetch_row($query); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edit-comment.tmpl"); if($row[0] != 0){ $template->addTemplateKey("edit-comment-name", $row[0]); } $template->addTemplateKey("edit-comment-email", $row[1]); $template->addTemplateKey("edit-comment-body", $row[2]); $template->addTemplateKey("comment-id", $_GET['comment']); $template->alterSource(); $page .= $template->getFileSource(); }else{ pageError("no-comments-found"); } } } }else{ pageError("no-comments-found"); } }else{ pageError("no-comments-found"); } }else{ pageError("no-comments-found"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/comments-entry-list/000075500407710040771000000000001075663035100151575ustar00jml600005120001530admin/comments-entry-list/index.php000064400407710040771000000100161075663035100167750ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 1, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $entries .= $template->getFileSource(); $pageItems = PAGEITEMS; $pageStart = 0; $maxPageItems = $dbms->countFields("SELECT * FROM ".$databaseVaiables['entry']['table'].";"); if($_GET['page']){ if(!ereg('[^0-9]', $_GET['page'])){ if((($_GET['page']-1) > 0) && ($_GET['page'] < (($maxPageItems+$pageItems)/$pageItems))){ $pageStart = (($_GET['page']-1)*$pageItems); if(($_GET['page']*$pageItems) > $maxPageItems){ $pageItems = ($pageItems-(($_GET['page']*$pageItems)-$maxPageItems)); } } } } if($dbms->countFields(($query = "SELECT * FROM ".$databaseVaiables['entry']['table']." ORDER BY ".$databaseVaiables['entry']['id']." DESC LIMIT ".$pageStart.", ".$pageItems.";")) > 0){ $dbms->queryDatabase($query); while($rows = $dbms->getDataArray()){ $commentCount = $dbms->countFields("SELECT * FROM ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['comments']['entry']."='".$rows[$databaseVaiables['entry']['id']]."';"); if($commentCount > 0){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-comments-entry-list.tmpl"); $template->addTemplateKey("entry-id", $rows[$databaseVaiables['entry']['id']]); $template->addTemplateKey("entry-comments", $commentCount); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-no-comments-entry-list.tmpl"); } $template->addTemplateKey("entry-title", $rows[$databaseVaiables['entry']['title']]); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->alterSource(); $entries .= $template->getFileSource(); } $pageCount = 0; while($maxPageItems > 0){ $pageCount++; if((((!$_GET['page']) || (($_GET['page']-1) <= 0) || ($_GET['page'] >= (($maxPageItems+PAGEITEMS)/PAGEITEMS))) && ($pageCount == 1)) || ($_GET['page'] == $pageCount)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plaintext.tmpl"); $template->addTemplateKey("plaintext", $pageCount); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plainlink.tmpl"); $template->addTemplateKey("linklocation", "?page=".$pageCount); $template->addTemplateKey("linktext", $pageCount); } $template->alterSource(); $pageSplit .= $template->getFileSource(); $maxPageItems -= PAGEITEMS; } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-user-split.tmpl"); $template->addTemplateKey("splitpages", $pageSplit); $template->alterSource(); $entries .= $template->getFileSource(); }else{ pageError("no-entry-found"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $entries); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>tabaseVaiables['entry']['id']." DESC LIMIT ".$pageStart.", ".$pageItems.";")) > 0){ $dbms->queryDatabase($query); while($rows = $dbms->getDataArray()){ $commentCount = $dbms->countFields("SELECT * FROM ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['comments']['entry']."='".$rows[$databaseVaiables['entry']['id']]."';"); if($commentCount > 0){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-comments-entry-lisadmin/comments-post-list/000075500407710040771000000000001075663035100150035ustar00jml600005120001530admin/comments-post-list/index.php000064400407710040771000000131751075663035100166320ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 1, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $entries .= $template->getFileSource(); if($_GET['entry']){ if(!ereg('[^0-9]', $_GET['entry'])){ if($dbms->countFields("SELECT * FROM ".$databaseVaiables['entry']['table']." WHERE ".$selectUser." ".$databaseVaiables['entry']['id']."='".mysql_real_escape_string($_GET['entry'])."';") == 1){ $pageItems = PAGEITEMS; $pageStart = 0; $maxPageItems = $dbms->countFields("SELECT * FROM ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['comments']['entry']."='".mysql_real_escape_string($_GET['entry'])."';"); if($_GET['page']){ if(!ereg('[^0-9]', $_GET['page'])){ if((($_GET['page']-1) > 0) && ($_GET['page'] < (($maxPageItems+$pageItems)/$pageItems))){ $pageStart = (($_GET['page']-1)*$pageItems); if(($_GET['page']*$pageItems) > $maxPageItems){ $pageItems = ($pageItems-(($_GET['page']*$pageItems)-$maxPageItems)); } } } } if($dbms->countFields(($query = "SELECT ".$databaseVaiables['entry']['table'].".*, ".$databaseVaiables['comments']['table'].".* FROM ".$databaseVaiables['entry']['table'].", ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['id']."='".mysql_real_escape_string($_GET['entry'])."' && ".$databaseVaiables['comments']['table'].".".$databaseVaiables['comments']['entry']."=".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['id']." ORDER BY ".$databaseVaiables['comments']['table'].".".$databaseVaiables['comments']['id']." DESC LIMIT ".$pageStart.", ".$pageItems.";")) > 0){ $dbms->queryDatabase($query); while($rows = $dbms->getDataArray()){ if($dbms->countFields("SELECT * FROM ".$databaseVaiables['blocked']['table']." WHERE ".$databaseVaiables['blocked']['ip']."='".$rows[$databaseVaiables['comments']['ip']]."';") > 0){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-comments-blocked-post-list.tmpl"); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-comments-post-list.tmpl"); } $template->addTemplateKey("post-id", $rows[$databaseVaiables['comments']['id']]); $template->addTemplateKey("post-body", $rows[$databaseVaiables['comments']['comment']]); if($rows[$databaseVaiables['comments']['name']]){ $template->addTemplateKey("post-user-name", $rows[$databaseVaiables['comments']['name']]); }else{ $template->addTemplateKey("post-user-name", DEFAULT_COMMENT); } if($rows[$databaseVaiables['comments']['email']]){ $template->addTemplateKey("post-user-email", $rows[$databaseVaiables['comments']['email']]); }else{ $template->addTemplateKey("post-user-email", "No E-Mail Specified"); } $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->alterSource(); $entries .= $template->getFileSource(); } $pageCount = 0; while($maxPageItems > 0){ $pageCount++; if((((!$_GET['page']) || (($_GET['page']-1) <= 0) || ($_GET['page'] >= (($maxPageItems+PAGEITEMS)/PAGEITEMS))) && ($pageCount == 1)) || ($_GET['page'] == $pageCount)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plaintext.tmpl"); $template->addTemplateKey("plaintext", $pageCount); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plainlink.tmpl"); $template->addTemplateKey("linklocation", "?entry=".$_GET['entry']."&page=".$pageCount); $template->addTemplateKey("linktext", $pageCount); } $template->alterSource(); $pageSplit .= $template->getFileSource(); $maxPageItems -= PAGEITEMS; } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-user-split.tmpl"); $template->addTemplateKey("splitpages", $pageSplit); $template->alterSource(); $entries .= $template->getFileSource(); }else{ pageError("no-entry-found"); } }else{ pageError("no-entry-found"); } }else{ pageError("no-entry-found"); } }else{ pageError("no-entry-found"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $entries); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/edit-setup/000075500407710040771000000000001075663035200133065ustar00jml600005120001530admin/edit-setup/index.php000064400407710040771000000355611075663035200151400ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 3, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page = $template->getFileSource(); if($_POST['edit-setup']){ if($_POST['setup-blog-active'] || $_POST['setup-blog-active'] == 0){ if(ereg('^(0|1)$', $_POST['setup-blog-active'])){ if($_POST['setup-blog-active'] != BLOG_ACTIVE){ if($dbms->editDatabase("UPDATE `".$databaseVaiables['setup']['table']."` SET ".$databaseVaiables['setup']['active']."='".mysql_real_escape_string($_POST['setup-blog-active'])."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/change/edit-blog-active-changed.tmpl"); $blogActiveEdit .= $template->getFileSource(); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-active-unable-change.tmpl"); $blogActiveEdit .= $template->getFileSource(); } } }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-active-invalid.tmpl"); $blogActiveEdit .= $template->getFileSource(); } } if($_POST['setup-blog-title']){ $bbCode = new BBCode(stripslashes(htmlspecialchars($_POST['setup-blog-title']))); if($bbCode->getStrippedCode() != TITLE){ if($dbms->editDatabase("UPDATE `".$databaseVaiables['setup']['table']."` SET ".$databaseVaiables['setup']['name']."='".mysql_real_escape_string($bbCode->getStrippedCode())."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/change/edit-blog-title-changed.tmpl"); $blogTitleEdit .= $template->getFileSource(); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-title-unable-change.tmpl"); $blogTitleEdit .= $template->getFileSource(); } } } if($_POST['setup-blog-description']){ $bbCode = new BBCode(stripslashes(htmlspecialchars($_POST['setup-blog-description']))); if($bbCode->getStrippedCode() != DESCRIPTION){ if($dbms->editDatabase("UPDATE `".$databaseVaiables['setup']['table']."` SET ".$databaseVaiables['setup']['description']."='".mysql_real_escape_string($bbCode->getStrippedCode())."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/change/edit-blog-description-changed.tmpl"); $blogDescriptionEdit .= $template->getFileSource(); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-description-unable-change.tmpl"); $blogDescriptionEdit .= $template->getFileSource(); } } } if($_POST['setup-login-attempts'] || $_POST['setup-login-attempts'] == 0){ if(ereg('^(0|5|10|20)$', $_POST['setup-login-attempts'])){ if($_POST['setup-login-attempts'] != MAX_LOGIN_ATTEMPTS){ if($dbms->editDatabase("UPDATE `".$databaseVaiables['setup']['table']."` SET ".$databaseVaiables['setup']['attempts']."='".mysql_real_escape_string($_POST['setup-login-attempts'])."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/change/edit-blog-attempts-changed.tmpl"); $blogAttemptsEdit .= $template->getFileSource(); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-attempts-unable-change.tmpl"); $blogAttemptsEdit .= $template->getFileSource(); } } }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-attempts-invalid.tmpl"); $blogAttemptsEdit .= $template->getFileSource(); } } if($_POST['setup-comment-default']){ $bbCode = new BBCode(stripslashes(htmlspecialchars($_POST['setup-comment-default']))); if($bbCode->getStrippedCode() != DEFAULT_COMMENT){ if($dbms->editDatabase("UPDATE `".$databaseVaiables['setup']['table']."` SET ".$databaseVaiables['setup']['comment_default']."='".mysql_real_escape_string($bbCode->getStrippedCode())."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/change/edit-blog-comment-default-changed.tmpl"); $blogCommentDefaultEdit .= $template->getFileSource(); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-comment-default-unable-change.tmpl"); $blogCommentDefaultEdit .= $template->getFileSource(); } } } if($_POST['setup-comment-length'] || $_POST['setup-comment-length'] == 0){ if(ereg('^(0|100|500|1000|2000|5000)$', $_POST['setup-comment-length'])){ if($_POST['setup-comment-length'] != COMMENT_LENGTH){ if($dbms->editDatabase("UPDATE `".$databaseVaiables['setup']['table']."` SET ".$databaseVaiables['setup']['comment_length']."='".mysql_real_escape_string($_POST['setup-comment-length'])."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/change/edit-blog-comment-length-changed.tmpl"); $blogCommentLengthEdit .= $template->getFileSource(); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-comment-length-unable-change.tmpl"); $blogCommentLengthEdit .= $template->getFileSource(); } } }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-comment-length-invalid.tmpl"); $blogCommentLengthEdit .= $template->getFileSource(); } } if($_POST['setup-comment-delay'] || $_POST['setup-comment-delay'] == 0){ if(ereg('^(0|30|60|300)$', $_POST['setup-comment-delay'])){ if($_POST['setup-comment-delay'] != COMMENT_DELAY){ if($dbms->editDatabase("UPDATE `".$databaseVaiables['setup']['table']."` SET ".$databaseVaiables['setup']['comment_delay']."='".mysql_real_escape_string($_POST['setup-comment-delay'])."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/change/edit-blog-comment-delay-changed.tmpl"); $blogCommentDelayEdit .= $template->getFileSource(); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-comment-delay-unable-change.tmpl"); $blogCommentDelayEdit .= $template->getFileSource(); } } }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-comment-delay-invalid.tmpl"); $blogCommentDelayEdit .= $template->getFileSource(); } } if($_POST['setup-items-page'] || $_POST['setup-items-page'] == 0){ if(ereg('^(5|10|20|50)$', $_POST['setup-items-page'])){ if($_POST['setup-items-page'] != PAGEITEMS){ if($dbms->editDatabase("UPDATE `".$databaseVaiables['setup']['table']."` SET ".$databaseVaiables['setup']['pageitems']."='".mysql_real_escape_string($_POST['setup-items-page'])."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/change/edit-blog-items-changed.tmpl"); $blogItemsEdit .= $template->getFileSource(); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-items-unable-change.tmpl"); $blogItemsEdit .= $template->getFileSource(); } } }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-items-invalid.tmpl"); $blogItemsEdit .= $template->getFileSource(); } } if($_POST['setup-active-style']){ if(!ereg('[^0-9]', $_POST['setup-active-style'])){ if($_POST['setup-active-style'] != ACTIVE_STYLE){ if($dbms->countFields("SELECT * FROM ".$databaseVaiables['styles']['table']." WHERE ".$databaseVaiables['styles']['id']."='".mysql_real_escape_string($_POST['setup-active-style'])."';") == 1){ if($dbms->editDatabase("UPDATE `".$databaseVaiables['setup']['table']."` SET ".$databaseVaiables['setup']['style']."='".mysql_real_escape_string($_POST['setup-active-style'])."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/change/edit-blog-items-changed.tmpl"); $blogActiveStyleEdit .= $template->getFileSource(); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-items-unable-change.tmpl"); $blogActiveStyleEdit .= $template->getFileSource(); } }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-items-invalid.tmpl"); $blogActiveStyleEdit .= $template->getFileSource(); } } }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-items-invalid.tmpl"); $blogActiveStyleEdit .= $template->getFileSource(); } } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edit-setup.tmpl"); $template->addTemplateKey("setup-blog-active-error", $blogActiveEdit); $template->addTemplateKey("setup-blog-".htmlspecialchars(stripslashes($_POST['setup-blog-active'])), "selected=\"yes\""); $template->addTemplateKey("setup-blog-title-error", $blogTitleEdit); $template->addTemplateKey("setup-blog-title", htmlspecialchars(stripslashes($_POST['setup-blog-title']))); $template->addTemplateKey("setup-blog-description-error", $blogDescriptionEdit); $template->addTemplateKey("setup-blog-description", htmlspecialchars(stripslashes($_POST['setup-blog-description']))); $template->addTemplateKey("setup-login-attempts-error", $blogAttemptsEdit); $template->addTemplateKey("login-attempts-".htmlspecialchars(stripslashes($_POST['setup-login-attempts'])), "selected=\"yes\""); $template->addTemplateKey("setup-comment-default-error", $blogCommentDefaultEdit); $template->addTemplateKey("setup-comment-default", htmlspecialchars(stripslashes($_POST['setup-comment-default']))); $template->addTemplateKey("setup-comment-length-error", $blogCommentLengthEdit); $template->addTemplateKey("comment-length-".htmlspecialchars(stripslashes($_POST['setup-comment-length'])), "selected=\"yes\""); $template->addTemplateKey("setup-comment-delay-error", $blogCommentDelayEdit); $template->addTemplateKey("comment-delay-".htmlspecialchars(stripslashes($_POST['setup-comment-delay'])), "selected=\"yes\""); $template->addTemplateKey("setup-items-page-error", $blogItemsEdit); $template->addTemplateKey("items-page-".htmlspecialchars(stripslashes($_POST['setup-items-page'])), "selected=\"yes\""); $template->addTemplateKey("setup-active-style-error", $blogActiveStyleEdit); if($dbms->queryDatabase("SELECT ".$databaseVaiables['styles']['id'].", ".$databaseVaiables['styles']['name']." FROM ".$databaseVaiables['styles']['table'].";")){ while($rows = $dbms->getDataArray()){ $stylesTemplate = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/style-option.tmpl"); $stylesTemplate->addTemplateKey("style-id", $rows[$databaseVaiables['styles']['id']]); $stylesTemplate->addTemplateKey("style-name", $rows[$databaseVaiables['styles']['name']]); if($rows[$databaseVaiables['styles']['id']] == htmlspecialchars(stripslashes($_POST['setup-active-style']))){ $stylesTemplate->addTemplateKey("style-selected", "selected=\"yes\""); } $stylesTemplate->alterSource(); $styles .= $stylesTemplate->getFileSource(); } } $template->addTemplateKey("setup-active-style", $styles); $template->alterSource(); $page .= $template->getFileSource(); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edit-setup.tmpl"); $template->addTemplateKey("setup-blog-active-error", $blogActiveEdit); $template->addTemplateKey("setup-blog-".BLOG_ACTIVE, "selected=\"yes\""); $template->addTemplateKey("setup-blog-title-error", $blogTitleEdit); $template->addTemplateKey("setup-blog-title", TITLE); $template->addTemplateKey("setup-blog-description-error", $blogDescriptionEdit); $template->addTemplateKey("setup-blog-description", DESCRIPTION); $template->addTemplateKey("setup-login-attempts-error", $blogAttemptsEdit); $template->addTemplateKey("login-attempts-".MAX_LOGIN_ATTEMPTS, "selected=\"yes\""); $template->addTemplateKey("setup-comment-default-error", $blogCommentDefaultEdit); $template->addTemplateKey("setup-comment-default", DEFAULT_COMMENT); $template->addTemplateKey("setup-comment-length-error", $blogCommentLengthEdit); $template->addTemplateKey("comment-length-".COMMENT_LENGTH, "selected=\"yes\""); $template->addTemplateKey("setup-comment-delay-error", $blogCommentDelayEdit); $template->addTemplateKey("comment-delay-".COMMENT_DELAY, "selected=\"yes\""); $template->addTemplateKey("setup-items-page-error", $blogItemsEdit); $template->addTemplateKey("items-page-".PAGEITEMS, "selected=\"yes\""); $template->addTemplateKey("setup-active-style-error", $blogActiveStyleEdit); if($dbms->queryDatabase("SELECT ".$databaseVaiables['styles']['id'].", ".$databaseVaiables['styles']['name']." FROM ".$databaseVaiables['styles']['table'].";")){ while($rows = $dbms->getDataArray()){ $stylesTemplate = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/style-option.tmpl"); $stylesTemplate->addTemplateKey("style-id", $rows[$databaseVaiables['styles']['id']]); $stylesTemplate->addTemplateKey("style-name", $rows[$databaseVaiables['styles']['name']]); if($rows[$databaseVaiables['styles']['id']] == ACTIVE_STYLE){ $stylesTemplate->addTemplateKey("style-selected", "selected=\"yes\""); } $stylesTemplate->alterSource(); $styles .= $stylesTemplate->getFileSource(); } } $template->addTemplateKey("setup-active-style", $styles); $template->alterSource(); $page .= $template->getFileSource(); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>FileSource(); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-blog-comment-default-unableadmin/entry-delete/000075500407710040771000000000001075663035200136245ustar00jml600005120001530admin/entry-delete/index.php000064400407710040771000000056001075663035200154450ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 1, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page = $template->getFileSource(); if($login->getUserLevel() < 3){ $selectUser = $databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['user']."=".$login->getUserId()." &&"; } if($_GET['entry']){ if(!ereg('[^0-9]', $_GET['entry'])){ if($dbms->countFields(($query = "SELECT ".$databaseVaiables['entry']['title']." FROM ".$databaseVaiables['entry']['table']." WHERE ".$selectUser." ".$databaseVaiables['entry']['id']."='".mysql_real_escape_string($_GET['entry'])."';")) == 1){ if($_POST['delete-submit']){ if($dbms->editDatabase("DELETE FROM `".$databaseVaiables['entry']['table']."` WHERE ".$selectUser." ".$databaseVaiables['entry']['id']."='".mysql_real_escape_string($_GET['entry'])."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-deleted-entry.tmpl"); $page .= $template->getFileSource(); }else{ pageError("delete-user-fail"); } }else{ if($_POST['delete-cancel']){ header("location:".THIS_FOLDER."/admin/entry-list"); } $row = mysql_fetch_row($dbms->queryDatabase($query)); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-delete-entry.tmpl"); $template->addTemplateKey("delete-entry-display", $row[0]); $template->alterSource(); $page .= $template->getFileSource(); } }else{ pageError("no-entry-found"); } }else{ pageError("no-entry-found"); } }else{ pageError("no-entry-found"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/entry-edit/000075500407710040771000000000001075663035200133075ustar00jml600005120001530admin/entry-edit/index.php000064400407710040771000000212651075663035200151350ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 1, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page .= $template->getFileSource(); $bbCode = new BBCode(stripslashes($_POST['add-entry-title'])); $entryTitle = $bbCode->getStrippedCode(); $bbCode = new BBCode(stripslashes($_POST['add-entry-body'])); $entryBody = $bbCode->getStrippedCode(); if($login->getUserLevel() < 3){ $selectUser = $databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['user']."=".$login->getUserId()." &&"; } if($_GET['entry']){ if(!ereg('[^0-9]', $_GET['entry'])){ if($dbms->countFields("SELECT * FROM ".$databaseVaiables['entry']['table']." WHERE ".$selectUser." ".$databaseVaiables['entry']['id']."='".mysql_real_escape_string($_GET['entry'])."';") == 1){ if(($_POST['add-entry-title']) && (strlen($entryTitle) > 0) && ($_POST['add-entry-body']) && (strlen($entryBody) > 0) && ($_POST['add-entry-topic']) && (!ereg('[^0-9]', $_POST['add-entry-topic'])) && ($dbms->countFields("SELECT * FROM ".$databaseVaiables['topic']['table']." WHERE ".$databaseVaiables['topic']['id']."='".mysql_real_escape_string($_POST['add-entry-topic'])."';") == 1) && (ereg('^(0|1)$', $_POST['add-entry-comments']))){ if($dbms->editDatabase("UPDATE `".$databaseVaiables['entry']['table']."` SET ".$databaseVaiables['entry']['title']."='".$entryTitle."', ".$databaseVaiables['entry']['content']."='".$entryBody."', ".$databaseVaiables['entry']['topic']."='".mysql_real_escape_string($_POST['add-entry-topic'])."', ".$databaseVaiables['entry']['comments']."='".mysql_real_escape_string($_POST['add-entry-comments'])."' WHERE ".$selectUser." ".$databaseVaiables['entry']['id']."='".mysql_real_escape_string($_GET['entry'])."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edited-entry.tmpl"); $page .= $template->getFileSource(); }else{ pageError("edit-entry-fail"); } }else{ if($_POST['add-submit']){ if((!$_POST['add-entry-title']) || (strlen($entryTitle) == 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-title-none.tmpl"); $titleError .= $template->getFileSource(); } if((!$_POST['add-entry-body']) || (strlen($entryBody) == 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-body-none.tmpl"); $bodyError .= $template->getFileSource(); } if((!$_POST['add-entry-topic']) || (ereg('[^0-9]', $_POST['add-entry-topic'])) || ($dbms->countFields("SELECT * FROM ".$databaseVaiables['topic']['table']." WHERE ".$databaseVaiables['topic']['id']."='".mysql_real_escape_string($_POST['add-entry-topic'])."';") == 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-topic-invalid.tmpl"); $topicError .= $template->getFileSource(); } if(!ereg('^(0|1)$', $_POST['add-entry-comments'])){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-comments-invalid.tmpl"); $commentsError .= $template->getFileSource(); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edit-entry.tmpl"); $template->addTemplateKey("add-entry-title", htmlspecialchars(stripslashes($_POST['add-entry-title']))); $template->addTemplateKey("entry-title-error", $titleError); $template->addTemplateKey("add-entry-body", htmlspecialchars(stripslashes($_POST['add-entry-body']))); $template->addTemplateKey("entry-body-error", $bodyError); $template->addTemplateKey("add-entry-comments-".htmlspecialchars(stripslashes($_POST['add-entry-comments'])), "selected=\"yes\""); $template->addTemplateKey("entry-comments-error", $commentsError); if($dbms->queryDatabase("SELECT ".$databaseVaiables['topic']['id'].", ".$databaseVaiables['topic']['title']." FROM ".$databaseVaiables['topic']['table'].";")){ while($rows = $dbms->getDataArray()){ $stylesTemplate = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/topic-option.tmpl"); $stylesTemplate->addTemplateKey("topic-id", $rows[$databaseVaiables['topic']['id']]); $stylesTemplate->addTemplateKey("topic-name", $rows[$databaseVaiables['topic']['title']]); if($rows[$databaseVaiables['topic']['id']] == htmlspecialchars(stripslashes($_POST['add-entry-topic']))){ $stylesTemplate->addTemplateKey("topic-selected", "selected=\"yes\""); } $stylesTemplate->alterSource(); $topics .= $stylesTemplate->getFileSource(); } } $template->addTemplateKey("entry-topic-options", $topics); $template->addTemplateKey("entry-topic-error", $topicError); $template->addTemplateKey("entry-id", $_GET['entry']); $template->alterSource(); $page .= $template->getFileSource(); }else{ if(($query = $dbms->queryDatabase("SELECT ".$databaseVaiables['entry']['title'].", ".$databaseVaiables['entry']['content'].", ".$databaseVaiables['entry']['topic'].", ".$databaseVaiables['entry']['comments']." FROM ".$databaseVaiables['entry']['table']." WHERE ".$selectUser." ".$databaseVaiables['entry']['id']."='".mysql_real_escape_string($_GET['entry'])."';"))){ $row = mysql_fetch_row($query); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edit-entry.tmpl"); $template->addTemplateKey("add-entry-title", $row[0]); $template->addTemplateKey("entry-title-error", $titleError); $template->addTemplateKey("entry-body-error", $bodyError); $template->addTemplateKey("add-entry-body", $row[1]); $template->addTemplateKey("entry-comments-error", $commentsError); $template->addTemplateKey("add-entry-comments-".$row[3], "selected=\"yes\""); $template->addTemplateKey("entry-topic-error", $topicError); if($dbms->queryDatabase("SELECT ".$databaseVaiables['topic']['id'].", ".$databaseVaiables['topic']['title']." FROM ".$databaseVaiables['topic']['table'].";")){ while($rows = $dbms->getDataArray()){ $stylesTemplate = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/topic-option.tmpl"); $stylesTemplate->addTemplateKey("topic-id", $rows[$databaseVaiables['topic']['id']]); $stylesTemplate->addTemplateKey("topic-name", $rows[$databaseVaiables['topic']['title']]); if($rows[$databaseVaiables['topic']['id']] == $row[2]){ $stylesTemplate->addTemplateKey("topic-selected", "selected=\"yes\""); } $stylesTemplate->alterSource(); $topics .= $stylesTemplate->getFileSource(); } } $template->addTemplateKey("entry-topic-options", $topics); $template->addTemplateKey("entry-id", $_GET['entry']); $template->alterSource(); $page .= $template->getFileSource(); }else{ pageError("no-entry-found"); } } } }else{ pageError("no-entry-found"); } }else{ pageError("no-entry-found"); } }else{ pageError("no-entry-found"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/entry-list/000075500407710040771000000000001075663035300133365ustar00jml600005120001530admin/entry-list/index.php000064400407710040771000000123011075663035300151530ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 1, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $entries .= $template->getFileSource(); $pageItems = PAGEITEMS; $pageStart = 0; $maxPageItems = $dbms->countFields("SELECT * FROM ".$databaseVaiables['entry']['table'].";"); if($_GET['page']){ if(!ereg('[^0-9]', $_GET['page'])){ if((($_GET['page']-1) > 0) && ($_GET['page'] < (($maxPageItems+$pageItems)/$pageItems))){ $pageStart = (($_GET['page']-1)*$pageItems); if(($_GET['page']*$pageItems) > $maxPageItems){ $pageItems = ($pageItems-(($_GET['page']*$pageItems)-$maxPageItems)); } } } } if($login->getUserLevel() < 3){ $selectUser = " ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['user']."=".$login->getUserId()." && "; } if($dbms->countFields(($query = "SELECT ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['id'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['title'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['posted'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['user'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['topic'].", ".$databaseVaiables['topic']['table'].".".$databaseVaiables['topic']['id'].", ".$databaseVaiables['topic']['table'].".".$databaseVaiables['topic']['title'].", ".$databaseVaiables['users']['table'].".".$databaseVaiables['users']['id'].", ".$databaseVaiables['users']['table'].".".$databaseVaiables['users']['displayname']." FROM ".$databaseVaiables['entry']['table'].", ".$databaseVaiables['topic']['table'].", ".$databaseVaiables['users']['table']." WHERE ".$selectUser." ".$databaseVaiables['topic']['table'].".".$databaseVaiables['topic']['id']."=".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['topic']." && ".$databaseVaiables['users']['table'].".".$databaseVaiables['users']['id']."=".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['user']." ORDER BY ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['id']." DESC LIMIT ".$pageStart.", ".$pageItems.";")) > 0){ $dbms->queryDatabase($query); while($rows = $dbms->getDataArray()){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-entry-list.tmpl"); $template->addTemplateKey("entry-id", $rows[$databaseVaiables['entry']['id']]); $template->addTemplateKey("entry-title", $rows[$databaseVaiables['entry']['title']]); $template->addTemplateKey("entry-user", $rows[$databaseVaiables['users']['displayname']]); $template->addTemplateKey("entry-topic", $rows[$databaseVaiables['topic']['title']]); $template->addTemplateKey("entry-posted", $rows[$databaseVaiables['entry']['posted']]); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->alterSource(); $entries .= $template->getFileSource(); } $pageCount = 0; while($maxPageItems > 0){ $pageCount++; if((((!$_GET['page']) || (($_GET['page']-1) <= 0) || ($_GET['page'] >= (($maxPageItems+PAGEITEMS)/PAGEITEMS))) && ($pageCount == 1)) || ($_GET['page'] == $pageCount)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plaintext.tmpl"); $template->addTemplateKey("plaintext", $pageCount); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plainlink.tmpl"); $template->addTemplateKey("linklocation", "?page=".$pageCount); $template->addTemplateKey("linktext", $pageCount); } $template->alterSource(); $pageSplit .= $template->getFileSource(); $maxPageItems -= PAGEITEMS; } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-user-split.tmpl"); $template->addTemplateKey("splitpages", $pageSplit); $template->alterSource(); $entries .= $template->getFileSource(); }else{ pageError("no-users-found"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $entries); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/install-style/000075500407710040771000000000001075663035400140315ustar00jml600005120001530admin/install-style/index.php000064400407710040771000000072641075663035400156620ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 3, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page .= $template->getFileSource(); $style = htmlspecialchars(stripslashes($_GET['style'])); if($_GET['style']){ if(!eregi("[^A-Za-z0-9_-]+", $style)){ if($dbms->countFields(($query = "SELECT ".$databaseVaiables['styles']['table'].".* FROM ".$databaseVaiables['styles']['table']." WHERE ".$databaseVaiables['styles']['name']."='".mysql_real_escape_string($style)."';")) == 0){ if(is_dir(THIS_FOLDER."/templates/".$style) && is_dir(THIS_FOLDER."/templates/".$style."/html") && is_dir(THIS_FOLDER."/templates/".$style."/html/error") && is_dir(THIS_FOLDER."/templates/".$style."/html/admin") && is_dir(THIS_FOLDER."/templates/".$style."/html/admin/error") && is_dir(THIS_FOLDER."/templates/".$style."/html/admin/change") && is_dir(THIS_FOLDER."/templates/".$style."/html/admin/options") && is_dir(THIS_FOLDER."/templates/".$style."/css") && is_dir(THIS_FOLDER."/templates/".$style."/images") && is_dir(THIS_FOLDER."/templates/".$style."/scripts") && is_dir(THIS_FOLDER."/templates/".$style."/style-info")){ $thisFile = new FileHandler(THIS_FOLDER."/templates/".$style."/style-info/version"); $version = $thisFile->getFileSource(); if($version == VERSION){ $thisFile = new FileHandler(THIS_FOLDER."/templates/".$style."/style-info/name"); $name = $thisFile->getFileSource(); $thisFile = new FileHandler(THIS_FOLDER."/templates/".$style."/style-info/description"); $description = $thisFile->getFileSource(); if($dbms->editDatabase("INSERT INTO `".$databaseVaiables['styles']['table']."` (".$databaseVaiables['styles']['name'].", ".$databaseVaiables['styles']['description'].", ".$databaseVaiables['styles']['version'].", ".$databaseVaiables['styles']['created'].") VALUES ('".mysql_real_escape_string($name)."', '".mysql_real_escape_string($description)."', '".mysql_real_escape_string($version)."', '".date("Y-m-d H:i:s")."');")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-added-style.tmpl"); $page .= $template->getFileSource(); }else{ pageError("could-not-add-style"); } }else{ pageError("invalid-version"); } }else{ pageError("invalid-file-structure"); } }else{ pageError("style-already-added"); } }else{ pageError("directory-invalid"); } }else{ pageError("directory-invalid"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>nse.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 3, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAXadmin/logout/000075500407710040771000000000001075663035400125365ustar00jml600005120001530admin/logout/index.php000064400407710040771000000010351075663035400143550ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if($login->isLoggedIn()){ $login->logOut(); header("location:../"); }else{ pageError("not-logged-in"); } ?>admin/style-delete/000075500407710040771000000000001075663035400136255ustar00jml600005120001530admin/style-delete/index.php000064400407710040771000000055471075663035400154600ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 3, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page = $template->getFileSource(); if($_GET['style']){ if(!ereg('[^0-9]', $_GET['style'])){ if(($itemCount = $dbms->countFields(($query = "SELECT ".$databaseVaiables['styles']['name']." FROM ".$databaseVaiables['styles']['table']." WHERE ".$databaseVaiables['styles']['id']."='".mysql_real_escape_string($_GET['style'])."';"))) == 1){ if($itemCount == 1 || $_GET['style'] == ACTIVE_STYLE){ if($_POST['delete-submit']){ if($dbms->editDatabase("DELETE FROM `".$databaseVaiables['styles']['table']."` WHERE ".$databaseVaiables['styles']['id']."='".mysql_real_escape_string($_GET['style'])."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-deleted-style.tmpl"); $page .= $template->getFileSource(); }else{ pageError("delete-style-fail"); } }else{ if($_POST['delete-cancel']){ header("location:".THIS_FOLDER."/admin/style-list"); } $row = mysql_fetch_row($dbms->queryDatabase($query)); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-delete-style.tmpl"); $template->addTemplateKey("delete-style-display", $row[0]); $template->alterSource(); $page .= $template->getFileSource(); } }else{ pageError("cannot-delete-style"); } }else{ pageError("no-style-found"); } }else{ pageError("no-style-found"); } }else{ pageError("no-style-found"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/style-list/000075500407710040771000000000001075663035500133375ustar00jml600005120001530admin/style-list/index.php000064400407710040771000000077141075663035500151700ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 3, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page .= $template->getFileSource(); // List Style $pageItems = PAGEITEMS; $pageStart = 0; $maxPageItems = $dbms->countFields("SELECT * FROM ".$databaseVaiables['styles']['table'].";"); if($_GET['page']){ if(!ereg('[^0-9]', $_GET['page'])){ if((($_GET['page']-1) > 0) && ($_GET['page'] < (($maxPageItems+$pageItems)/$pageItems))){ $pageStart = (($_GET['page']-1)*$pageItems); if(($_GET['page']*$pageItems) > $maxPageItems){ $pageItems = ($pageItems-(($_GET['page']*$pageItems)-$maxPageItems)); } } } } if($dbms->countFields(($query = "SELECT ".$databaseVaiables['styles']['table'].".* FROM ".$databaseVaiables['styles']['table']." ORDER BY ".$databaseVaiables['styles']['id']." DESC LIMIT ".$pageStart.", ".$pageItems.";")) > 0){ $dbms->queryDatabase($query); while($rows = $dbms->getDataArray()){ if($maxPageItems == 1 || $rows[$databaseVaiables['styles']['id']] == ACTIVE_STYLE){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-style-list-not-delete.tmpl"); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-style-list.tmpl"); } $template->addTemplateKey("style-id", $rows[$databaseVaiables['styles']['id']]); $template->addTemplateKey("style-title", $rows[$databaseVaiables['styles']['name']]); $template->addTemplateKey("style-description", $rows[$databaseVaiables['styles']['description']]); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->alterSource(); $page .= $template->getFileSource(); } $pageCount = 0; while($maxPageItems > 0){ $pageCount++; if((((!$_GET['page']) || (($_GET['page']-1) <= 0) || ($_GET['page'] >= (($maxPageItems+PAGEITEMS)/PAGEITEMS))) && ($pageCount == 1)) || ($_GET['page'] == $pageCount)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plaintext.tmpl"); $template->addTemplateKey("plaintext", $pageCount); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plainlink.tmpl"); $template->addTemplateKey("linklocation", "?page=".$pageCount); $template->addTemplateKey("linktext", $pageCount); } $template->alterSource(); $pageSplit .= $template->getFileSource(); $maxPageItems -= PAGEITEMS; } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-user-split.tmpl"); $template->addTemplateKey("splitpages", $pageSplit); $template->alterSource(); $page .= $template->getFileSource(); } // List Style $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>untFields(($query = "SELECT ".$databaseVaiables['styadmin/topic-delete/000075500407710040771000000000001075663035500136045ustar00jml600005120001530admin/topic-delete/index.php000064400407710040771000000067671075663035500154440ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 2, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page = $template->getFileSource(); if($_GET['topic']){ if(!ereg('[^0-9]', $_GET['topic'])){ if($dbms->countFields(($query = "SELECT ".$databaseVaiables['topic']['title']." FROM ".$databaseVaiables['topic']['table']." WHERE ".$databaseVaiables['topic']['id']."='".mysql_real_escape_string($_GET['topic'])."';")) == 1){ if($dbms->countFields(($querySelect = "SELECT ".$databaseVaiables['topic']['id'].", ".$databaseVaiables['topic']['title']." FROM ".$databaseVaiables['topic']['table']." WHERE ".$databaseVaiables['topic']['id']."!='".mysql_real_escape_string($_GET['topic'])."' ORDER BY ".$databaseVaiables['topic']['id']." ASC;")) >= 1){ $rowSelect = mysql_fetch_row($dbms->queryDatabase($querySelect)); if($_POST['delete-submit']){ if($dbms->editDatabase("DELETE FROM `".$databaseVaiables['topic']['table']."` WHERE ".$databaseVaiables['topic']['id']."='".mysql_real_escape_string($_GET['topic'])."';")){ $dbms->editDatabase("UPDATE `".$databaseVaiables['entry']['table']."` SET ".$databaseVaiables['entry']['topic']."='".$rowSelect[0]."' WHERE ".$databaseVaiables['entry']['topic']."='".mysql_real_escape_string($_GET['topic'])."';"); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-deleted-topic.tmpl"); $page .= $template->getFileSource(); }else{ pageError("delete-topic-fail"); } }else{ if($_POST['delete-cancel']){ header("location:".THIS_FOLDER."/admin/topic-list"); } $row = mysql_fetch_row($dbms->queryDatabase($query)); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-delete-topic.tmpl"); $template->addTemplateKey("delete-topic-title", $row[0]); $template->addTemplateKey("delete-topic-replace", $rowSelect[1]); $template->alterSource(); $page .= $template->getFileSource(); } }else{ pageError("atleast-one-topic"); } }else{ pageError("no-topic-found"); } }else{ pageError("no-topic-found"); } }else{ pageError("no-topic-found"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/topic-edit/000075500407710040771000000000001075663035600132705ustar00jml600005120001530admin/topic-edit/index.php000064400407710040771000000113541075663035600151140ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 2, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page .= $template->getFileSource(); $bbCode = new BBCode(stripslashes($_POST['edit-topic-title'])); $topicTitle = $bbCode->getStrippedCode(); $bbCode = new BBCode(stripslashes($_POST['edit-topic-description'])); $topicDescription = $bbCode->getStrippedCode(); if($_GET['topic']){ if(!ereg('[^0-9]', $_GET['topic'])){ if($dbms->countFields("SELECT * FROM ".$databaseVaiables['topic']['table']." WHERE ".$databaseVaiables['topic']['id']."='".mysql_real_escape_string($_GET['topic'])."';") == 1){ if(($_POST['edit-topic-title']) && (strlen($topicTitle) > 0) && ($_POST['edit-topic-description']) && (strlen($topicDescription) > 0)){ if($dbms->editDatabase("UPDATE `".$databaseVaiables['topic']['table']."` SET ".$databaseVaiables['topic']['title']."='".$topicTitle."', ".$databaseVaiables['topic']['description']."='".$topicDescription."' WHERE ".$databaseVaiables['topic']['id']."='".mysql_real_escape_string($_GET['topic'])."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edited-topic.tmpl"); $page .= $template->getFileSource(); }else{ pageError("edit-topic-fail"); } }else{ if($_POST['edit-submit']){ if((!$_POST['edit-topic-title']) || (strlen($topicTitle) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-title-none.tmpl"); $topicTitleError .= $template->getFileSource(); } if((!$_POST['edit-topic-description']) || (strlen($topicDescription) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-description-none.tmpl"); $topicTitleDescription .= $template->getFileSource(); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edit-topic.tmpl"); $template->addTemplateKey("edit-topic-title", htmlspecialchars(stripslashes($_POST['edit-topic-title']))); $template->addTemplateKey("topic-title-error", $topicTitleError); $template->addTemplateKey("edit-topic-description", htmlspecialchars(stripslashes($_POST['edit-topic-description']))); $template->addTemplateKey("topic-description-error", $topicTitleDescription); $template->addTemplateKey("edit-topic-id", $_GET['topic']); $template->alterSource(); $page .= $template->getFileSource(); }else{ if(($query = $dbms->queryDatabase("SELECT ".$databaseVaiables['topic']['title'].", ".$databaseVaiables['topic']['description']." FROM ".$databaseVaiables['topic']['table']." WHERE ".$databaseVaiables['topic']['id']."='".mysql_real_escape_string($_GET['topic'])."';"))){ $row = mysql_fetch_row($query); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edit-topic.tmpl"); $template->addTemplateKey("edit-topic-title", $row[0]); $template->addTemplateKey("edit-topic-description", $row[1]); $template->addTemplateKey("edit-topic-id", $_GET['topic']); $template->alterSource(); $page .= $template->getFileSource(); }else{ pageError("no-topic-found"); } } } }else{ pageError("no-topic-found"); } }else{ pageError("no-topic-found"); } }else{ pageError("no-topic-found"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>ription."' WHERE ".$databaseVaiables['topic']['id']."='".mysql_real_escape_string($_GET['topic'])."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edited-topic.tmpl"); $page .= $template->getFileSource(); admin/topic-list/000075500407710040771000000000001075663035600133165ustar00jml600005120001530admin/topic-list/index.php000064400407710040771000000074261075663035600151470ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 2, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page .= $template->getFileSource(); $pageItems = PAGEITEMS; $pageStart = 0; $maxPageItems = $dbms->countFields("SELECT * FROM ".$databaseVaiables['topic']['table'].";"); if($_GET['page']){ if(!ereg('[^0-9]', $_GET['page'])){ if((($_GET['page']-1) > 0) && ($_GET['page'] < (($maxPageItems+$pageItems)/$pageItems))){ $pageStart = (($_GET['page']-1)*$pageItems); if(($_GET['page']*$pageItems) > $maxPageItems){ $pageItems = ($pageItems-(($_GET['page']*$pageItems)-$maxPageItems)); } } } } if(($topicCount = $dbms->countFields(($query = "SELECT ".$databaseVaiables['topic']['id'].", ".$databaseVaiables['topic']['title']." FROM ".$databaseVaiables['topic']['table']." LIMIT ".$pageStart.", ".$pageItems.";"))) > 0){ $dbms->queryDatabase($query); while($rows = $dbms->getDataArray()){ if($topicCount == 1){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-topic-list-not-delete.tmpl"); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-topic-list.tmpl"); } $template->addTemplateKey("topic-title", $rows[$databaseVaiables['topic']['title']]); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("topic-id", $rows[$databaseVaiables['topic']['id']]); $template->alterSource(); $page .= $template->getFileSource(); } $pageCount = 0; while($maxPageItems > 0){ $pageCount++; if((((!$_GET['page']) || (($_GET['page']-1) <= 0) || ($_GET['page'] >= (($maxPageItems+PAGEITEMS)/PAGEITEMS))) && ($pageCount == 1)) || ($_GET['page'] == $pageCount)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plaintext.tmpl"); $template->addTemplateKey("plaintext", $pageCount); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plainlink.tmpl"); $template->addTemplateKey("linklocation", "?page=".$pageCount); $template->addTemplateKey("linktext", $pageCount); } $template->alterSource(); $pageSplit .= $template->getFileSource(); $maxPageItems -= PAGEITEMS; } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-user-split.tmpl"); $template->addTemplateKey("splitpages", $pageSplit); $template->alterSource(); $page .= $template->getFileSource(); }else{ pageError("no-users-found"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/unblock-ip/000075500407710040771000000000001075663035700132735ustar00jml600005120001530admin/unblock-ip/index.php000064400407710040771000000032451075663035700151170ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 1, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ if($_GET['comment']){ if(!ereg('[^0-9]', $_GET['comment'])){ if($dbms->countFields(($query = "SELECT ".$databaseVaiables['comments']['ip'].", ".$databaseVaiables['comments']['entry']." FROM ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['comments']['id']."='".mysql_real_escape_string($_GET['comment'])."';")) == 1){ $row = mysql_fetch_row($dbms->queryDatabase($query)); if($dbms->countFields(($query = "SELECT * FROM ".$databaseVaiables['blocked']['table']." WHERE ".$databaseVaiables['blocked']['ip']."='".$row[0]."';")) == 1){ if($dbms->editDatabase("DELETE FROM `".$databaseVaiables['blocked']['table']."` WHERE ".$databaseVaiables['blocked']['ip']."='".$row[0]."';")){ header("location:../comments-post-list/?entry=".$row[1]); } }else{ pageError("ip-not-blocked"); } }else{ pageError("no-comments-found"); } }else{ pageError("no-comments-found"); } }else{ pageError("no-comments-found"); } }else{ pageError("not-logged-invalid-level"); } ?>admin/user-delete/000075500407710040771000000000001075663036000134405ustar00jml600005120001530admin/user-delete/index.php000064400407710040771000000065671075663036000152760ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 3, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page = $template->getFileSource(); if($_GET['user']){ if($_GET['user'] != $login->getUserId()){ if(!ereg('[^0-9]', $_GET['user'])){ if($dbms->countFields(($query = "SELECT ".$databaseVaiables['users']['displayname']." FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['id']."='".$_GET['user']."';")) == 1){ if($_POST['delete-submit']){ if($dbms->editDatabase("DELETE ".$databaseVaiables['users']['table'].".*, ".$databaseVaiables['entry']['table'].".*, ".$databaseVaiables['comments']['table'].".* FROM ".$databaseVaiables['users']['table'].", ".$databaseVaiables['entry']['table'].", ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['users']['table'].".".$databaseVaiables['users']['id']."='".mysql_real_escape_string($_GET['user'])."' && ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['user']."='".mysql_real_escape_string($_GET['user'])."' && ".$databaseVaiables['comments']['table'].".".$databaseVaiables['comments']['entry']."=".$databaseVaiables['entry']['id'].";")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-deleted-user.tmpl"); $page .= $template->getFileSource(); }else{ echo mysql_error(); pageError("delete-user-fail"); } }else{ if($_POST['delete-cancel']){ header("location:".THIS_FOLDER."/admin/user-list"); } $row = mysql_fetch_row($dbms->queryDatabase($query)); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-delete-user.tmpl"); $template->addTemplateKey("delete-user-display", $row[0]); $template->alterSource(); $page .= $template->getFileSource(); } }else{ pageError("no-users-found"); } }else{ pageError("no-users-found"); } }else{ pageError("cannot-delete-self"); } }else{ pageError("no-users-found"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/user-edit/000075500407710040771000000000001075663036000131235ustar00jml600005120001530admin/user-edit/index.php000064400407710040771000000203411075663036000147430ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 3, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $page .= $template->getFileSource(); $bbCode = new BBCode(stripslashes($_POST['edit-display-name'])); $displayName = $bbCode->getStrippedCode(); if($_GET['user']){ if(!ereg('[^0-9]', $_GET['user'])){ if($dbms->countFields("SELECT * FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['id']."='".mysql_real_escape_string($_GET['user'])."';") == 1){ if((($_POST['edit-display-name']) && (strlen($displayName) <= 100) && (strlen($displayName) > 0) && (($dbms->countFields("SELECT * FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['displayname']."='".mysql_real_escape_string($displayName)."';") == 0) || ($dbms->countFields("SELECT * FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['displayname']."='".mysql_real_escape_string($displayName)."' && ".$databaseVaiables['users']['id']."='".mysql_real_escape_string($_GET['user'])."';") == 1))) && (($_POST['edit-user-level']) && (strlen($_POST['edit-user-level']) <= 3) && (strlen($_POST['edit-user-level']) >= 1) && (!eregi("[^1-3]+", $_POST['edit-user-level'])) && (!eregi("[^0-1]+", $_POST['edit-user-active'])))){ $row = mysql_fetch_row($dbms->queryDatabase("SELECT ".$databaseVaiables['users']['access'].", ".$databaseVaiables['users']['active']." FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['id']."='".mysql_real_escape_string($_GET['user'])."';")); if($row[0] != 3){ $makeEdit = true; }else{ if($row[1] != 1){ $makeEdit = true; }else{ if(($dbms->countFields("SELECT * FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['active']."='1' && ".$databaseVaiables['users']['access']."='3';") > 1)){ $makeEdit = true; }else{ if(($_POST['edit-user-active'] == $row[1]) && ($_POST['edit-user-level'] == $row[0])){ $makeEdit = true; }else{ $makeEdit = false; } } } } if($makeEdit){ if($dbms->editDatabase("UPDATE `".$databaseVaiables['users']['table']."` SET ".$databaseVaiables['users']['displayname']."='".mysql_real_escape_string($displayName)."', ".$databaseVaiables['users']['access']."='".mysql_real_escape_string($_POST['edit-user-level'])."', ".$databaseVaiables['users']['active']."='".mysql_real_escape_string($_POST['edit-user-active'])."' WHERE ".$databaseVaiables['users']['id']."='".mysql_real_escape_string($_GET['user'])."';")){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edited-user.tmpl"); $page .= $template->getFileSource(); }else{ pageError("edit-user-fail"); } }else{ pageError("requires-active-master-admin"); } }else{ if($_POST['edit-submit']){ if((!$_POST['edit-display-name']) || (strlen($displayName) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-display-none.tmpl"); $displayNameError .= $template->getFileSource(); } if(($dbms->countFields("SELECT * FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['displayname']."='".mysql_real_escape_string($displayName)."';") != 0) && ($dbms->countFields("SELECT * FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['displayname']."='".mysql_real_escape_string($displayName)."' && ".$databaseVaiables['users']['id']."='".mysql_real_escape_string($_GET['user'])."';") == 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-display-exists.tmpl"); $displayNameError .= $template->getFileSource(); } if(strlen($displayName) > 100){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-display-too-long.tmpl"); $displayNameError .= $template->getFileSource(); } if(!$_POST['edit-user-level']){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-level-none.tmpl"); $userLevelError .= $template->getFileSource(); } if(($_POST['edit-user-level']) && ((strlen($_POST['edit-user-level']) < 1) || (strlen($_POST['edit-user-level']) > 3) || (eregi("[^1-3]+", $_POST['edit-user-level'])))){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-level-invalid.tmpl"); $userLevelError .= $template->getFileSource(); } if(eregi("[^0-1]+", $_POST['edit-user-active'])){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/edit-active-invalid.tmpl"); $userActiveError .= $template->getFileSource(); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edit-user.tmpl"); $template->addTemplateKey("edit-user-display", htmlspecialchars(stripslashes($displayName))); $template->addTemplateKey("user-display-error", $displayNameError); $template->addTemplateKey("level".htmlspecialchars(stripslashes($_POST['edit-user-level']))."selected", "selected=\"true\""); $template->addTemplateKey("user-level-error", $userLevelError); if($_POST['edit-user-active'] == 1){ $template->addTemplateKey("active-on-selected", "selected=\"true\""); }else{ $template->addTemplateKey("active-off-selected", "selected=\"true\""); } $template->addTemplateKey("user-active-error", $userActiveError); $template->addTemplateKey("edit-user-id", $_GET['user']); $template->alterSource(); $page .= $template->getFileSource(); }else{ if(($query = $dbms->queryDatabase("SELECT ".$databaseVaiables['users']['displayname'].", ".$databaseVaiables['users']['access'].", ".$databaseVaiables['users']['active']." FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['id']."='".mysql_real_escape_string($_GET['user'])."';"))){ $row = mysql_fetch_row($query); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-edit-user.tmpl"); $template->addTemplateKey("edit-user-display", $row[0]); $template->addTemplateKey("level".$row[1]."selected", "selected=\"true\""); if($row[2] == 1){ $template->addTemplateKey("active-on-selected", "selected=\"true\""); }else{ $template->addTemplateKey("active-off-selected", "selected=\"true\""); } $template->addTemplateKey("edit-user-id", $_GET['user']); $template->alterSource(); $page .= $template->getFileSource(); }else{ pageError("no-users-found"); } } } }else{ pageError("no-users-found"); } }else{ pageError("no-users-found"); } }else{ pageError("no-users-found"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $page); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>ay-name']) || (strlen($displayName) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/error/add-display-none.tmpl"); $displayNameError .= $template->getFileSource(); } if(($dbms->countFields("SELECT * FROM ".$databaseVaadmin/user-list/000075500407710040771000000000001075663036000131515ustar00jml600005120001530admin/user-list/index.php000064400407710040771000000074761075663036000150070ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "../..", true); define(ADMIN_LEVEL, 3, true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn() && $login->getUserLevel() >= ADMIN_LEVEL){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $entries .= $template->getFileSource(); $pageItems = PAGEITEMS; $pageStart = 0; $maxPageItems = $dbms->countFields("SELECT * FROM ".$databaseVaiables['users']['table'].";"); if($_GET['page']){ if(!ereg('[^0-9]', $_GET['page'])){ if((($_GET['page']-1) > 0) && ($_GET['page'] < (($maxPageItems+$pageItems)/$pageItems))){ $pageStart = (($_GET['page']-1)*$pageItems); if(($_GET['page']*$pageItems) > $maxPageItems){ $pageItems = ($pageItems-(($_GET['page']*$pageItems)-$maxPageItems)); } } } } if($dbms->countFields(($query = "SELECT ".$databaseVaiables['users']['id'].", ".$databaseVaiables['users']['displayname']." FROM ".$databaseVaiables['users']['table']." LIMIT ".$pageStart.", ".$pageItems.";")) > 0){ $dbms->queryDatabase($query); while($rows = $dbms->getDataArray()){ if($rows[$databaseVaiables['users']['id']] == $login->getUserId()){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-user-list-self.tmpl"); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-user-list.tmpl"); } $template->addTemplateKey("useradmin", $rows[$databaseVaiables['users']['displayname']]); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("userid", $rows[$databaseVaiables['users']['id']]); $template->alterSource(); $entries .= $template->getFileSource(); } $pageCount = 0; while($maxPageItems > 0){ $pageCount++; if((((!$_GET['page']) || (($_GET['page']-1) <= 0) || ($_GET['page'] >= (($maxPageItems+PAGEITEMS)/PAGEITEMS))) && ($pageCount == 1)) || ($_GET['page'] == $pageCount)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plaintext.tmpl"); $template->addTemplateKey("plaintext", $pageCount); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plainlink.tmpl"); $template->addTemplateKey("linklocation", "?page=".$pageCount); $template->addTemplateKey("linktext", $pageCount); } $template->alterSource(); $pageSplit .= $template->getFileSource(); $maxPageItems -= PAGEITEMS; } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-user-split.tmpl"); $template->addTemplateKey("splitpages", $pageSplit); $template->alterSource(); $entries .= $template->getFileSource(); }else{ pageError("no-users-found"); } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $entries); $template->alterSource(); setPage($template->getFileSource()); }else{ pageError("not-logged-invalid-level"); } ?>admin/index.php000064400407710040771000000057721075663035300130570ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "..", true); define(DISABLE_IGNORE, true, true); include_once(THIS_FOLDER."/include/setup.php"); $login = new Login(); if((MAX_LOGIN_ATTEMPTS > 0) && ($login->getAttempts() >= MAX_LOGIN_ATTEMPTS)){ pageError("login-attempts"); } if($login->isLoggedIn()){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-main.tmpl"); $template->addTemplateKey("adminrootdir", THIS_FOLDER."/admin"); $template->addTemplateKey("adminblogroot", THIS_FOLDER); $template->alterSource(); $entries .= $template->getFileSource(); switch($login->getUserLevel()){ case 3: $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-add-user.tmpl"); $entries .= $template->getFileSource(); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-user-list.tmpl"); $entries .= $template->getFileSource(); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-edit-setup.tmpl"); $entries .= $template->getFileSource(); case 2: $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-add-style.tmpl"); $entries .= $template->getFileSource(); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-style-list.tmpl"); $entries .= $template->getFileSource(); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-add-topic.tmpl"); $entries .= $template->getFileSource(); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-topic-list.tmpl"); $entries .= $template->getFileSource(); case 1: $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-add-entry.tmpl"); $entries .= $template->getFileSource(); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-entry-list.tmpl"); $entries .= $template->getFileSource(); $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/options/admin-comments-list.tmpl"); $entries .= $template->getFileSource(); break; } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-logged-in.tmpl"); $template->addTemplateKey("adminname", $login->getUserName()); $template->addTemplateKey("adminroot", THIS_FOLDER."/admin"); $template->addTemplateKey("adminoptions", $entries); $template->alterSource(); setPage($template->getFileSource()); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/admin/admin-login.tmpl"); $template->alterSource(); setPage($template->getFileSource()); } ?>article/000075500407710040771000000000001075663036100115565ustar00jml600005120001530article/index.php000064400407710040771000000141351075663036100134020ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "..", true); include_once(THIS_FOLDER."/include/setup.php"); setContent(); function setContent(){ global $dbms, $databaseVaiables, $template; if($_GET['article']){ if(!ereg('[^0-9]', $_GET['article'])){ if($dbms->countFields("SELECT * FROM ".$databaseVaiables['entry']['table']." WHERE ".$databaseVaiables['entry']['id']."='".mysql_real_escape_string($_GET['article'])."';") == 1){ $article = stripslashes($_GET['article']); }else{ pageError("input-not-exist"); } }else{ pageError("input-invalid"); } }else{ pageError("input-none"); } if(($query = $dbms->queryDatabase("SELECT ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['id'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['title'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['posted'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['user'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['content'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['topic'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['comments'].", ".$databaseVaiables['topic']['table'].".".$databaseVaiables['topic']['id'].", ".$databaseVaiables['topic']['table'].".".$databaseVaiables['topic']['title'].", ".$databaseVaiables['users']['table'].".".$databaseVaiables['users']['id'].", ".$databaseVaiables['users']['table'].".".$databaseVaiables['users']['displayname']." FROM ".$databaseVaiables['entry']['table'].", ".$databaseVaiables['topic']['table'].", ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['id']."='".mysql_real_escape_string($article)."' && ".$databaseVaiables['topic']['table'].".".$databaseVaiables['topic']['id']."=".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['topic']." && ".$databaseVaiables['users']['table'].".".$databaseVaiables['users']['id']."=".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['user']." ;"))){ $row = mysql_fetch_row($query); if($row[6] == 1){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/entry-article.tmpl"); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/entry-article-no-comments.tmpl"); } $template->addTemplateKey("entrytitle", $row[1]); $template->addTemplateKey("entrytopic", $row[8]); $template->addTemplateKey("entryid", $article); $template->addTemplateKey("entryposted", $row[2]); $bbCode = new BBCode($row[4]); $template->addTemplateKey("entrycontent", $bbCode->applyBBCode()); $template->addTemplateKey("entryuser", $row[10]); $template->alterSource(); $entries = $template->getFileSource(); $pageItems = PAGEITEMS; $pageStart = 0; $maxPageItems = $dbms->countFields("SELECT * FROM ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['comments']['entry']."='".$article."';"); if($_GET['page']){ if(!ereg('[^0-9]', $_GET['page'])){ if((($_GET['page']-1) > 0) && ($_GET['page'] < (($maxPageItems+$pageItems)/$pageItems))){ $pageStart = (($_GET['page']-1)*$pageItems); if(($_GET['page']*$pageItems) > $maxPageItems){ $pageItems = ($pageItems-(($_GET['page']*$pageItems)-$maxPageItems)); } } } } if($dbms->countFields(($query = "SELECT ".$databaseVaiables['comments']['id'].", ".$databaseVaiables['comments']['posted'].", ".$databaseVaiables['comments']['name'].", ".$databaseVaiables['comments']['comment']." FROM ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['comments']['entry']."='".$article."' ORDER BY ".$databaseVaiables['comments']['id']." ASC LIMIT ".$pageStart.", ".$pageItems.";")) > 0){ $dbms->queryDatabase($query); while($rows = $dbms->getDataArray()){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/comment-article.tmpl"); $template->addTemplateKey("commentid", $rows[$databaseVaiables['comments']['id']]); if(!$rows[$databaseVaiables['comments']['name']]){ $template->addTemplateKey("commentuser", DEFAULT_COMMENT); }else{ $template->addTemplateKey("commentuser", $rows[$databaseVaiables['comments']['name']]); } $template->addTemplateKey("commentposted", $rows[$databaseVaiables['comments']['posted']]); $bbCode = new BBCode($rows[$databaseVaiables['comments']['comment']]); $template->addTemplateKey("commentcontent", $bbCode->applyBBCode()); $template->alterSource(); $entries .= $template->getFileSource(); } $pageCount = 0; while($maxPageItems > 0){ $pageCount++; if((((!$_GET['page']) || (($_GET['page']-1) <= 0) || ($_GET['page'] >= (($maxPageItems+PAGEITEMS)/PAGEITEMS))) && ($pageCount == 1)) || ($_GET['page'] == $pageCount)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plaintext.tmpl"); $template->addTemplateKey("plaintext", $pageCount); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plainlink.tmpl"); $template->addTemplateKey("linklocation", "?article=".$article."&page=".$pageCount."#comments"); $template->addTemplateKey("linktext", $pageCount); } $template->alterSource(); $pageSplit .= $template->getFileSource(); $maxPageItems -= PAGEITEMS; } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/page-split.tmpl"); $template->addTemplateKey("splitpages", $pageSplit); $template->alterSource(); $entries .= $template->getFileSource(); } } setPage($entries); } ?>include/000075500407710040771000000000001075663036200115575ustar00jml600005120001530include/config.php000064400407710040771000000021231075663124700135360ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ /* - SET YOUR DATABASE CONFIGURATION - */ /* Set the HOST to your database server address e.g. localhost or 127.0.0.1 (if database server is the same server as the http server) database.myhost.com:3306 or 84.84.84.84 (if database server is not on the same server as the http server) */ define(HOST, "", true); /* Set the USER to your database server username */ define(USER, "", true); /* Set the PASS to your database server password */ define(PASS, "", true); /* Set the DATA to your database server database name */ define(DATA, "", true); /* Set the database table prefix for the database which defines table names */ define(PREFIX, "", true); /* Set the database management type (default is mysql5 as this is what the script was developed in) */ define(DBMS, "", true); ?>include/functions.php000064400407710040771000000062661075663124700143150ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ function pageError($error){ global $template; $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/error.tmpl"); $subTemplate = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/error/".$error.".tmpl"); $template->addTemplateKey("errorbody", $subTemplate->getFileSource()); $template->alterSource(); setPage($template->getFileSource()); exit(); } function setPage($content){ global $template; $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/main.tmpl"); $template->addTemplateKey("pagetitle", TITLE); $template->addTemplateKey("pagedescription", DESCRIPTION); $template->addTemplateKey("directory", THIS_FOLDER."/templates/".TEMPLATE); $template->addTemplateKey("directoryRoot", THIS_FOLDER); $template->addTemplateKey("contents", $content); $template->addTemplateKey("pageversion", VERSION); $template->alterSource(); $template->printTemplate(); } function getDatabaseIdentifierArray($prefix){ return array( "entry" => array( "table" => $prefix."entry", "id" => "entry_id", "title" => "entry_title", "posted" => "entry_posted", "user" => "entry_user", "content" => "entry_content", "topic" => "entry_topic", "comments" => "entry_comments"), "topic" => array( "table" => $prefix."topic", "id" => "topic_id", "title" => "topic_title", "description" => "topic_description"), "comments" => array( "table" => $prefix."comments", "id" => "comments_id", "entry" => "comments_entry", "posted" => "comments_posted", "ip" => "comments_ip", "dns" => "comments_dns", "name" => "comments_name", "email" => "comments_email", "comment" => "comments_comment"), "users" => array( "table" => $prefix."users", "id" => "users_id", "username" => "users_username", "password" => "users_password", "displayname" => "users_display_name", "access" => "users_access", "active" => "users_active"), "styles" => array( "table" => $prefix."styles", "id" => "styles_id", "name" => "styles_name", "description" => "styles_description", "created" => "styles_created", "version" => "styles_version"), "setup" => array( "table" => $prefix."setup", "active" => "setup_active", "style" => "setup_style", "attempts" => "setup_attempts", "version" => "setup_version", "name" => "setup_name", "description" => "setup_description", "pageitems" => "setup_page_items", "comment_delay" => "setup_comment_delay", "comment_length" => "setup_comment_length", "comment_default" => "setup_comment_default"), "blocked" => array( "table" => $prefix."blocked", "id" => "blocked_id", "ip" => "blocked_ip") ); } ?>include/setup.php000064400407710040771000000114151075663125000134270ustar00jml600005120001530 * @version Alpha - 1.01 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ if(!defined("THIS_FOLDER")){ /* Check to see if the current folder location has been set, if not set it to the root folder */ define(THIS_FOLDER, ".", true); } require_once(THIS_FOLDER."/include/config.php"); if(DBMS !== "" && is_dir(THIS_FOLDER."/objects/database/".DBMS."/")){ /* Include once the allocated dbms object to allow interaction with the database */ require_once(THIS_FOLDER."/objects/database/".DBMS."/dbms.obj.php"); } /* Include once the filehandler object to allow the template object to handle files */ include_once(THIS_FOLDER."/objects/filehandler.obj.php"); /* Include once the bbcode object to allow additional text features */ include_once(THIS_FOLDER."/objects/bbcode.obj.php"); /* Include once the template object to allow easy template management */ include_once(THIS_FOLDER."/objects/template.obj.php"); /* Include once the template object to allow easy template management */ include_once(THIS_FOLDER."/objects/timedate.obj.php"); /* Include once the template object to allow easy template management */ include_once(THIS_FOLDER."/objects/login.obj.php"); /* Include once the template object to allow easy template management */ include_once(THIS_FOLDER."/include/functions.php"); $databaseVaiables = getDatabaseIdentifierArray(PREFIX); if(DBMS !== "" && is_dir(THIS_FOLDER."/objects/database/".DBMS."/")){ /* Create a global variable containing the connection to the database */ $dbms = new DatabaseConnection(HOST, USER, PASS, DATA); /* Test the database connection, if cannot connect to database set the template to the default */ if($dbms->isConnected()){ if(($query = $dbms->queryDatabase("SELECT ".$databaseVaiables['setup']['table'].".".$databaseVaiables['setup']['active'].", ".$databaseVaiables['setup']['table'].".".$databaseVaiables['setup']['style'].", ".$databaseVaiables['setup']['table'].".".$databaseVaiables['setup']['name'].", ".$databaseVaiables['setup']['table'].".".$databaseVaiables['setup']['description'].", ".$databaseVaiables['setup']['table'].".".$databaseVaiables['setup']['version'].", ".$databaseVaiables['setup']['table'].".".$databaseVaiables['setup']['pageitems'].", ".$databaseVaiables['setup']['table'].".".$databaseVaiables['setup']['comment_delay'].", ".$databaseVaiables['setup']['table'].".".$databaseVaiables['setup']['comment_length'].", ".$databaseVaiables['setup']['table'].".".$databaseVaiables['setup']['comment_default'].", ".$databaseVaiables['setup']['table'].".".$databaseVaiables['setup']['attempts'].", ".$databaseVaiables['styles']['table'].".".$databaseVaiables['styles']['id'].", ".$databaseVaiables['styles']['table'].".".$databaseVaiables['styles']['name'].", ".$databaseVaiables['styles']['table'].".".$databaseVaiables['styles']['version']." FROM ".$databaseVaiables['setup']['table'].", ".$databaseVaiables['styles']['table']." WHERE ".$databaseVaiables['styles']['table'].".".$databaseVaiables['styles']['id']."=".$databaseVaiables['setup']['table'].".".$databaseVaiables['setup']['style']." && ".$databaseVaiables['styles']['table'].".".$databaseVaiables['styles']['version']."=".$databaseVaiables['setup']['table'].".".$databaseVaiables['setup']['version'].";"))){ $row = mysql_fetch_row($query); define(BLOG_ACTIVE, $row[0], true); define(TEMPLATE, $row[11], true); define(ACTIVE_STYLE, $row[1], true); define(TITLE, $row[2], true); define(DESCRIPTION, $row[3], true); define(VERSION, $row[4], true); define(PAGEITEMS, $row[5], true); define(COMMENT_LENGTH, $row[7], true); define(DEFAULT_COMMENT, $row[8], true); define(COMMENT_DELAY, $row[6], true); define(MAX_LOGIN_ATTEMPTS, $row[9], true); define(CONNECTED, true, true); if(BLOG_ACTIVE == 0 && DISABLE_IGNORE == 0){ pageError("blog-disabled"); } }else{ define(CONNECTED, false, true); define(TEMPLATE, "default", true); define(VERSION, "1.01", true); define(TITLE, "M00se Bl0g", true); define(DESCRIPTION, "Open Source Blog", true); pageError("database-query"); } }else{ define(CONNECTED, false, true); define(TEMPLATE, "default", true); define(VERSION, "1.01", true); define(TITLE, "M00se Bl0g", true); define(DESCRIPTION, "Open Source Blog", true); pageError("database-connect"); } }else{ define(CONNECTED, false, true); define(TEMPLATE, "default", true); define(VERSION, "1.01", true); define(TITLE, "M00se Bl0g", true); define(DESCRIPTION, "Open Source Blog", true); if(!defined("INSTALL")){ pageError("not-setup"); } } ?>/* Test the database connection, if cannot connect to database set the template to the default */ if($dbms->isConnected()){ if(($query = $dbms->queryDatabase("SELECT ".$databaseVaiables['setup']['table'].".".$databaseVaiables['setup'index.php000064400407710040771000000114571075663057100117660ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ include_once("include/setup.php"); setContent(); function setContent(){ global $dbms, $databaseVaiables, $template, $bbCode; $pageItems = PAGEITEMS; $pageStart = 0; $maxPageItems = $dbms->countFields("SELECT * FROM ".$databaseVaiables['entry']['table'].";"); if($_GET['page']){ if(!ereg('[^0-9]', $_GET['page'])){ if((($_GET['page']-1) > 0) && ($_GET['page'] < (($maxPageItems+$pageItems)/$pageItems))){ $pageStart = (($_GET['page']-1)*$pageItems); if(($_GET['page']*$pageItems) > $maxPageItems){ $pageItems = ($pageItems-(($_GET['page']*$pageItems)-$maxPageItems)); } } } } if($dbms->countFields(($query = "SELECT ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['id'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['title'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['posted'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['user'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['content'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['topic'].", ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['comments'].", ".$databaseVaiables['topic']['table'].".".$databaseVaiables['topic']['id'].", ".$databaseVaiables['topic']['table'].".".$databaseVaiables['topic']['title'].", ".$databaseVaiables['users']['table'].".".$databaseVaiables['users']['id'].", ".$databaseVaiables['users']['table'].".".$databaseVaiables['users']['displayname']." FROM ".$databaseVaiables['entry']['table'].", ".$databaseVaiables['topic']['table'].", ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['topic']['table'].".".$databaseVaiables['topic']['id']."=".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['topic']." && ".$databaseVaiables['users']['table'].".".$databaseVaiables['users']['id']."=".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['user']." ORDER BY ".$databaseVaiables['entry']['table'].".".$databaseVaiables['entry']['id']." DESC LIMIT ".$pageStart.", ".$pageItems.";")) > 0){ $dbms->queryDatabase($query); while($rows = $dbms->getDataArray()){ if($rows[$databaseVaiables['entry']['comments']] == 1){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/entry.tmpl"); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/entry-no-comments.tmpl"); } $template->addTemplateKey("entryid", $rows[$databaseVaiables['entry']['id']]); $template->addTemplateKey("entrytitle", $rows[$databaseVaiables['entry']['title']]); $template->addTemplateKey("entrytopic", $rows[$databaseVaiables['topic']['title']]); $template->addTemplateKey("entryposted", $rows[$databaseVaiables['entry']['posted']]); $bbCode = new BBCode($rows[$databaseVaiables['entry']['content']]); $template->addTemplateKey("entrycontent", $bbCode->applyBBCode()); $template->addTemplateKey("entryuser", $rows[$databaseVaiables['users']['displayname']]); $template->addTemplateKey("entrycomment", $rows[$databaseVaiables['users']['displayname']]); $template->addTemplateKey("entrycount", $dbms->countFields("SELECT * FROM ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['comments']['entry']."='".$rows[$databaseVaiables['entry']['id']]."';")); $template->alterSource(); $page .= $template->getFileSource(); } $pageCount = 0; while($maxPageItems > 0){ $pageCount++; if((((!$_GET['page']) || (($_GET['page']-1) <= 0) || ($_GET['page'] >= (($maxPageItems+PAGEITEMS)/PAGEITEMS))) && ($pageCount == 1)) || ($_GET['page'] == $pageCount)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plaintext.tmpl"); $template->addTemplateKey("plaintext", $pageCount); }else{ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/plainlink.tmpl"); $template->addTemplateKey("linklocation", "?page=".$pageCount); $template->addTemplateKey("linktext", $pageCount); } $template->alterSource(); $pageSplit .= $template->getFileSource(); $maxPageItems -= PAGEITEMS; } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/page-split.tmpl"); $template->addTemplateKey("splitpages", $pageSplit); $template->alterSource(); $page .= $template->getFileSource(); setPage($page); }else{ pageError("no-entries"); } } ?>install/000075500407710040771000000000001075663036400116045ustar00jml600005120001530install/config/000075500407710040771000000000001075663036300130505ustar00jml600005120001530install/config/config-file.tmpl000064400407710040771000000017201075663125700161330ustar00jml600005120001530install/config.php000064400407710040771000000016751075663125700135750ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "..", true); define(DISABLE_IGNORE, true, true); define(INSTALL, true, true); include_once(THIS_FOLDER."/include/setup.php"); header('Content-type: text/php'); $template = new Template(THIS_FOLDER."/install/config/config-file.tmpl"); $template->addTemplateKey("setup-host", $_GET['host']); $template->addTemplateKey("setup-user", $_GET['user']); $template->addTemplateKey("setup-pass", $_GET['pass']); $template->addTemplateKey("setup-data", $_GET['data']); $template->addTemplateKey("setup-prefix", $_GET['prefix']); $template->addTemplateKey("setup-dbms", $_GET['dbms']); $template->alterSource(); $template->printTemplate(); ?>install/index.php000074400407710040771000000525351075741604300134340ustar00jml600005120001530 * @version Alpha - 1.01 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "..", true); define(INSTALL, true, true); define(DISABLE_IGNORE, true, true); include_once("../include/setup.php"); createDatabase(); function createDatabase(){ global $dbms, $databaseVaiables; session_start(); if(CONNECTED){ pageError("blog-already-installed"); }else{ switch($_GET['step']){ default: case 1: if($_POST['setup-submit']){ if($_POST['install-database-dbms'] && is_dir(THIS_FOLDER."/objects/database/".$_POST['install-database-dbms'])){ require_once(THIS_FOLDER."/objects/database/".$_POST['install-database-dbms']."/dbms.obj.php"); $dbms = new DatabaseConnection($_POST['install-database-host'], $_POST['install-database-username'], $_POST['install-database-password'], $_POST['install-database-name']); if($dbms->isConnected() && ($_POST['install-database-prefix']) && (!eregi("[^A-Za-z0-9_-]+", $_POST['install-database-prefix']))){ $_SESSION['database-host'] = $_POST['install-database-host']; $_SESSION['database-username'] = $_POST['install-database-username']; $_SESSION['database-password'] = $_POST['install-database-password']; $_SESSION['database-name'] = $_POST['install-database-name']; $_SESSION['database-prefix'] = $_POST['install-database-prefix']; $_SESSION['database-dbms'] = $_POST['install-database-dbms']; header("location:./index.php?step=2"); exit(); } } if(!$dbms || !$dbms->isConnected()){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/error/not-connected.tmpl"); $connectionError = $template->getFileSource(); } if(eregi("[^A-Za-z0-9_-]+", $_POST['install-database-prefix']) || !$_POST['install-database-prefix']){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/error/invalid-prefix.tmpl"); $prefixError = $template->getFileSource(); } if(!is_dir(THIS_FOLDER."/objects/database/".$_POST['install-database-dbms']) || !$_POST['install-database-dbms']){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/error/invalid-dbms.tmpl"); $dbmsError = $template->getFileSource(); } } $page = getDatabaseSetupPrint($connectionError, $prefixError, $dbmsError); $step = "1 :: Database Setup"; break; case 2: if($_SESSION['database-dbms'] && is_dir(THIS_FOLDER."/objects/database/".$_SESSION['database-dbms'])){ require_once(THIS_FOLDER."/objects/database/".$_SESSION['database-dbms']."/dbms.obj.php"); $dbms = new DatabaseConnection($_SESSION['database-host'], $_SESSION['database-username'], $_SESSION['database-password'], $_SESSION['database-name']); if(($dbms->isConnected()) && (is_dir(THIS_FOLDER."/objects/database/".$_SESSION['database-dbms'])) && (!eregi("[^A-Za-z0-9_-]+", $_SESSION['database-prefix']))){ $bbCode = new BBCode(stripslashes(htmlspecialchars($_POST['install-blog-name']))); $blogName = $bbCode->getStrippedCode(); $bbCode = new BBCode(stripslashes(htmlspecialchars($_POST['install-blog-description']))); $blogDescription = $bbCode->getStrippedCode(); $bbCode = new BBCode(stripslashes(htmlspecialchars($_POST['install-admin-name']))); $adminName = $bbCode->getStrippedCode(); if(($_POST['install-blog-name']) && (strlen($blogName) > 0) && ($_POST['install-blog-description']) && (strlen($blogDescription) > 0) && ($_POST['install-admin-name']) && (strlen($adminName) <= 100) && (strlen($adminName) > 0) && ($_POST['install-admin-username']) && (strlen($_POST['install-admin-username'])<= 30) && (strlen($_POST['install-admin-username']) > 0) && (!eregi("[^A-Za-z0-9_-]+", $_POST['install-admin-username'])) && ($_POST['install-admin-password']) && (strlen($_POST['install-admin-password']) <= 100) && (strlen($_POST['install-admin-password']) > 0) && (!eregi("[^A-Za-z0-9_-]+", $_POST['install-admin-password'])) && ($_POST['install-admin-password'] === $_POST['install-admin-repassword'])){ $_SESSION['blog-name'] = $blogName; $_SESSION['blog-description'] = $blogDescription; $_SESSION['admin-name'] = $adminName; $_SESSION['admin-username'] = $_POST['install-admin-username']; $_SESSION['admin-password'] = $_POST['install-admin-password']; header("location:./index.php?step=3"); exit(); }else{ if($_POST['setup-submit']){ if((!$_POST['install-blog-name']) || (strlen($blogName) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/error/blank-blog-name.tmpl"); $blogNameError .= $template->getFileSource(); } if((!$_POST['install-blog-description']) || (strlen($blogDescription) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/error/blank-blog-description.tmpl"); $blogDescriptionError .= $template->getFileSource(); } if((!$_POST['install-admin-name']) && (strlen($adminName) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/error/blank-admin-name.tmpl"); $adminNameError .= $template->getFileSource(); } if(strlen($adminName) > 100){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/error/too-long-admin-name.tmpl"); $adminNameError .= $template->getFileSource(); } if(($_POST['install-admin-username']) && (strlen($_POST['install-admin-username']) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/error/blank-admin-username.tmpl"); $adminUsernameError .= $template->getFileSource(); } if(strlen($_POST['install-admin-username']) > 30){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/error/too-long-admin-username.tmpl"); $adminUsernameError .= $template->getFileSource(); } if(eregi("[^A-Za-z0-9_-]+", $_POST['install-admin-username'])){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/error/invalid-admin-username.tmpl"); $adminUsernameError .= $template->getFileSource(); } if((!$_POST['install-admin-password']) && (strlen($_POST['install-admin-password']) <= 0)){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/error/blank-admin-password.tmpl"); $adminPasswordError .= $template->getFileSource(); } if(strlen($_POST['install-admin-password']) > 100){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/error/too-long-admin-password.tmpl"); $adminPasswordError .= $template->getFileSource(); } if(eregi("[^A-Za-z0-9_-]+", $_POST['install-admin-password'])){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/error/invalid-admin-password.tmpl"); $adminPasswordError .= $template->getFileSource(); } if($_POST['install-admin-password'] !== $_POST['install-admin-repassword']){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/error/not-match-admin-password.tmpl"); $adminRepasswordError .= $template->getFileSource(); } } } $page = getDatabaseInstallPrint($blogNameError, $blogDescriptionError, $adminNameError, $adminUsernameError, $adminPasswordError, $adminRepasswordError); $step = "2 :: Blog Setup"; } } if(!$page){ header("location:./index.php?step=1"); exit(); } break; case 3: if($_SESSION['database-dbms'] && is_dir(THIS_FOLDER."/objects/database/".$_SESSION['database-dbms'])){ require_once(THIS_FOLDER."/objects/database/".$_SESSION['database-dbms']."/dbms.obj.php"); $dbms = new DatabaseConnection($_SESSION['database-host'], $_SESSION['database-username'], $_SESSION['database-password'], $_SESSION['database-name']); if(($dbms->isConnected()) && (is_dir(THIS_FOLDER."/objects/database/".$_SESSION['database-dbms'])) && (!eregi("[^A-Za-z0-9_-]+", $_SESSION['database-prefix']))){ if(($_SESSION['blog-name']) && ($_SESSION['blog-description']) && ($_SESSION['admin-name']) && ($_SESSION['admin-username']) && ($_SESSION['admin-password'])){ if(installBlog($dbms, $_SESSION['database-prefix'])){ if(setupBlog($dbms, $_SESSION['database-prefix'], $_SESSION['blog-name'], $_SESSION['blog-description'], $_SESSION['admin-name'], $_SESSION['admin-username'], $_SESSION['admin-password'])){ if(is_writable(THIS_FOLDER."/include/config.php") && ($handler = @fopen(THIS_FOLDER."/include/config.php", 'w'))){ if(@fwrite($handler, downloadConfig($_SESSION['database-host'], $_SESSION['database-username'], $_SESSION['database-password'], $_SESSION['database-name'], $_SESSION['database-prefix'], $_SESSION['database-dbms']))){ fclose($handler); $page = installationComplete(); $step = "3 :: Installation Complete"; }else{ $page = installationCompleteDownload($_SESSION['database-host'], $_SESSION['database-username'], $_SESSION['database-password'], $_SESSION['database-name'], $_SESSION['database-prefix'], $_SESSION['database-dbms']); $step = "3 :: Installation Complete :: Download"; } }else{ $page = installationCompleteDownload($_SESSION['database-host'], $_SESSION['database-username'], $_SESSION['database-password'], $_SESSION['database-name'], $_SESSION['database-prefix'], $_SESSION['database-dbms']); $step = "3 :: Installation Complete :: Download"; } } } } } } if(!$page){ header("location:./index.php?step=2"); exit(); } session_destroy(); break; } $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/install-main.tmpl"); $template->addTemplateKey("install-step", $step); $template->addTemplateKey("install-error", $error); $template->addTemplateKey("install-body", $page); $template->alterSource(); setPage($template->getFileSource()); } } function installBlog($dbms, $prefix){ $databaseVaiables = getDatabaseIdentifierArray($prefix); $installed = true; if(!$dbms->modifyDatabase("CREATE TABLE `".$databaseVaiables['entry']['table']."` ( `".$databaseVaiables['entry']['id']."` int(11) NOT NULL auto_increment PRIMARY KEY, `".$databaseVaiables['entry']['title']."` text NOT NULL, `".$databaseVaiables['entry']['posted']."` datetime NOT NULL, `".$databaseVaiables['entry']['user']."` int(11) NOT NULL, `".$databaseVaiables['entry']['content']."` text NOT NULL, `".$databaseVaiables['entry']['topic']."` int(11) NOT NULL, `".$databaseVaiables['entry']['comments']."` tinyint(1) NOT NULL );")) $installed = false; if(!$dbms->modifyDatabase("CREATE TABLE `".$databaseVaiables['topic']['table']."` ( `".$databaseVaiables['topic']['id']."` int(11) NOT NULL auto_increment PRIMARY KEY, `".$databaseVaiables['topic']['title']."` text NOT NULL, `".$databaseVaiables['topic']['description']."` text NOT NULL );")) $installed = true; if(!$dbms->modifyDatabase("CREATE TABLE `".$databaseVaiables['comments']['table']."` ( `".$databaseVaiables['comments']['id']."` int(11) NOT NULL auto_increment PRIMARY KEY, `".$databaseVaiables['comments']['entry']."` int(11) NOT NULL, `".$databaseVaiables['comments']['posted']."` datetime NOT NULL, `".$databaseVaiables['comments']['ip']."` varchar(255) NOT NULL, `".$databaseVaiables['comments']['dns']."` text NOT NULL, `".$databaseVaiables['comments']['name']."` varchar(50) NOT NULL, `".$databaseVaiables['comments']['email']."` varchar(100) NOT NULL, `".$databaseVaiables['comments']['comment']."` text NOT NULL );")) $installed = false; if(!$dbms->modifyDatabase("CREATE TABLE `".$databaseVaiables['users']['table']."` ( `".$databaseVaiables['users']['id']."` int(11) NOT NULL auto_increment PRIMARY KEY, `".$databaseVaiables['users']['username']."` varchar(30) NOT NULL, `".$databaseVaiables['users']['password']."` varchar(100) NOT NULL, `".$databaseVaiables['users']['displayname']."` varchar(100) NOT NULL, `".$databaseVaiables['users']['access']."` int(1) NOT NULL, `".$databaseVaiables['users']['active']."` int(1) NOT NULL );")) $installed = false; if(!$dbms->modifyDatabase("CREATE TABLE `".$databaseVaiables['styles']['table']."` ( ".$databaseVaiables['styles']['id']." int(11) NOT NULL auto_increment PRIMARY KEY, ".$databaseVaiables['styles']['name']." text NOT NULL, ".$databaseVaiables['styles']['description']." text NOT NULL, ".$databaseVaiables['styles']['created']." datetime NOT NULL, ".$databaseVaiables['styles']['version']." varchar(10) NOT NULL );")) $installed = false; if(!$dbms->modifyDatabase("CREATE TABLE `".$databaseVaiables['setup']['table']."` ( ".$databaseVaiables['setup']['active']." tinyint(1) NOT NULL, ".$databaseVaiables['setup']['style']." int(11) NOT NULL, ".$databaseVaiables['setup']['attempts']." int(11) NOT NULL, ".$databaseVaiables['setup']['version']." varchar(10) NOT NULL, ".$databaseVaiables['setup']['name']." text NOT NULL, ".$databaseVaiables['setup']['description']." text NOT NULL, ".$databaseVaiables['setup']['pageitems']." int(11) NOT NULL, ".$databaseVaiables['setup']['comment_delay']." int(11) NOT NULL, ".$databaseVaiables['setup']['comment_length']." int(11) NOT NULL, ".$databaseVaiables['setup']['comment_default']." varchar(100) NOT NULL );")) $installed = false; if(!$dbms->modifyDatabase("CREATE TABLE `".$databaseVaiables['blocked']['table']."` ( ".$databaseVaiables['blocked']['id']." int(11) NOT NULL auto_increment PRIMARY KEY, ".$databaseVaiables['blocked']['ip']." varchar(15) NOT NULL );")) $installed = false; return $installed; } function setupBlog($dbms, $prefix, $blogName, $blogDescription, $passwordDisplayName, $adminUsername, $adminPassword){ $databaseVaiables = getDatabaseIdentifierArray($prefix); $setup = true; if(!$dbms->editDatabase("INSERT INTO `".$databaseVaiables['styles']['table']."` ( ".$databaseVaiables['styles']['name'].", ".$databaseVaiables['styles']['description'].", ".$databaseVaiables['styles']['created'].", ".$databaseVaiables['styles']['version']." ) VALUES ( 'default', 'The default style of m00se bl0g.', '".date("Y-m-d H:i:s")."', '".VERSION."' );")) $setup = false; if(!$dbms->editDatabase("INSERT INTO `".$databaseVaiables['setup']['table']."` ( ".$databaseVaiables['setup']['active'].", ".$databaseVaiables['setup']['style'].", ".$databaseVaiables['setup']['attempts'].", ".$databaseVaiables['setup']['version'].", ".$databaseVaiables['setup']['name'].", ".$databaseVaiables['setup']['description'].", ".$databaseVaiables['setup']['pageitems'].", ".$databaseVaiables['setup']['comment_delay'].", ".$databaseVaiables['setup']['comment_length'].", ".$databaseVaiables['setup']['comment_default']." ) VALUES ( '1', '1', '5', '".VERSION."', '".mysql_real_escape_string($blogName)."', '".mysql_real_escape_string($blogDescription)."', '10', '60', '1000', 'Anonymous' );")) $setup = false; if(!$dbms->editDatabase("INSERT INTO `".$databaseVaiables['topic']['table']."` ( ".$databaseVaiables['topic']['title'].", ".$databaseVaiables['topic']['description']." ) VALUES ( 'General', 'General Topic Relating To Everything' );")) $setup = false; if(!$dbms->editDatabase("INSERT INTO `".$databaseVaiables['entry']['table']."` ( ".$databaseVaiables['entry']['title'].", ".$databaseVaiables['entry']['posted'].", ".$databaseVaiables['entry']['user'].", ".$databaseVaiables['entry']['content'].", ".$databaseVaiables['entry']['topic'].", ".$databaseVaiables['entry']['comments']." ) VALUES ( 'Just installed M00se Bl0g!', '".date("Y-m-d H:i:s")."', '1', 'I\'ve successfully installed m00se bl0g.', '1', '1' );")) $setup = false; if(!$dbms->editDatabase("INSERT INTO `".$databaseVaiables['users']['table']."` ( ".$databaseVaiables['users']['username'].", ".$databaseVaiables['users']['password'].", ".$databaseVaiables['users']['displayname'].", ".$databaseVaiables['users']['access'].", ".$databaseVaiables['users']['active']." ) VALUES ( '".mysql_real_escape_string($adminUsername)."', '".md5(mysql_real_escape_string($adminPassword))."', '".mysql_real_escape_string($passwordDisplayName)."', '3', '1' );")) $setup = false; return $setup; } function getDatabaseSetupPrint($connectionError, $prefixError, $dbmsError){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/install-step-one.tmpl"); $template->addTemplateKey("database-connection-error", $connectionError); $template->addTemplateKey("install-database-host", htmlspecialchars(stripslashes($_POST['install-database-host']))); $template->addTemplateKey("install-database-username", htmlspecialchars(stripslashes($_POST['install-database-username']))); $template->addTemplateKey("install-database-password", htmlspecialchars(stripslashes($_POST['install-database-password']))); $template->addTemplateKey("install-database-name", htmlspecialchars(stripslashes($_POST['install-database-name']))); $template->addTemplateKey("database-prefix-error", $prefixError); if($_POST['install-database-prefix']){ $template->addTemplateKey("install-database-prefix", htmlspecialchars(stripslashes($_POST['install-database-prefix']))); }else{ $template->addTemplateKey("install-database-prefix", "m00sebl0g_"); } $template->addTemplateKey("database-dbms-error", $dbmsError); $template->addTemplateKey("install-database-dbms", htmlspecialchars(stripslashes($_POST['install-database-dbms']))); $template->alterSource(); return $template->getFileSource(); } function getDatabaseInstallPrint($blogNameError, $blogDescriptionError, $adminNameError, $adminUsernameError, $adminPasswordError, $adminRepasswordError){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/install-step-two.tmpl"); $template->addTemplateKey("install-blog-name", htmlspecialchars(stripslashes($_POST['install-blog-name']))); $template->addTemplateKey("blog-name-error", $blogNameError); $template->addTemplateKey("install-blog-description", htmlspecialchars(stripslashes($_POST['install-blog-description']))); $template->addTemplateKey("blog-description-error", $blogDescriptionError); $template->addTemplateKey("install-admin-name", htmlspecialchars(stripslashes($_POST['install-admin-name']))); $template->addTemplateKey("admin-name-error", $adminNameError); $template->addTemplateKey("install-admin-username", htmlspecialchars(stripslashes($_POST['install-admin-username']))); $template->addTemplateKey("admin-username-error", $adminUsernameError); $template->addTemplateKey("install-admin-password", htmlspecialchars(stripslashes($_POST['install-admin-password']))); $template->addTemplateKey("admin-password-error", $adminPasswordError); $template->addTemplateKey("install-admin-repassword", htmlspecialchars(stripslashes($_POST['install-admin-repassword']))); $template->addTemplateKey("admin-repassword-error", $adminRepasswordError); $template->alterSource(); return $template->getFileSource(); } function installationCompleteDownload($host, $user, $pass, $data, $prefix, $dbms){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/install-step-three-download.tmpl"); $template->addTemplateKey("config-host", $host); $template->addTemplateKey("config-user", $user); $template->addTemplateKey("config-pass", $pass); $template->addTemplateKey("config-data", $data); $template->addTemplateKey("config-prefix", $prefix); $template->addTemplateKey("config-dbms", $dbms); $template->alterSource(); return $template->getFileSource(); } function installationComplete(){ $template = new Template(THIS_FOLDER."/templates/".TEMPLATE."/html/install/install-step-three-complete.tmpl"); return $template->getFileSource(); } function downloadConfig($host, $user, $pass, $data, $prefix, $dbms){ $template = new Template(THIS_FOLDER."/install/config/config-file.tmpl"); $template->addTemplateKey("setup-host", $host); $template->addTemplateKey("setup-user", $user); $template->addTemplateKey("setup-pass", $pass); $template->addTemplateKey("setup-data", $data); $template->addTemplateKey("setup-prefix", $prefix); $template->addTemplateKey("setup-dbms", $dbms); $template->alterSource(); return $template->getFileSource(); } ?> );")) $installed = false; if(!$dbms->modifyDatabase("CREATE TABLE `".$databaseVaiables['topic']['table']."` ( `".$databaseVaiables['topic']['id']."objects/000075500407710040771000000000001075663037000115645ustar00jml600005120001530objects/database/000075500407710040771000000000001075663036500133345ustar00jml600005120001530objects/database/mysql5/000075500407710040771000000000001075663036600145675ustar00jml600005120001530objects/database/mysql5/dbms.obj.php000064400407710040771000000064641075663036500170070ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ /* # [./include/object/databse/mysql/dbms.php] # Written by James Lockhart # # Description: # This object handles database connections and queries. # */ class DatabaseConnection{ /* connection stores the connection data to the database server */ var $connection; /* handeler stores the connection data to the database */ var $handeler; /* Holds the data called from the database */ var $data; /* DatabaseConnection creates a connetion to the set database server * and connects to the selected database */ function DatabaseConnection($host, $user, $pass, $db){ /* If any of the fields are blank return false */ if(!$host || !$user || !$db) return false; /* Create a connection to the database server */ $this->connect($host, $user, $pass); /* Chceck to see if the connection was established if not kill * the connection, if so connect to the selected database. */ if(!$this->isConnected()) $this->killConnection(); else $this->handeler = @mysql_select_db($db, $this->connection); /* If cannot connect to the database kill the connection */ if(!$this->handeler) $this->killConnection(); } /* Connect to the database server with the specified details */ function connect($host, $user, $pass){ $this->connection = @mysql_connect($host, $user, $pass); } /* Connect to the database set in the parameter */ function selectDatabase($db){ $this->handeler = @mysql_select_db($db, $this->connection); } /* Preform a query to the database and store the returning data * into data */ function queryDatabase($sqlString){ if($this->isConnected()) return ($this->data = @mysql_query($sqlString, $this->connection)); return false; } /* Preform a query to the database and store the returning data * into data */ function modifyDatabase($sqlString){ if($this->isConnected()) return @mysql_query($sqlString, $this->connection); } /* Preform a query to the database and return true if the database has been * changed */ function editDatabase($sqlString){ if($this->isConnected()){ $this->queryDatabase($sqlString); if(@mysql_affected_rows() > 0) return true; } return false; } /* Preform a query to the database and return the amount of entries relating found */ function countFields($sqlString){ if($this->isConnected()) return @mysql_num_rows(mysql_query($sqlString)); return false; } /* Return the next available entry found in the data returned in the database */ function getDataArray(){ return @mysql_fetch_assoc($this->data); } /* Kill the connection to the database */ function killConnection(){ if($this->isConnected()) @mysql_close($this->connection); } /* Check to see if the database is connected */ function isConnected(){ if(!$this->connection) return false; return true; } /* Clear the data store */ function clearData(){ @mysql_free_result($this->data); } } ?>objects/database/mysql5/index.php000064400407710040771000000000001075663036600163750ustar00jml600005120001530objects/database/index.php000064400407710040771000000000001075663036500151420ustar00jml600005120001530objects/bbcode.obj.php000064400407710040771000000050361075663036400142730ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ /* # [./include/object/template.php] # Written by James Lockhart # # Description: # This object allows the system to have a dynamic template system, it reads in the # set template amends the {TEMPLATE} tags to their set data and prints the output. # # This was based on the smarty template system, just more light weight. */ class BBCode{ /* Store the template source */ var $text; function BBCode($text){ $this->text = $text; } /* Read in the file */ function stripSpecialCharacters(){ $strip = array( chr(13) => '
', chr(9) => '      ' ); return str_replace(array_keys($strip), array_values($strip), $this->text); } function getStrippedCode(){ $strip = array( '\\\'' => ''', '\'' => ''', '\\"' => '"', '"' => '"', '\\' => '\', '\n' => '', '\t' => '', '$' => '$', '%' => '%', '<' => '<', '>' => '>', '{' => '{', '}' => '}', '(' => '(', ')' => ')', '!' => '!', '^' => '^', '*' => '*', ':' => ':', '@' => '@', '~' => '˜', ',' => ',', '.' => '.', '?' => '?', '`' => '`', '' => '¬', '+' => '+', '-' => '-', '_' => '_' ); return str_replace(array_keys($strip), array_values($strip), $this->text); } function applyBBCode(){ $bb = array( '/(\[[Cc][Oo][Dd][Ee]=)(.*?)(\])(.*?)(\[\/[Cc][Oo][Dd][Ee]\])/s' => 'Code [\\2] : \\4', '/(\[[Cc][Oo][Dd][Ee]\])(.*?)(\[\/[Cc][Oo][Dd][Ee]\])/s' => 'Code:\\2', '/(\\[[Ii][Mm][Gg]\])(.*?)(\[\/[Ii][Mm][Gg]\])/s' => 'User Posted Image', '/(\[[Uu][Rr][Ll]=)(.*?)(\])(.*?)(\[\/[Uu][Rr][Ll]\])/s' => '\\4', '/(\[[Bb]\])(.*?)(\[\/[Bb]\])/s' => '\\2', '/(\[[Ii]\])(.*?)(\[\/[Ii]\])/s' => '\\2', '/(\[[Uu]\])(.*?)(\[\/[Uu]\])/s' => '\\2' ); return preg_replace(array_keys($bb), array_values($bb), $this->stripSpecialCharacters()); } } ?>objects/filehandler.obj.php000064400407710040771000000054201075663036600153310ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ /* # [./include/object/filehandler.php] # Written by James Lockhart # # Description: # */ class FileHandler{ /* Store the file location of the template */ var $fileLocation; /* Store the template reader */ var $fileReader; /* Store the template source */ var $fileSource; /* The constructor reads in a file name from the parameter, calls the file * and sets it to the file source and then kills the file reader. */ function FileHandler($file){ /* Set the file location */ $this->fileLocation = $file; /* Read in the file */ if(!$this->readFile()) return false; /* Set the file source */ if(!$this->setFileSource()) return false; /* Close the file reader */ if(!$this->closeFileStream()) return false; } function fileExists(){ if(!isset($this->fileSource)) return false; return true; } /* Read in the file */ function readFile(){ /* Check to see if the file location is not null if so return false */ if(!$this->fileLocation) return false; /* Check to see if the file exists and hide the errors returned if any */ if(($this->fileReader = @fopen($this->fileLocation,"r"))) return true; /* Return false if file could not be found. */ return false; } function setFileSource(){ /* Check to see if the file location and file reader is not null if * so return false */ if(!$this->fileLocation || !$this->fileReader) return false; /* Read the file sourec to the file source variable and hide the errors returned if any */ if(($this->fileSource = @fread($this->fileReader, filesize($this->fileLocation)))) return true; /* Return false if source could not be set */ return false; } function closeFileStream(){ /* Check to see if the file reader is not null if so return false */ if(!$this->fileReader) return false; /* Close the file reader and hide the errors returned if any */ if(@fclose($this->fileReader)) return true; /* Return false if file reader could not close */ return false; } function getFileSource(){ /* Check to see if the file source is not null if so return false */ if(!$this->fileSource) return false; /* Return the file source */ return $this->fileSource; } function clearFileSource(){ if(!isset($this->fileSource)) return false; unset($this->fileSource); return true; } } ?>objects/index.php000064400407710040771000000000001075663036600133770ustar00jml600005120001530objects/login.obj.php000064400407710040771000000115731075663036700141730ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ /* # [./include/object/login.php] # Written by James Lockhart # # Description: # This object handles user logins, when called it checks to see if a user # is already logged in, if not check to see if a username and password has # been submitted to the page. # */ class Login{ /* Store the logged in user's username */ var $username; /* Store the logged in user's access level */ var $level; /* Store true if the user is logged in, otherwise store false */ var $loggedIn; var $userId; var $attempts; /* Login checks to see if the user is currently logged in, by * checking the loggedIn id by the current session ID, if they * match then the user is logged in. */ function Login(){ /* Create a new session */ session_start(); if(!$this->checkClientData()){ session_destroy(); exit("Suspect actions have prompt this page to close."); } $this->attempts = $_SESSION['attempts']; /* Set the loggedIn to false by default */ $this->loggedIn = false; /* Check to see if the loggedIn session matches that of the session * ID, if so set the user's level and username to the object's variables */ if(isset($_SESSION['loggedIn'])){ /* Set logged in to true */ $this->loggedIn = $_SESSION['loggedIn']; $_SESSION['attempts'] = 0; /* Set the username to the session storing the username */ $this->username = $_SESSION['username']; $this->userId = $_SESSION['id']; /* Set the access level to the session storing the access level */ $this->level = $_SESSION['level']; }else{ /* Check to see if a user has submitted a username and password * which is also not currently logged in. */ if(($_POST['username']) && ($_POST['password']) && (!$this->loggedIn)){ /* Check to see if the data the user submitted is valid */ if((!eregi("[^A-Za-z0-9_-]+", $_POST['username'])) && (!eregi("[^A-Za-z0-9_-]+", $_POST['password']))) /* Check the username and password against the database */ $this->checkLoggedIn(htmlspecialchars($_POST['username']), htmlspecialchars($_POST['password'])); $_SESSION['attempts']++; } } } /* Check the username and password against the database, if there is a match * log the user in */ function checkLoggedIn($user, $pass){ global $dbms, $databaseVaiables; /* Check the username and password in the database to see if there * is a match */ if($dbms->countFields(($query = "SELECT ".$databaseVaiables['users']['id'].", ".$databaseVaiables['users']['username'].", ".$databaseVaiables['users']['access']." FROM ".$databaseVaiables['users']['table']." WHERE ".$databaseVaiables['users']['username']."='".mysql_real_escape_string($user)."' && ".$databaseVaiables['users']['password']."='".md5(mysql_real_escape_string($pass))."' && ".$databaseVaiables['users']['active']."='1';")) == 1){ $row = mysql_fetch_row($dbms->queryDatabase($query)); $this->setSessions($row[0], $row[1], $row[2]); /* Clear the database data */ $dbms->clearData(); return true; } return false; } /* set the appropriate sessions and set the user as logged in */ function setSessions($id, $user, $level){ $_SESSION['id'] = $id; $_SESSION['username'] = $user; $_SESSION['level'] = $level; $_SESSION['loggedIn'] = true; $_SESSION['attempts'] = 0; $this->username = $user; $this->level = $level; $this->loggedIn = true; } function checkClientData(){ if(($_SESSION['remote_address']) && ($_SERVER['REMOTE_ADDR'] !== $_SESSION['remote_address'])){ return false; }else{ $_SESSION['remote_address'] = $_SERVER['REMOTE_ADDR']; } if(($_SESSION['user_agent']) && ($_SERVER['HTTP_USER_AGENT'] !== $_SESSION['user_agent'])){ return false; }else{ $_SESSION['user_agent'] = $_SERVER['HTTP_USER_AGENT']; } session_regenerate_id(); return true; } /* return the user status */ function isLoggedIn(){ return $this->loggedIn; } /* return the user name */ function getUserName(){ return $this->username; } /* return the user name */ function getUserId(){ return $this->userId; } /* return the user level */ function getUserLevel(){ return $this->level; } /* return the user level */ function getAttempts(){ if(!$this->attempts) $this->attempts = $_SESSION['attempts']; return $this->attempts; } /* Log the user out by destroying the session */ function logOut(){ $this->loggedIn = false; session_destroy(); } } ?>objects/template.obj.php000064400407710040771000000073601075663036700146750ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ /* # [./include/object/template.php] # Written by James Lockhart # # Description: # This object allows the system to have a dynamic template system, it reads in the # set template amends the {TEMPLATE} tags to their set data and prints the output. # # This was based on the smarty template system, just more light weight. */ class Template{ /* Store the template source */ var $templateSource; /* Store the template source */ var $fileHandler; /* Store the array of template keys */ var $switchArray; /* The constructor reads in a file name from the parameter, calls the file * and sets it to the file source and then kills the file reader. */ function Template($file){ /* Read in the file */ if(!$this->setTemplate($file)) return false; /* Set the file source */ if(!$this->setTemplateSource()) return false; } /* Read in the file */ function setTemplate($file){ /* Check to see if the file location is not null if so return false */ if(!$file) return false; $this->fileHandler = new FileHandler($file); /* Return true if file could not be found. */ if(!$this->fileHandler->fileExists()) return false; return true; } function setTemplateSource(){ /* Check to see if the file location and file reader is not null if * so return false */ if(!$this->fileHandler->fileExists()) return false; $this->templateSource = $this->fileHandler->getFileSource(); $this->fileHandler->clearFileSource(); return true; } function addTemplateKey($identifier, $value){ /* Set the switch array key to the identifier brought in by the parameter identifier, * pad it with the Regular expression which identifies the template tags and set the * value to the value brought in by the value parameter. */ $this->switchArray["/{TEMPLATE\.".$identifier."}/"] = $value; } function alterSource(){ /* Check to see if the file source or array read in by the parameter * is not null if so return false */ if(!is_array($this->switchArray) || !$this->templateSource) return false; /* Loop through every element in the array and switch the values of the TEMPLATE * identifiers for the set data */ $this->templateSource = preg_replace(array_keys($this->switchArray), array_values($this->switchArray), $this->templateSource); /* Return true if valid */ return true; } function getFileSource(){ /* Check to see if the file source is not null if so return false */ if(!$this->templateSource) return false; /* Clear the template comment tags and comments */ $return = preg_replace('/{COMMENT\/}(.*?){\/COMMENT}/s' , "", $this->templateSource); /* Clear all the template tags that aren't set */ $return = preg_replace("/{TEMPLATE\..+}/", "", $return); /* Return the file source */ return $return; } function printTemplate(){ /* Clear the template comment tags and comments */ $return = preg_replace('/{COMMENT\/}(.+){\/COMMENT}/s' , "", $this->templateSource); /* Clear all the template tags that aren't set */ $return = preg_replace("/{TEMPLATE\..+}/", "", $return); /* Print the page template */ printf("%s", $return); } function clearTemplateSource(){ if(!isset($this->templateSource)) return false; unset($this->templateSource); return true; } } ?>objects/timedate.obj.php000064400407710040771000000101101075663037000146330ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ class TimeDate{ var $theTime; var $now; function TimeDate($time, $after){ if($after > 0){ $this->theTime = $this->setTimeAfter($time, $after); }else{ $this->theTime = $time; } $this->now = date("Y-m-d H:i:s"); } function setTimeAfter($time, $seconds){ $time = explode(" ", $time); $date = explode("-", $time[0]); $time = explode(":", $time[1]); $time[2] += $seconds; while($time[2] >= 60){ $time[1]++; if($time[1] >= 60){ $time[1] = 0; $time[0]++; if($time[0] >= 24){ $time[0] = 0; $date[2]++; if($date[2] > getTheMonthDays($date[0], $date[1])){ $date[2] = 1; $date[1]++; if($date[1] > 12){ $date[1] = 1; $date[0]++; } } } } $time[2] -= 60; } for($i = 1; $i < sizeof($date); $i++){ if($date[$i] < 10){ if($date[$i] > 0){ $date[$i] = "0".($date[$i]-0); }else{ $date[$i] = "00"; } } } for($i = 0; $i < sizeof($time); $i++){ if($time[$i] < 10){ if($time[$i] > 0){ $time[$i] = "0".($time[$i]-0); }else{ $time[$i] = "00"; } } } return implode("-", $date)." ".implode(":", $time); } function isTimeAfter(){ $time = explode(" ", $this->theTime); $now = explode(" ", $this->now); $setDate = explode("-", $time[0]); $setTime = explode(":", $time[1]); $nowDate = explode("-", $now[0]); $nowTime = explode(":", $now[1]); if($nowDate[0] >= $setDate[0]){// YEARS START MATCH if($nowDate[0] > $setDate[0]){ return true; }else{ if($nowDate[1] >= $setDate[1]){// MONTHS START MATCH if($nowDate[1] > $setDate[1]){ return true; }else{ if($nowDate[2] >= $setDate[2]){// DAYS START MATCH if($nowDate[2] > $setDate[2]){ return true; }else{ if($nowTime[0] >= $setTime[0]){// HOURS START MATCH if($nowTime[0] > $setTime[0]){ return true; }else{ if($nowTime[1] >= $setTime[1]){// MINUTES START MATCH if($nowTime[1] > $setTime[1]){ return true; }else{ if($nowTime[2] > $setTime[2]){// SECONDS START MATCH return true; } } } } } } } } } } } return false; } function isTimeBefore(){ $time = explode(" ", $this->theTime); $now = explode(" ", $this->now); $setDate = explode("-", $time[0]); $setTime = explode(":", $time[1]); $nowDate = explode("-", $now[0]); $nowTime = explode(":", $now[1]); if($nowDate[0] <= $setDate[0]){// YEARS START MATCH if($nowDate[0] < $setDate[0]){ return true; }else{ if($nowDate[1] <= $setDate[1]){// MONTHS START MATCH if($nowDate[1] < $setDate[1]){ return true; }else{ if($nowDate[2] <= $setDate[2]){// DAYS START MATCH if($nowDate[2] < $setDate[2]){ return true; }else{ if($nowTime[0] <= $setTime[0]){// HOURS START MATCH if($nowTime[0] < $setTime[0]){ return true; }else{ if($nowTime[1] <= $setTime[1]){// MINUTES START MATCH if($nowTime[1] < $setTime[1]){ return true; }else{ if($nowTime[2] < $setTime[2]){// SECONDS START MATCH return true; } } } } } } } } } } } return false; } function getTheMonthDays($year, $month){ $startYear = 1900; $daysMonth = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); $month--; while($year >= $startYear) $year-=4; if($year == $startYear) $daysMonth[1]++; return $daysMonth[$month]; } } ?>post-comment/000075500407710040771000000000001075663037100125615ustar00jml600005120001530post-comment/index.php000064400407710040771000000110541075663037100144020ustar00jml600005120001530 * @version Alpha - 1.00 (STAGE - VERSION.RELEASE) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2008, James Lockhart */ define(THIS_FOLDER, "..", true); include_once(THIS_FOLDER."/include/setup.php"); if($dbms->countFields("SELECT * FROM ".$databaseVaiables['blocked']['table']." WHERE ".$databaseVaiables['blocked']['ip']."='".mysql_real_escape_string($_SERVER['REMOTE_ADDR'])."';") == 1){ pageError("ip-is-blocked"); } if($_GET['entry']){ if(!ereg('[^0-9]', $_GET['entry'])){ if($dbms->countFields("SELECT * FROM ".$databaseVaiables['entry']['table']." WHERE ".$databaseVaiables['entry']['id']."='".mysql_real_escape_string($_GET['entry'])."';") == 1){ if($dbms->countFields("SELECT * FROM ".$databaseVaiables['entry']['table']." WHERE ".$databaseVaiables['entry']['id']."='".mysql_real_escape_string($_GET['entry'])."' && ".$databaseVaiables['entry']['comments']."='1';") == 1){ $entry = $_GET['entry']; }else{ pageError("input-no-comments"); } }else{ pageError("input-not-exist"); } }else{ pageError("input-invalid"); } }else{ pageError("input-none"); } if($_POST['name']){ if(strlen($_POST['name']) > 0 && strlen($_POST['name']) <= 50){ $bbCode = new BBCode($_POST['name']); $name = $bbCode->getStrippedCode(); }else{ pageError("comment-name-long"); } } if($_POST['email']){ if(strlen($_POST['email']) > 0 && strlen($_POST['email']) <= 100){ if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $_POST['email'])){ $email = $_POST['email']; }else{ pageError("comment-email-invalid"); } }else{ pageError("comment-email-long"); } } if($_POST['comment']){ if(strlen($_POST['comment']) > 0 && strlen($_POST['comment']) <= COMMENT_LENGTH){ $bbCode = new BBCode($_POST['comment']); $comment = $bbCode->getStrippedCode(); }else{ pageError("comment-body-long"); } }else{ pageError("comment-body-none"); } postComment($entry, $name, $email, $comment); function postComment($entry, $name, $email, $comment){ global $dbms, $databaseVaiables, $template, $timeDate; if(!$name){ $name = 0; } $ip = $_SERVER['REMOTE_ADDR']; $dns = gethostbyaddr($_SERVER['REMOTE_ADDR']); $posted = date("Y-m-d H:i:s"); if(COMMENT_DELAY > 0 && $dbms->countFields(($query = "SELECT ".$databaseVaiables['comments']['posted']." FROM ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['comments']['ip']."='".mysql_real_escape_string($ip)."' ORDER BY ".$databaseVaiables['comments']['posted']." DESC;")) > 0){ $timeDate = new TimeDate(mysql_result($dbms->queryDatabase($query), 0), COMMENT_DELAY); if(!$timeDate->isTimeAfter()){ pageError("comment-post-delay"); } } if(!$dbms->editDatabase("INSERT INTO `".$databaseVaiables['comments']['table']."` (".$databaseVaiables['comments']['entry'].", ".$databaseVaiables['comments']['posted'].", ".$databaseVaiables['comments']['ip'].", ".$databaseVaiables['comments']['dns'].", ".$databaseVaiables['comments']['name'].", ".$databaseVaiables['comments']['email'].", ".$databaseVaiables['comments']['comment'].") VALUES ('".mysql_real_escape_string($entry)."', '".mysql_real_escape_string($posted)."', '".mysql_real_escape_string($ip)."', '".mysql_real_escape_string($dns)."', '".mysql_real_escape_string($name)."', '".mysql_real_escape_string($email)."', '".mysql_real_escape_string($comment)."');")){ pageError("comment-post-insert"); } if($dbms->countFields(($query = "SELECT ".$databaseVaiables['comments']['id']." FROM ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['comments']['ip']."='".mysql_real_escape_string($ip)."' && ".$databaseVaiables['comments']['posted']."='".mysql_real_escape_string($posted)."';")) == 1){ $commentCount = $dbms->countFields("SELECT * FROM ".$databaseVaiables['comments']['table']." WHERE ".$databaseVaiables['comments']['entry']."='".mysql_real_escape_string($entry)."';"); while($commentCount > PAGEITEMS){ $commentPage++; $commentCount -= PAGEITEMS; } if($commentCount > 0){ $commentPage++; } if($commentPage > 0){ header("location:".THIS_FOLDER."/article/?article=".$entry."&page=".$commentPage."#comment-".mysql_result($dbms->queryDatabase($query), 0), COMMENT_DELAY); }else{ header("location:".THIS_FOLDER."/article/?article=".$entry."#comment-".mysql_result($dbms->queryDatabase($query), 0), COMMENT_DELAY); } } } ?>templates/000075500407710040771000000000001075663057100121345ustar00jml600005120001530templates/default/000075500407710040771000000000001075663034500135575ustar00jml600005120001530templates/default/css/000075500407710040771000000000001075663037200143475ustar00jml600005120001530templates/default/css/default.css000064400407710040771000000444211075663037200165120ustar00jml600005120001530body{ background-image:url(../images/background-tile.png); background-repeat:repeat-y; background-color:#999999; } div#main{ position:absolute; width:600px; left:150px; top:0px; } div#header{ padding:20px; padding-left:40px; background-color:#333333; } div#footer{ padding:10px; background-color:#333333; } div#contents{ padding:20px; background-color:#333333; } div.split{ border-left:#999999 solid 10px; border-right:#999999 solid 10px; background-color:#FF9933; height:10px; } div.entry-header{ padding:2px; padding-left:10px; background-color:#666666; border: outset 1px #000000; } div.entry-body{ padding:15px; background-color:#CCCCCC; border: outset 1px #000000; border-top:none; border-bottom:none; } div.entry-footer{ padding:2px; padding-left:10px; background-color:#666666; border:outset 1px #000000; } div.entry-footer-post{ padding:12px; background-color:#666666; border:outset 1px #000000; } img#tile-logo{ position:absolute; left:0px; top:0px; } a.header-home{ font-family:Arial, Helvetica, sans-serif; font-size:20px; font-weight:800; color:#FF9933; text-decoration:none; } a.header-home:hover{ color:#FFFFFF; } h2#title-description{ font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#CCCCCC; } span.entry-head-title{ font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#CCCCCC; } a.entry-head-title{ font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#FF9933; text-decoration:none; } a.entry-head-title:hover{ color:#FFFFFF; } a.user-posted-link{ text-decoration:none; color:#666666; } a.user-posted-link:hover{ color:#FF9933; } span.entry-head-posted{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; } span.entry-head-user{ font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#CCCCCC; } span.entry-head-date{ position:absolute; right:25px; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#CCCCCC; } span.entry-body-text{ font-family:Arial, Helvetica, sans-serif; font-size:10px; } span.code-highlight{ display:block; width:520px; height:150px; background-color:#666666; border:inset 1px #000000; font-family:"Courier New", Courier, monospace; color:#FFFFFF; font-size:12px; padding:5px; overflow:auto; word-wrap:break-word; scrollbar-track-color : #666666; scrollbar-shadow-color : #666666; scrollbar-highlight-color : #CCCCCC; scrollbar-face-color : #CCCCCC; scrollbar-darkshadow-color : #666666; scrollbar-3dlight-color : #CCCCCC; scrollbar-arrow-color : #666666; scrollbar-base-color :CCCCCC; } a.entry-foot-count{ font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#FF9933; text-decoration:none; } a.entry-foot-count:hover{ color:#FFFFFF; } a.entry-foot-post{ position:absolute; right:25px; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#FF9933; text-decoration:none; } a.entry-foot-post:hover{ color:#FFFFFF; } a.entry-foot-comment{ font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#333333; } h3#title-footer{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; text-align:center; } a#link-footer{ text-decoration:none; font-family:Arial, Helvetica, sans-serif; color:#666666; } a#link-footer:hover{ color:#FF9933; } div#page-split{ font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#FF9933; text-align:center; } a.page-links{ text-decoration:none; font-family:Arial, Helvetica, sans-serif; color:#666666; } a.page-links:hover{ color:#FFFFFF; } input{ border:dotted 1px #000000; background-color:#666666; font-family:Arial, Helvetica, sans-serif; color:#FF9933; font-size:10px; width:150px; } select{ border:dotted 1px #000000; background-color:#666666; font-family:Arial, Helvetica, sans-serif; color:#FF9933; font-size:10px; width:150px; } textarea{ border:dotted 1px #000000; background-color:#666666; font-family:Arial, Helvetica, sans-serif; color:#FF9933; font-size:10px; width:250px; height:100px; } span.form-headers{ font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#333333; } form#comment{ border:dotted 1px #000000; display:block; width:520px; padding:5px; background-color:#CCCCCC; } div#comment-head{ border:dotted 1px #000000; display:block; width:520px; padding:5px; background-color:#CCCCCC; } div.comment-header{ padding:2px; padding-left:10px; background-color:#666666; border: outset 1px #000000; } div.comment-body{ padding:10px; padding-top:20px; padding-bottom:20px; background-color:#CCCCCC; border: outset 1px #000000; border-top:none; border-bottom:none; overflow-x:auto; overflow-y:visible; word-wrap:break-all; } a.comment-head-posted{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; } span.comment-head-user{ font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#CCCCCC; } span.comment-head-date{ position:absolute; right:25px; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#CCCCCC; } span.comment-body-text{ font-family:Arial, Helvetica, sans-serif; font-size:10px; } div#admin-login-header{ border:outset 1px #000000; display:block; padding:5px; background-color:#666666; } div#admin-login-body{ border:outset 1px #000000; border-top:none; border-bottom:none; display:block; padding:20px; background-color:#CCCCCC; } div#admin-login-footer{ border:outset 1px #000000; display:block; padding:5px; background-color:#666666; text-align:center; } div#admin-change-password-header{ border:outset 1px #000000; display:block; padding:5px; background-color:#666666; } div#admin-change-password-body{ border:outset 1px #000000; display:block; padding-left:20px; padding-right:20px; background-color:#666666; } div#admin-change-password-footer{ border:outset 1px #000000; display:block; padding:5px; background-color:#666666; text-align:center; } input.admin-change-password-input{ background-color:#333333; } span.admin-login-title-chars{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; } span.admin-login-title{ font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#FF9933; } span.admin-change-password-title{ font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#FF9933; } span.admin-login-form-headers{ font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#000000; } span.admin-change-password-form-headers{ font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#000000; } a.admin-login-link{ text-decoration:none; font-family:Arial, Helvetica, sans-serif; color:#FF9933; font-size:10px; } a.admin-login-link:hover{ color:#FFFFFF; } span.admin-option-text{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; } a.admin-option-link{ text-decoration:none; font-family:Arial, Helvetica, sans-serif; color:#FF9933; font-size:10px; font-weight:800; } a.admin-option-link:hover{ color:#FFFFFF; } div#admin-main-option{ border:solid 1px #000000; display:block; padding:10px; background-color:#666666; } a.admin-option-link-block{ position:absolute; left:120px; padding:10px; padding-top:20px; padding-bottom:20px; display:block; border:solid 1px #000000; text-decoration:none; font-family:Arial, Helvetica, sans-serif; color:#FF9933; font-size:10px; font-weight:800; width:418px; background-color:#666666; } a.admin-option-link-block:hover{ border:solid 1px #FF9933; background-color:#333333; color:#FFFFFF; } div#admin-main-menu{ border:solid 1px #000000; display:block; padding:10px; background-color:#333333; } a.admin-main-link{ text-decoration:none; font-family:Arial, Helvetica, sans-serif; color:#FF9933; font-size:10px; font-weight:800; } a.admin-main-link:hover{ color:#FFFFFF; } form#add-user{ border:solid 1px #000000; display:block; padding:10px; background-color:#333333; } span.admin-add-user-headers{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; font-weight:800; } span.error{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#FF0000; } span.change{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#FFFF66; } div#user-added{ border:solid 1px #000000; display:block; padding:10px; background-color:#333333; } span.admin-user-list-name{ display:block; width:295px; background-color:#CCCCCC; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#000000; } span.admin-style-list-name{ display:block; width:385px; background-color:#CCCCCC; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#000000; } span.admin-style-list-description{ display:block; width:483px; background-color:#CCCCCC; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#000000; } span.admin-entry-title{ display:block; width:389px; background-color:#CCCCCC; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#000000; } span.admin-entry-topic{ display:block; width:389px; background-color:#CCCCCC; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#000000; } span.admin-entry-user{ display:block; width:234px; background-color:#CCCCCC; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#000000; } span.admin-entry-posted{ position:absolute; left:300px; display:block; width:235px; background-color:#CCCCCC; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#000000; } a.admin-entry-list-edit{ position:absolute; left:455px; display:block; width:80px; background-color:#FF9933; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#333333; text-align:center; text-decoration:none; } a.admin-entry-list-edit:hover{ background-color:#666666; color:#CCCCCC; } a.admin-comment-post-edit{ display:block; width:234px; background-color:#FF9933; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#333333; text-align:center; text-decoration:none; } a.admin-comment-post-edit:hover{ background-color:#666666; color:#CCCCCC; } a.admin-comment-post-delete{ position:absolute; left:300px; display:block; width:235px; background-color:#FF9933; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#333333; text-align:center; text-decoration:none; } a.admin-comment-post-delete:hover{ background-color:#666666; color:#CCCCCC; } a.admin-entry-list-delete{ position:absolute; left:455px; display:block; width:80px; background-color:#FF9933; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#333333; text-align:center; text-decoration:none; } a.admin-entry-list-delete:hover{ background-color:#666666; color:#CCCCCC; } a.admin-user-list-edit{ position:absolute; left:361px; display:block; width:80px; background-color:#FF9933; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#333333; text-align:center; text-decoration:none; } a.admin-user-list-edit:hover{ background-color:#666666; color:#CCCCCC; } a.admin-install-style{ display:block; width:483px; background-color:#FF9933; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#333333; text-align:center; text-decoration:none; } a.admin-install-style:hover{ background-color:#666666; color:#CCCCCC; } a.admin-user-list-delete{ position:absolute; left:455px; display:block; width:80px; background-color:#FF9933; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#333333; text-align:center; text-decoration:none; } a.admin-user-list-delete:hover{ background-color:#666666; color:#CCCCCC; } span.admin-user-list-not-delete{ position:absolute; left:455px; display:block; width:80px; background-color:#666666; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; text-align:center; } a.admin-style-list-delete{ position:absolute; left:455px; display:block; width:80px; background-color:#FF9933; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#333333; text-align:center; text-decoration:none; } a.admin-style-list-delete:hover{ background-color:#666666; color:#CCCCCC; } span.admin-style-list-not-delete{ position:absolute; left:455px; display:block; width:80px; background-color:#666666; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; text-align:center; } a.admin-entry-list-comments{ display:block; width:483px; background-color:#FF9933; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#333333; text-decoration:none; } a.admin-entry-list-comments:hover{ background-color:#666666; color:#CCCCCC; } span.admin-entry-list-no-comments{ display:block; width:483px; background-color:#666666; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; text-decoration:none; } span.admin-entry-list-comment-count{ display:block; width:483px; background-color:#CCCCCC; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#000000; } span.admin-post-list-comment-user{ display:block; width:389px; background-color:#666666; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#FF9933; } span.admin-post-list-comment-body{ display:block; width:483px; height:100px; background-color:#CCCCCC; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#000000; overflow-y:scroll; overflow-x:auto; } span.admin-user-list-self{ position:absolute; left:455px; display:block; width:80px; background-color:#666666; border:solid 1px #000000; padding:5px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; text-align:center; text-decoration:none; } div#admin-user-split{ font-family:Arial, Helvetica, sans-serif; font-size:10px; font-weight:800; color:#FF9933; text-align:center; border:solid 1px #000000; display:block; padding:10px; background-color:#333333; } span.admin-edit-setup-headers{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; font-weight:800; } span.admin-edit-setup-note{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; } textarea.admin-setup-text-form{ border:dotted 1px #000000; background-color:#666666; font-family:Arial, Helvetica, sans-serif; color:#FF9933; font-size:10px; width:250px; height:40px; } textarea.admin-add-entry{ border:dotted 1px #000000; background-color:#666666; font-family:Arial, Helvetica, sans-serif; color:#FF9933; font-size:10px; width:470px; height:200px; } form#add-entry{ border:solid 1px #000000; display:block; padding:10px; background-color:#333333; } span.admin-add-entry-headers{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; font-weight:800; } ul.blog-morph{ list-style:none; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#FFFF66; font-weight:800; } textarea.admin-add-topic{ border:dotted 1px #000000; background-color:#666666; font-family:Arial, Helvetica, sans-serif; color:#FF9933; font-size:10px; width:300px; height:100px; } img.admin-option-icon{ width:66px; height:66px; border:none; } /* */ span.install-title{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; } div#install-main-header{ border:outset 1px #000000; display:block; padding:5px; background-color:#666666; } div#install-main-body{ border:outset 1px #000000; border-top:none; border-bottom:none; display:block; padding:20px; background-color:#CCCCCC; } div#install-main-footer{ border:outset 1px #000000; display:block; padding:5px; background-color:#666666; text-align:center; } form#install-setup{ border:solid 1px #000000; display:block; padding:10px; background-color:#333333; } span.installation-headers{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; font-weight:800; } textarea.install-textbox{ border:dotted 1px #000000; background-color:#666666; font-family:Arial, Helvetica, sans-serif; color:#FF9933; font-size:10px; width:400px; height:100px; } div#install-complete{ border:solid 1px #000000; display:block; padding:10px; background-color:#333333; } a.install-link{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#FF9933; text-decoration:none; } a.install-link:hover{ color:#CCCCCC; }t-family:Arial, Helvetica, sans-serif; font-size:10px; color:#FF0000; } span.change{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#FFFF66; } div#user-added{ border:solid 1px #000000; display:block; templates/default/html/000075500407710040771000000000001075663054700145275ustar00jml600005120001530templates/default/html/admin/000075500407710040771000000000001075663046200156135ustar00jml600005120001530templates/default/html/admin/change/000075500407710040771000000000001075663042600170405ustar00jml600005120001530templates/default/html/admin/change/edit-blog-active-changed.tmpl000064400407710040771000000003341075663041700244440ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog active changed!
templates/default/html/admin/change/edit-blog-attempts-changed.tmpl000064400407710040771000000003441075663042000250250ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog login attempts changed!
templates/default/html/admin/change/edit-blog-comment-default-changed.tmpl000064400407710040771000000003451075663042000262510ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Comment name default changed!
templates/default/html/admin/change/edit-blog-comment-delay-changed.tmpl000064400407710040771000000003361075663042200257250ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Comment delay changed!
templates/default/html/admin/change/edit-blog-comment-length-changed.tmpl000064400407710040771000000003371075663042200261110ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Comment length changed!
templates/default/html/admin/change/edit-blog-description-changed.tmpl000064400407710040771000000003411075663042300255070ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog description changed!
templates/default/html/admin/change/edit-blog-items-changed.tmpl000064400407710040771000000003441075663042400243110ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog items per page changed!
templates/default/html/admin/change/edit-blog-style-changed.tmpl000064400407710040771000000003331075663042500243270ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog style changed!
templates/default/html/admin/change/edit-blog-title-changed.tmpl000064400407710040771000000003331075663042600243110ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog title changed!
templates/default/html/admin/error/000075500407710040771000000000001075663045300167445ustar00jml600005120001530templates/default/html/admin/error/add-body-none.tmpl000064400407710040771000000003411075663042700222610ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No entry body was entered.
templates/default/html/admin/error/add-comments-invalid.tmpl000064400407710040771000000003541075663043000236360ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} A invalid comment option was entered.
templates/default/html/admin/error/add-description-none.tmpl000064400407710040771000000003421075663043000236420ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No description was entered.
templates/default/html/admin/error/add-display-exists.tmpl000064400407710040771000000003631075663043100233500ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Display name already exists in the database.
templates/default/html/admin/error/add-display-none.tmpl000064400407710040771000000003431075663043100227660ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No display name was entered.
templates/default/html/admin/error/add-display-too-long.tmpl000064400407710040771000000004231075663043200235650ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Display name is too long (special characters are converted into HTML codes).
templates/default/html/admin/error/add-level-invalid.tmpl000064400407710040771000000003351075663043200231210ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} User level is invalid.
templates/default/html/admin/error/add-level-none.tmpl000064400407710040771000000003411075663043300224300ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No user level was entered.
templates/default/html/admin/error/add-password-invalid.tmpl000064400407710040771000000004041075663043300236520ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Password is invalid (can only contain A-Z, a-z, 0-9, - or _).
templates/default/html/admin/error/add-password-none.tmpl000064400407710040771000000003371075663043400231710ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No password was entered.
templates/default/html/admin/error/add-password-too-long.tmpl000064400407710040771000000003341075663043400237650ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Password is too long.
templates/default/html/admin/error/add-repassword-not-match.tmpl000064400407710040771000000003361075663043500244530ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Passwords do not match.
templates/default/html/admin/error/add-title-none.tmpl000064400407710040771000000003341075663043500224460ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No title was entered.
templates/default/html/admin/error/add-topic-invalid.tmpl000064400407710040771000000003431075663043500231320ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} A invalid topic was entered.
templates/default/html/admin/error/add-username-exists.tmpl000064400407710040771000000003571075663043600235320ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Username already exists in the database.
templates/default/html/admin/error/add-username-invalid.tmpl000064400407710040771000000004041075663043600236320ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Username is invalid (can only contain A-Z, a-z, 0-9, - or _).
templates/default/html/admin/error/add-username-none.tmpl000064400407710040771000000003371075663043600231500ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No username was entered.
templates/default/html/admin/error/add-username-too-long.tmpl000064400407710040771000000003341075663043700237450ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Username is too long.
templates/default/html/admin/error/change-password-current-blank.tmpl000064400407710040771000000003361075663043700255000ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Current password blank.
templates/default/html/admin/error/change-password-current-incorrect.tmpl000064400407710040771000000003421075663044000263700ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Current password incorrect.
templates/default/html/admin/error/change-password-current-invalid.tmpl000064400407710040771000000003401075663044000260240ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Current password invalid.
templates/default/html/admin/error/change-password-current-too-long.tmpl000064400407710040771000000003411075663044000261350ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Current password too long.
templates/default/html/admin/error/change-password-new-blank.tmpl000064400407710040771000000003351075663044000246000ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} New password is blank.
templates/default/html/admin/error/change-password-new-invalid.tmpl000064400407710040771000000003371075663044100251420ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} New password is invalid.
templates/default/html/admin/error/change-password-new-not-match.tmpl000064400407710040771000000003431075663044100254030ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} New password does not match.
templates/default/html/admin/error/change-password-new-too-long.tmpl000064400407710040771000000003351075663044200252510ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} New Password too long.
templates/default/html/admin/error/edit-active-invalid.tmpl000064400407710040771000000003371075663044200234650ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Active state is invalid.
templates/default/html/admin/error/edit-blog-active-invalid.tmpl000064400407710040771000000003361075663044200244050ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog active is invalid.
templates/default/html/admin/error/edit-blog-active-unable-change.tmpl000064400407710040771000000003471075663044300254530ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog active is unable to change.
templates/default/html/admin/error/edit-blog-attempts-invalid.tmpl000064400407710040771000000003461075663044300247750ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog login attempts is invalid.
templates/default/html/admin/error/edit-blog-attempts-unable-change.tmpl000064400407710040771000000003571075663044400260430ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog login attempts is unable to change.
templates/default/html/admin/error/edit-blog-comment-default-unable-change.tmpl000064400407710040771000000003601075663044400272600ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Comment name default is unable to change.
templates/default/html/admin/error/edit-blog-comment-delay-invalid.tmpl000064400407710040771000000003451075663044400256720ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog comment delay is invalid.
templates/default/html/admin/error/edit-blog-comment-delay-unable-change.tmpl000064400407710040771000000003561075663044500267400ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog comment delay is unable to change.
templates/default/html/admin/error/edit-blog-comment-length-invalid.tmpl000064400407710040771000000003461075663044500260570ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog comment length is invalid.
templates/default/html/admin/error/edit-blog-comment-length-unable-change.tmpl000064400407710040771000000003571075663044600271250ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog comment length is unable to change.
templates/default/html/admin/error/edit-blog-description-unable-change.tmpl000064400407710040771000000003541075663044600265240ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog description is unable to change.
templates/default/html/admin/error/edit-blog-items-invalid.tmpl000064400407710040771000000003461075663044700242610ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog items per page is invalid.
templates/default/html/admin/error/edit-blog-items-unable-change.tmpl000064400407710040771000000003571075663045000253200ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog items per page is unable to change.
templates/default/html/admin/error/edit-blog-style-invalid.tmpl000064400407710040771000000003351075663045000242700ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog style is invalid.
templates/default/html/admin/error/edit-blog-style-not-exist.tmpl000064400407710040771000000003401075663045000245700ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog style doesn't exist.
templates/default/html/admin/error/edit-blog-style-unable-change.tmpl000064400407710040771000000003461075663045100253360ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog style is unable to change.
templates/default/html/admin/error/edit-blog-title-unable-change.tmpl000064400407710040771000000003461075663045200253200ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog title is unable to change.
templates/default/html/admin/error/edit-body-blank.tmpl000064400407710040771000000003251075663045200226060ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Body is blank.
templates/default/html/admin/error/edit-body-too-long.tmpl000064400407710040771000000003301075663045200232510ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Body is too long.
templates/default/html/admin/error/edit-email-invalid.tmpl000064400407710040771000000003311075663045300232750ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} E-Mail is invalid.
templates/default/html/admin/error/edit-email-too-long.tmpl000064400407710040771000000003321075663045300234060ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} E-Mail is too long.
templates/default/html/admin/error/edit-name-too-long.tmpl000064400407710040771000000003301075663045300232350ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Name is too long.
templates/default/html/admin/options/000075500407710040771000000000001075663046000173045ustar00jml600005120001530templates/default/html/admin/options/admin-add-entry.tmpl000064400407710040771000000007201075663045400231610ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Add Entry
Add an entry to the blog.
Add Entry
templates/default/html/admin/options/admin-add-style.tmpl000064400407710040771000000007201075663045400231600ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Add Style
Add a style to the system.
Add Style
templates/default/html/admin/options/admin-add-topic.tmpl000064400407710040771000000007201075663045500231370ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Add Topic
Add a topic to the system.
Add Topic
templates/default/html/admin/options/admin-add-user.tmpl000064400407710040771000000006771075663045500230120ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Add User
Add a user to the user system.
Add User
templates/default/html/admin/options/admin-comments-list.tmpl000064400407710040771000000007731075663045500241010ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Comments List
Manage comments visitors have posted.
Comments List
templates/default/html/admin/options/admin-edit-setup.tmpl000064400407710040771000000007661075663045600233710ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Edit Setup
Edit the style, page items, comments and state of the blog.
Edit Setup
templates/default/html/admin/options/admin-entry-list.tmpl000064400407710040771000000007501075663045600234110ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Entry List
Manage the current entries in the system.
Entry List
templates/default/html/admin/options/admin-main.tmpl000064400407710040771000000010201075663045600222120ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Admin Main Menu | Blog Main Page | Change Password

templates/default/html/admin/options/admin-style-list.tmpl000064400407710040771000000007441075663045700234140ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Style List
Manage the current styles in the system.
Style List
templates/default/html/admin/options/admin-topic-list.tmpl000064400407710040771000000007461075663045700233740ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Topic List
Manage the current topics in the system.
Topic List
templates/default/html/admin/options/admin-user-list.tmpl000064400407710040771000000007401075663046000232200ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} User List
Manage the current users in the system.
User List
templates/default/html/admin/admin-add-entry.tmpl000064400407710040771000000033311075663037200214660ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Title:
{TEMPLATE.entry-title-error}

Topic:
{TEMPLATE.entry-topic-error}

Content:
{TEMPLATE.entry-body-error}
To add images, links, code highlighting or to change font:

Allow Comments:
{TEMPLATE.entry-comments-error}


templates/default/html/admin/admin-add-topic.tmpl000064400407710040771000000013441075663037300214460ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Title:
{TEMPLATE.topic-title-error}

Description:
{TEMPLATE.topic-description-error}


templates/default/html/admin/admin-add-user.tmpl000064400407710040771000000030051075663037300213020ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Display Name:
{TEMPLATE.user-display-error}
Username:
{TEMPLATE.user-username-error}
Password:
{TEMPLATE.user-password-error}
Repeat Password:
{TEMPLATE.user-repassword-error}
User Level:
{TEMPLATE.user-level-error}


templates/default/html/admin/admin-added-entry.tmpl000064400407710040771000000004241075663037300220000ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Entry added!
templates/default/html/admin/admin-added-style.tmpl000064400407710040771000000004241075663037300217770ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Style added!
templates/default/html/admin/admin-added-topic.tmpl000064400407710040771000000004241075663037400217560ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Topic added!
templates/default/html/admin/admin-added-user.tmpl000064400407710040771000000004231075663037400216150ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
User added!
templates/default/html/admin/admin-change-password.tmpl000064400407710040771000000021621075663037500226700ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Change Password

Current Password:
{TEMPLATE.current-password-error}
New Password:
{TEMPLATE.new-password-error}
Retype New Password:
{TEMPLATE.renew-password-error}


templates/default/html/admin/admin-changed-password.tmpl000064400407710040771000000004311075663037500230310ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Password Changed!
templates/default/html/admin/admin-comments-blocked-post-list.tmpl000064400407710040771000000014321075663037500247640ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Unblock IP Posted by: {TEMPLATE.post-user-name} ({TEMPLATE.post-user-email}) {TEMPLATE.post-body} Delete Edit

templates/default/html/admin/admin-comments-entry-list.tmpl000064400407710040771000000007171075663037600235450ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
{TEMPLATE.entry-title} {TEMPLATE.entry-comments} Comment(s)

templates/default/html/admin/admin-comments-post-list.tmpl000064400407710040771000000014261075663037600233670ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Block IP Posted by: {TEMPLATE.post-user-name} ({TEMPLATE.post-user-email}) {TEMPLATE.post-body} Delete Edit

templates/default/html/admin/admin-delete-comment.tmpl000064400407710040771000000007431075663037700225120ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Delete comment from the database?


templates/default/html/admin/admin-delete-entry.tmpl000064400407710040771000000010401075663037700222000ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Delete from the database?


templates/default/html/admin/admin-delete-style.tmpl000064400407710040771000000010401075663040000221620ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Delete from the database?


templates/default/html/admin/admin-delete-topic.tmpl000064400407710040771000000014351075663040000221500ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Delete from the database?

All current topics set to will be set to .


templates/default/html/admin/admin-delete-user.tmpl000064400407710040771000000013451075663040100220110ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Delete and ALL their entries/comments from the database?

consider de-activating user account in edit user.


templates/default/html/admin/admin-deleted-comment.tmpl000064400407710040771000000004301075663040100226330ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Comment deleted!
templates/default/html/admin/admin-deleted-entry.tmpl000064400407710040771000000004261075663040200223400ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Entry deleted!
templates/default/html/admin/admin-deleted-style.tmpl000064400407710040771000000004261075663040200223370ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Style deleted!
templates/default/html/admin/admin-deleted-topic.tmpl000064400407710040771000000004261075663040300223160ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Topic deleted!
templates/default/html/admin/admin-deleted-user.tmpl000064400407710040771000000004251075663040300221550ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
User deleted!
templates/default/html/admin/admin-edit-comment.tmpl000064400407710040771000000017311075663040400221620ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Name:
{TEMPLATE.comment-name-error}

E-mail:
{TEMPLATE.comment-email-error}

Comment Body:
{TEMPLATE.comment-body-error}


templates/default/html/admin/admin-edit-entry.tmpl000064400407710040771000000033651075663040400216660ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Title:
{TEMPLATE.entry-title-error}

Topic:
{TEMPLATE.entry-topic-error}

Content:
{TEMPLATE.entry-body-error}
To add images, links, code highlighting or to change font:

Allow Comments:
{TEMPLATE.entry-comments-error}


templates/default/html/admin/admin-edit-setup.tmpl000064400407710040771000000116561075663040500216700ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Blog Active:
{TEMPLATE.setup-blog-active-error}
Note: If the blog is set to 'off' then the blog will be disabled.

Blog Title:
{TEMPLATE.setup-blog-title-error}
Note: The blog title appears on every page of the site.

Blog Description:
{TEMPLATE.setup-blog-description-error}
Note: The description like the title appears on every page of the site, this also gives your users an insight to your blog's content.

Max Admin Login Attempts:
{TEMPLATE.setup-login-attempts-error}
Note: The default comment name is the name set to users who post comments who opt to remain anonymous.

Default Comment Name:
{TEMPLATE.setup-comment-default-error}
Note: The default comment name is the name set to users who post comments who opt to remain anonymous.

Comment Max length:
{TEMPLATE.setup-comment-length-error}
Note: The max character length of comments that users are allowed to post, warning switching this off may cause increased page load time.

Comment post delay time:
{TEMPLATE.setup-comment-delay-error}
Note: Turning delay time off can leave the blog vulnerable to spamming.

Items per page:
{TEMPLATE.setup-items-page-error}
Note: The fewer items per page means reduced load time, this is how many comments and entries will be displayed each page.

Active Style:
{TEMPLATE.setup-active-style-error}
Note: This sets the blog's overall style and look.


templates/default/html/admin/admin-edit-topic.tmpl000064400407710040771000000014121075663040500216330ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Title:
{TEMPLATE.topic-title-error}

Description:
{TEMPLATE.topic-description-error}


="admin-add-entry-headers">Title:
{TEMPLATE.topic-title-error}

Description:templates/default/html/admin/admin-edit-user.tmpl000064400407710040771000000023211075663040600214740ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Display Name:
{TEMPLATE.user-display-error}
User level:
{TEMPLATE.user-level-error}
Active:
{TEMPLATE.user-active-error}


templates/default/html/admin/admin-edited-comment.tmpl000064400407710040771000000004271075663040600224760ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Comment edited!
templates/default/html/admin/admin-edited-entry.tmpl000064400407710040771000000004251075663040700221740ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Entry edited!
templates/default/html/admin/admin-edited-topic.tmpl000064400407710040771000000004251075663040700221510ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Topic edited!
templates/default/html/admin/admin-edited-user.tmpl000064400407710040771000000004241075663040700220100ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
User edited!
templates/default/html/admin/admin-entry-list.tmpl000064400407710040771000000014021075663040700217050ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Edit Title : {TEMPLATE.entry-title} Delete Topic : {TEMPLATE.entry-topic} Posted : {TEMPLATE.entry-posted} User : {TEMPLATE.entry-user}

templates/default/html/admin/admin-install-style.tmpl000064400407710040771000000005641075663041000224010ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Install "{TEMPLATE.style-name}" style

templates/default/html/admin/admin-logged-in.tmpl000064400407710040771000000015021075663041000214330ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. Template keys: adminname - adminoptions - is assigned to the page title tag in the header {/COMMENT}
Welcome , to logout please click .
{TEMPLATE.adminoptions}
admin-login-title-chars">Welcome {TEMPLATE.adminname}, to logout please click here.templates/default/html/admin/admin-login.tmpl000064400407710040771000000020021075663041100206730ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
[-]






templates/default/html/admin/admin-no-comments-entry-list.tmpl000064400407710040771000000005651075663041200241470ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
{TEMPLATE.entry-title} No Comments

templates/default/html/admin/admin-style-list-not-delete.tmpl000064400407710040771000000007321075663041200237430ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Cannot delete Title : {TEMPLATE.style-title} Description : {TEMPLATE.style-description}

templates/default/html/admin/admin-style-list.tmpl000064400407710040771000000010151075663041300217010ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Delete Title : {TEMPLATE.style-title} Description : {TEMPLATE.style-description}

templates/default/html/admin/admin-topic-list-not-delete.tmpl000064400407710040771000000007361075663041400237270ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Edit Cannot delete {TEMPLATE.topic-title}

templates/default/html/admin/admin-topic-list.tmpl000064400407710040771000000010211075663041500216560ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Edit Delete {TEMPLATE.topic-title}

templates/default/html/admin/admin-user-list-self.tmpl000064400407710040771000000007221075663041500224540ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Edit Cannot Delete {TEMPLATE.useradmin}

templates/default/html/admin/admin-user-list.tmpl000064400407710040771000000010071075663041600215230ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Edit Delete {TEMPLATE.useradmin}

templates/default/html/admin/admin-user-split.tmpl000064400407710040771000000003571075663041600217120ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
{TEMPLATE.splitpages}
templates/default/html/admin/style-option.tmpl000064400407710040771000000004041075663046000211530ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} templates/default/html/admin/topic-option.tmpl000064400407710040771000000004041075663046200211330ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} templates/default/html/error/000075500407710040771000000000001075663052600156555ustar00jml600005120001530templates/default/html/error/add-entry-fail.tmpl000064400407710040771000000003101075663047000213430ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Could NOT add the entry to the database!templates/default/html/error/add-topic-fail.tmpl000064400407710040771000000003101075663047100213210ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Could NOT add the topic to the database!templates/default/html/error/add-user-fail.tmpl000064400407710040771000000003071075663047200211700ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Could NOT add the user to the database!templates/default/html/error/already-blocked-ip.tmpl000064400407710040771000000002631075663047200222040ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Already blocked IP.templates/default/html/error/atleast-one-topic.tmpl000064400407710040771000000003101075663047300220760ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} There must be atleast 1 topic available.templates/default/html/error/blog-already-installed.tmpl000064400407710040771000000002761075663047500231020ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} The blog is already installed.templates/default/html/error/blog-disabled.tmpl000064400407710040771000000002651075663047600212520ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} The Blog is disabled.templates/default/html/error/cannot-delete-self.tmpl000064400407710040771000000002631075663047600222310ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Cannot delete self.templates/default/html/error/cannot-delete-style.tmpl000064400407710040771000000002641075663047600224410ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Cannot delete style.templates/default/html/error/comment-body-long.tmpl000064400407710040771000000002721075663047700221130ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Comment input is too long.templates/default/html/error/comment-body-none.tmpl000064400407710040771000000002701075663050000220740ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Comment cannot be blank.templates/default/html/error/comment-email-invalid.tmpl000064400407710040771000000002701075663050000227150ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} E-Mail input is invalid.templates/default/html/error/comment-email-long.tmpl000064400407710040771000000002711075663050400222330ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} E-Mail input is too long.templates/default/html/error/comment-name-long.tmpl000064400407710040771000000002671075663050500220720ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Name input is too long.templates/default/html/error/comment-post-delay.tmpl000064400407710040771000000003201075663050600222650ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} You must wait 1 minute between posting comments.templates/default/html/error/comment-post-insert.tmpl000064400407710040771000000002661075663050600225040ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Could not add comment.templates/default/html/error/could-not-add-style.tmpl000064400407710040771000000003001075663050700223330ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Could not add style to database.templates/default/html/error/database-connect.tmpl000064400407710040771000000003211075663051000217330ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Could not establish a connection to the database.templates/default/html/error/database-query.tmpl000064400407710040771000000002751075663051100214600ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Could not query the database.templates/default/html/error/delete-entry-fail.tmpl000064400407710040771000000003151075663051100220560ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Could NOT delete the entry from the database.templates/default/html/error/delete-style-fail.tmpl000064400407710040771000000002621075663051100220560ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Delete style fail.templates/default/html/error/delete-topic-fail.tmpl000064400407710040771000000003151075663051200220340ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Could NOT delete the topic from the database.templates/default/html/error/delete-user-fail.tmpl000064400407710040771000000003141075663051200216730ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Could NOT delete the user from the database.templates/default/html/error/directory-invalid.tmpl000064400407710040771000000002621075663051300221770ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Invalid directory.templates/default/html/error/edit-comment-fail.tmpl000064400407710040771000000002671075663051300220520ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Unable to edit comment.templates/default/html/error/edit-entry-fail.tmpl000064400407710040771000000003111075663051300215370ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Could NOT edit the entry in the database.templates/default/html/error/edit-password-fail.tmpl000064400407710040771000000002751075663051400222520ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Could NOT edit your password.templates/default/html/error/edit-topic-fail.tmpl000064400407710040771000000003111075663051400215150ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Could NOT edit the topic in the database.templates/default/html/error/edit-user-fail.tmpl000064400407710040771000000003101075663051500213550ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Could NOT edit the user in the database.templates/default/html/error/input-invalid.tmpl000064400407710040771000000002631075663051500213350ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Invalid page input.templates/default/html/error/input-no-comments.tmpl000064400407710040771000000002641075663051500221470ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No comments allowed.templates/default/html/error/input-none.tmpl000064400407710040771000000002561075663051600206510ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No page input.templates/default/html/error/input-not-exist.tmpl000064400407710040771000000003041075663051600216360ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Input not a valid entry in database.templates/default/html/error/invalid-file-structure.tmpl000064400407710040771000000002671075663051700231610ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Invalid file structure.templates/default/html/error/invalid-version.tmpl000064400407710040771000000002661075663051700216700ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Invalid style version.templates/default/html/error/ip-is-blocked.tmpl000064400407710040771000000003031075663052000211630ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Your IP is blocked from commenting.templates/default/html/error/ip-not-blocked.tmpl000064400407710040771000000002571075663052000213600ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} IP not blocked.templates/default/html/error/login-attempts.tmpl000064400407710040771000000003531075663052000215150ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} You have made 5 login attempts, you may not make any more for this session.templates/default/html/error/no-comments-found.tmpl000064400407710040771000000002621075663052100221160ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No comments found.templates/default/html/error/no-entries.tmpl000064400407710040771000000002601075663052200206300ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No entries made.templates/default/html/error/no-entry-found.tmpl000064400407710040771000000002611075663052200214320ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No entries found.templates/default/html/error/no-style-found.tmpl000064400407710040771000000002601075663052300214310ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No styles found.templates/default/html/error/no-styles-install.tmpl000064400407710040771000000002651075663052300221540ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No styles to install.templates/default/html/error/no-topic-found.tmpl000064400407710040771000000002571075663052300214150ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No topic found.templates/default/html/error/no-users-found.tmpl000064400407710040771000000002571075663052400214410ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} No users found.templates/default/html/error/not-logged-in.tmpl000064400407710040771000000003141075663052500212130ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} You cannot log out as you are not logged in!templates/default/html/error/not-logged-invalid-level.tmpl000064400407710040771000000003401075663052500233370ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Either not logged in or user does not have a valid access level.templates/default/html/error/not-setup.tmpl000064400407710040771000000003201075663052600205040ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blog has not been setup, to setup go to /installtemplates/default/html/error/requires-active-master-admin.tmpl000064400407710040771000000003131075663052600242370ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Requires atleast Master Admin at ALL times.templates/default/html/error/style-already-added.tmpl000064400407710040771000000002721075663052600223720ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Style already in database.templates/default/html/install/000075500407710040771000000000001075663054400161725ustar00jml600005120001530templates/default/html/install/error/000075500407710040771000000000001075663054000173175ustar00jml600005120001530templates/default/html/install/error/blank-admin-name.tmpl000064400407710040771000000003301075663052700233110ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blank admin name.
templates/default/html/install/error/blank-admin-password.tmpl000064400407710040771000000003341075663053000242310ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blank admin password.
templates/default/html/install/error/blank-admin-username.tmpl000064400407710040771000000003341075663053000242060ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blank admin username.
templates/default/html/install/error/blank-blog-description.tmpl000064400407710040771000000003361075663053100245500ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blank blog description.
templates/default/html/install/error/blank-blog-name.tmpl000064400407710040771000000003271075663053200231460ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Blank blog name.
templates/default/html/install/error/invalid-admin-password.tmpl000064400407710040771000000003361075663053200245740ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Invalid admin password.
templates/default/html/install/error/invalid-admin-username.tmpl000064400407710040771000000003361075663053400245530ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Invalid admin username.
templates/default/html/install/error/invalid-dbms.tmpl000064400407710040771000000003241075663053500225710ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Invalid DBMS.
templates/default/html/install/error/invalid-prefix.tmpl000064400407710040771000000003261075663053500231430ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Invalid Prefix.
templates/default/html/install/error/not-connected.tmpl000064400407710040771000000003621075663053600227630ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Unable to connect with the entered details.
templates/default/html/install/error/not-match-admin-password.tmpl000064400407710040771000000003361075663053600250440ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Passwords do not match.
templates/default/html/install/error/too-long-admin-name.tmpl000064400407710040771000000003331075663053700237640ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Admin name too long.
templates/default/html/install/error/too-long-admin-password.tmpl000064400407710040771000000003371075663053700247120ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Admin password too long.
templates/default/html/install/error/too-long-admin-username.tmpl000064400407710040771000000003371075663054000246610ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT} Admin username too long.
templates/default/html/install/install-main.tmpl000074400407710040771000000011461075272514400214600ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. Template keys: adminname - adminoptions - is assigned to the page title tag in the header {/COMMENT}
M00se Bl0g Installation :: Step {TEMPLATE.install-step}
{TEMPLATE.install-body}
templates/default/html/install/install-step-one.tmpl000074400407710040771000000031241075741553500222710ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
{TEMPLATE.database-connection-error} Database Host:


Database Username:


Database Password:


Database Name:


Database Prefix:
{TEMPLATE.database-prefix-error}

DBMS:
{TEMPLATE.database-dbms-error}


templates/default/html/install/install-step-three-complete.tmpl000064400407710040771000000011571075663054300244250ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Congratulations you have successfully installed M00se Bl0g, you can now delete the install folder.

Thank you for choosing M00se Bl0g, for all updates and additions to the system keep updated by visiting M00seBl0g.

templates/default/html/install/install-step-three-download.tmpl000064400407710040771000000020271075663054300244210ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Congratulations you have successfully setup M00se Bl0g, to complete the installation please download the config file below (right click on the link and select save as) and upload it to your web folder located in "/include".

Config File : Download

Thank you for choosing M00se Bl0g, for all updates and additions to the system keep updated by visiting M00seBl0g.

templates/default/html/install/install-step-two.tmpl000074400407710040771000000032551075741555200223250ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. {/COMMENT}
Blog Name:
{TEMPLATE.blog-name-error}

Blog Description:
{TEMPLATE.blog-description-error}

Master Admin Display Name:
{TEMPLATE.admin-name-error}

Master Admin Username:
{TEMPLATE.admin-username-error}

Master Admin Password:
{TEMPLATE.admin-password-error}

Master Admin Repeat Password:
{TEMPLATE.admin-repassword-error}


templates/default/html/comment-article.tmpl000064400407710040771000000020141075663046300205020ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. Template keys: entryid - entrytitle - is assigned to the page title tag in the header entrytopic - is assigned to the page title tag in the header entryposted - is assigned to the div tag of id main, which acts as the page's content entrycontent - is assigned to the style sheet href, which is the set template directory entryuser - is assigned to the style sheet href, which is the set template directory entrycount - {/COMMENT}
Comment posted by : {TEMPLATE.commentuser} {TEMPLATE.commentposted}
{TEMPLATE.commentcontent}

templates/default/html/entry-article-no-comments.tmpl000064400407710040771000000022411075663046400224410ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. Template keys: entryid - entrytitle - is assigned to the page title tag in the header entrytopic - is assigned to the page title tag in the header entryposted - is assigned to the div tag of id main, which acts as the page's content entrycontent - is assigned to the style sheet href, which is the set template directory entryuser - is assigned to the style sheet href, which is the set template directory entrycount - {/COMMENT}
{TEMPLATE.entrytitle} posted by {TEMPLATE.entryuser} {TEMPLATE.entryposted}
{TEMPLATE.entrycontent}

Comments disabled for this entry.

templates/default/html/entry-article.tmpl000064400407710040771000000033451075663046500202130ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. Template keys: entryid - entrytitle - is assigned to the page title tag in the header entrytopic - is assigned to the page title tag in the header entryposted - is assigned to the div tag of id main, which acts as the page's content entrycontent - is assigned to the style sheet href, which is the set template directory entryuser - is assigned to the style sheet href, which is the set template directory entrycount - {/COMMENT}
{TEMPLATE.entrytitle} posted by {TEMPLATE.entryuser} {TEMPLATE.entryposted}
{TEMPLATE.entrycontent}

Post Comment :

Name (Optional):

E-Mail (Optional):

Comment :



templates/default/html/entry-no-comments.tmpl000064400407710040771000000022531075663046500210240ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. Template keys: entryid - entrytitle - is assigned to the page title tag in the header entrytopic - is assigned to the page title tag in the header entryposted - is assigned to the div tag of id main, which acts as the page's content entrycontent - is assigned to the style sheet href, which is the set template directory entryuser - is assigned to the style sheet href, which is the set template directory entrycount - {/COMMENT}
{TEMPLATE.entrytitle} posted by {TEMPLATE.entryuser} {TEMPLATE.entryposted}
{TEMPLATE.entrycontent}
Comments Disabled

templates/default/html/entry.tmpl000064400407710040771000000025241075663046700165720ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. Template keys: entryid - entrytitle - is assigned to the page title tag in the header entrytopic - is assigned to the page title tag in the header entryposted - is assigned to the div tag of id main, which acts as the page's content entrycontent - is assigned to the style sheet href, which is the set template directory entryuser - is assigned to the style sheet href, which is the set template directory entrycount - {/COMMENT}
{TEMPLATE.entrytitle} posted by {TEMPLATE.entryuser} {TEMPLATE.entryposted}
{TEMPLATE.entrycontent}
Comments {TEMPLATE.entrycount} Post Comment

templates/default/html/error.tmpl000064400407710040771000000005001075663052700165470ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. Template keys: errorbody - is assigned to the page title tag in the header {/COMMENT}
Error : {TEMPLATE.errorbody}
templates/default/html/link.tmpl000064400407710040771000000004631075663054400163620ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. Template keys: splitpages - is assigned to the page title tag in the header {/COMMENT} {TEMPLATE.linktext} templates/default/html/main.tmpl000064400407710040771000000034621075663054500163540ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. Template keys: pagetitle - is assigned to the page title tag in the header pagedescription - directory - is assigned to the style sheet href, which is the set template directory contents - is assigned to the div tag of id main, which acts as the page's content pageversion - {/COMMENT} {TEMPLATE.pagetitle} : {TEMPLATE.pagedescription}
{TEMPLATE.contents}
templates/default/html/page-split.tmpl000064400407710040771000000004711075663054600174730ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. Template keys: splitpages - is assigned to the page title tag in the header {/COMMENT}
{TEMPLATE.splitpages}
templates/default/html/plainlink.tmpl000064400407710040771000000005071075663054600174070ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. Template keys: splitpages - is assigned to the page title tag in the header {/COMMENT} {TEMPLATE.linktext} templates/default/html/plaintext.tmpl000064400407710040771000000004171075663054700174370ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. Template keys: splitpages - is assigned to the page title tag in the header {/COMMENT} {TEMPLATE.plaintext} templates/default/html/text.tmpl000064400407710040771000000004161075663054700164120ustar00jml600005120001530{COMMENT/} Template Description: This page is the main template of the whole site, it creates the page with the standard XHTML tags. Template keys: splitpages - is assigned to the page title tag in the header {/COMMENT} {TEMPLATE.plaintext} templates/default/images/000075500407710040771000000000001075663062000150205ustar00jml600005120001530templates/default/images/admin-icons/000075500407710040771000000000001075663062300172245ustar00jml600005120001530templates/default/images/admin-icons/add-entry.png000064400407710040771000000037121075663055200216250ustar00jml600005120001530PNG  IHDRBBl6sBITO pHYs  ~%tEXtSoftwareMacromedia Fireworks MX 2004vtEXtCreation Time02/06/08!IDATxZKkTKS3h(2`PA7".+ֿEW?p!+qA<HtΫ255grs9SCM~U>|߿m\Q9眵iO.djn[U 8(Ns .8p` =ze]_d`l:e[}< ꄭ'EBJY;;;EQ;v۝NF?.bqq1I`dsSCJ( CJxzÇ爸V Xiv;IVj8X'\>rXY ~Jj.,,ڟ?Wnll9rdTN#x4IhC"LTFĹͣG&)'IAGOZϭN'>ª4'NXkxH,K$з|*po94?p."~ $*ʩ*oGŷ kJHs<$GD]b)oPڍt= =e+2/s<*9ྨGj"VXL(l(iW2yR%huἽR?DfdE-X  %v֍HeBB0T~l $z 9H4B*?8EXl4H*ub1D!k8(r6èL06̔JN~(6qE#R86نK?$!RёJ^NW T2XE~p> [1@+DmԭGHo( ,ؠ3U7 J(>]0Tݙ<*!5 6tyYRBkRaˋ:aObJbf|[,9;bCHiF= xCYLՎ mu#pb"?Lz`;{ҥyiD, }ddD ڪOc̏?( yvU%ycT=<>AeYfYNׯ_2(2B^HUSGIsjr)J1սKYG,nݺ]v̙4MU_5(sD s/_,//_xѾ{nkkΝ;x)?|Gk:{"jHessy+WfffeDRIENDB`templates/default/images/admin-icons/add-style.png000064400407710040771000000073341075663055200216300ustar00jml600005120001530PNG  IHDRBBl6sBITO pHYs  ~%tEXtSoftwareMacromedia Fireworks MX 2004vtEXtCreation Time02/06/08!,IDATxZocy9gx)R.BQZdƨH#hnї-⇾}h?@-4H]NEjhZqPxхs>9"993o.]YYB X^^?88YiiRιxBZ9:Qqic̲X,v֭鶶3a^pX;/RK2xz.~*LB ES۶keYov,l6[(>˲t]g Q416!Lq"/oJD Rdƻ54?#yWWc1Ơ~>E4 >cqgш++Bd17ofx\dIO `>RLz<9B|>H@  A Z$z=|%1t2tP(ZK)1Rb6z뮡O=F4 ǃ9PPhbEr1 c `V}zY|1`i4MIXH}99E ni׫`Q3>Og&R6D# p-PR,H0$PJGDU006zI4$*6]יqJE~z~EI!%1+ByA'iN;u1hXIt]Z3<޽%Y]}"J_D(GzNm4tnEs ]IZ(y% ):Øz!`QF_\5d{@8mnY!DD5<.Vi\*$v^jQ M}7g>ɟ7oTwÆfFB xn @ ^"T*-,,5\ۓͰʏ~{zOt:F3!m&^R$ehxAi?w|rj0z}h@/EaYlL-Oį +lԽ@O/-)Sk'~?ydܶ5JBW^I?Y:{q۾`z_LTIJM731=X"t jT?[>6L`~LMMMEQ = hXC ζmtipA),+---9sr%hɶgEn:m:,w F(LOO.Ǖ ㊃9XXG mUE}嗻S:g"w&oN&eSSS^ Lp`fH\ \>WoJǏv? Bˍv9iH:|H?@(s&kh9>>f@ؾ5o& !Ūѿi 9kF*',6&E4Ak |Ɔ}R3cntk"B1,~/_6K@GO+SS`;/û]AB8e6NٞoOD;48_dx UERd.6#uGuċSaWU|sssyy^)'7^x&d$fZy=УC##L&5V"yBTA#I+\ i^莜m7*PG܋/b0Dƫ/TMJ>xAS, ض]T!`* @|b}pgDFĉsh ϳ,!drr͛W* uV|6Kf4LJ1,>UK ;vvg2d2 Hf`9Ic_?k.? xQRF:'vDa}x9TZ21hu1/u9tnnKkAkiO>=.E;_IOs_6J{RT8&[ 4Çb + 4WVVj{3_yjw&?Sgk'INe2\ɬJWJ,]L?Xn_3ga\Ǐ>[;UHSE9.a/ -,^b5iiZX<.]Iҿ{#['?^8xH[,蠔axq|>t:"&@ՑM0HPr9/b?>VP xrG?ܹC8Ƹ|rp-E+{|ozjӺE&,9/dNr¥p-XP/g4)j imOD" CpGGGŷTJ)~zzWQW f(iM@ 9q]z8 J/2C:qS+tk( mdrCyN-("O(MN@Ɗ-zR}ຶ4y7'\L^TNkDe՚4mU2QQz^^ ݕX Ho%uCO\rmf/?HF[q8G31,W=8u@-tE@ eYj\ڂGh0^?`hv`XZ$!ʛw&%/V-[T^TFFF۷oQN^ߨ>qP77|S{W 4V $!F^p333ѣGRw;VW E5D>cwލD"ng̹=5y;_cb={fnoukm$Zk19GOOnd"ic <62'(2ndE$I&&&Ν;wԩѾ޸q5cH-RYuʺx$`i #!I&MN$+W&&&sj7o&I255E"2 RZKHRoz./P0n{zn8ssnjj k"2SzEZVE2O8}Hʱ35JFJTID\^^ىZÇIKDTO֏KF4'H8MdWaڑ#GC4 29iOH *a|DZbD~.q,')Ȳ*oޕ2I +ZXf $sK $nIQ3AS"8FTyۀeQ#8D*PEd!䰑٦H]F+)/_,aK}aB 7 $ ps/_4N9<89(4_~(oZܽ{ҥK!lh3\T,݋ZU{d;ν{Tj4Mc߾ÀAɒ+GK(ވB^~disΕ%|e1IDc|àڑ# 6yl:-54z-/҆uCij08ȣTz8`AEY{~VSBōȉHܖUAW(xWTU)ۘ?bꤐW)N`pQ^l˿nC:H2t^U7-N"Ji>MprvlIփsCJH! .`IaZ)0ϡ`*U!PPQ2d”)oJȭxg`4>O.| UCUPAgvM\]˟}> MZeH%0sx+_U (peeW3\$MЉ'`5$WlL0+Ŀ{8o+{[5޿f@uޏLo n-<>P!`EQUADUsy]i|sD],he9/ccǖΜ9322B_f88iIENDB`templates/default/images/admin-icons/add-user.png000064400407710040771000000057561075663055300214550ustar00jml600005120001530PNG  IHDRBBl6sBITO pHYs  ~%tEXtSoftwareMacromedia Fireworks MX 2004vtEXtCreation Time02/06/08! >IDATxZo.W+QLєI-UNqQKr* Hz\rp)'ˆSJbʲX%_&qfdog}޿RJjꫯ677MdycQJJWh!c H Ơ!1ιydܹsGQ>znYVww7kT’p ^˧U c[IT0%_.=۷o|L&tqqqO>t:mhH16!,q˫(o*d VOPj}iu+W!4<qA1M4M0bX,3]FlW;F(X!(=SҥKj՘]\\(9x`]>! `ʭa!m{5-˒&AI* =F)L p偁J)x@ÒrqF>WJ1A.W\K(JB۶766KR,pa.I VާD@1.$H}!̎9e ae7J(*P+%ṮaRc0lUa8T"+ !RaMq006m` ta\)XR@GG2ǰbu4fEa+i.;غ;;;KKK|@¡[:}ҜU &YVoݺ[كݙޘStxPvq۶CD X$C%րRzͥo Z?ɾT7%co u?o/ Μ99W{zt͖>un<15` &cfT U/WxPc{;dɀCKyqB@/\߯p%H}kk\ޟM9lE6B ^ n?.cʓYI獱1۶ ab92n=]99wlZ t<9ڝ{ݓm|*;!{g>OL^3",%c~+=-U=r 3%g';MtʊA14*LP(?;޾N$bbkk+ "`3 T*y;{I4YjZ`)/VƗ+HBNL ^:n ðbW(19;Ĉro ؽv%WDA<$+DNh{˿V.}Bzc"fp#xD].}FEIBU'ag/[tTMq4D:]b KP>>>>N#NBu,GW^}bb" 1F!Z$@e-L(֔D XN522=uVtzzOIQ z([& VB@*4m+ СGyI%DC'4i%Z$!$'Ts}%1jdB)zFAZ,aY' C(eY\OVep2Q-x C:O&R he-JQZ4P@/lnnu]:E u.S^;ٳÎ(sX@Ro 5a- 699l6[(>C!:k^ӡh+O?4H0!D*|T>/[XE>B*AhM#eF,˂JkSDQN8~H V⋚zME0:m]xX- =-؂ir0p8|̙@ @Rٳg $ c 0( X”i9-L&S^xYE]_{5BHGGra ˲,˒$\.%m(P88lgZWzB!K/TV񹹹`0HsOg l}X 'a{&x>DjԔa###؇}%6SPJNm!̸]VOf^vvGsr$EQh805=s a@)˹\[!C_~߳ xG\jrr2fKO;֮ĉ zy!U# ؓtCΩ +=Eg<j,|bs]L~0S}O J<-,zr6 Ay"!T*&''nx @OID[tqw5(l ↁwOFҾW1-)ԄBH6zjz5~u]I,9˒GNk![jB̡e8x<~zWѮcCXrwR:gTZl ⠳sKת3R%{<ͧJKF#VUbFGeWJ?+&6s0:1blK306ώw=u]Wr~BEPPݭ[\El6{GcAu-̐y2|>o3Wj;} {zo%_6 ُ1Υwr:B:BȲƞݱ]~f &0Lʇ!i...NMMUsѰן<96j֛^ PCZ[[d6-˂ P( dYfh֝4LYJ#fX_1M?3?#ŏUHW=4NdU55%G'}lzZ7Pj팎a4VwG;F{z;ڞ]ڸ]A0 cvv >Tn k%KN2|Nź#Z,^ĽJÇgff+=n틇q#C8꿞_P-Qv !Z70l6dժ B0==Sڅ`_\]ޯ̥,>wo$2;-Ń RKZbVKdX]K5M ;տDXlԬׯ~^f!+G:8*V%;ʺS{0 c~~>\ )z4, wm2!h5-זrUM$wzꓝ\0{7M۳g(s<@8: 0SBDQ4 cnn.\7[ êysbZhGmWws.cChrq`F{s{tcbXy:FG*tt疔jZ;_\XwplXww7b~#i՟w*ryyyk<2bAH*zRg\ޑ6ƈAzLr,T$IT" \%!fE΃N@O&򙪫?688*.+N.дdZLSDnų&U~?&p9_~(޽kppFhkrDbTՐ`g/_7Rk.gMHƢˆGiwܖqV(/_JlѤP(Jf޸nYEd&B-p1W\`tG3/~5_Jwo=-//*,a8l88'zUEv뺾\ ύ~mN jEؖ{٩ads {jz޽R.5x<'Oo 5xh[6h~;;?Y"$ i&BOOfw rO+2n6  [[hpW>ġ(J4EYz_17}{,T2_[WW׶$p0UGN@ k뽥?,bϟ ?4ӵ僋 %/IeĶ@rg}aE[3, yRyj|;eoG?]1]iQsl@W 5mEf"ˆj†&`_Oߢ]u(쪣Ƅ@͖ !cDBP6-zMGa=@_O{sws<-0`@TU\;7GB'P !ib*@ <|69GH؟eadbV-=<{ i9ڤ*6 =H` ul0 4MS4J n\+K zU&(ŁԩSFS#aqVڶ? !>}Z^^^6 C4˲4M4 !D)eW {PJB IiزH$rȑ`0xO8af ZQB Ɉs)Ǫ `/YC$6ld2e544kHR]{=˲ѨcNA4M O)fWDnP_(`=bYZZoaZP)hc0Ƽaa|>ϧE4fsHQ4M---Pth4z޽QrTL"f~eOenn>%!l@Bay91;7WWWWQQ5Eb8455!581Ĕm۶$<C | !OGl=vm { 'fWVΝ;788hSJ(Z\\{zz C=1]Y2hUΜ9s'j57R7(jBhWշwT~8LBȖ-[4qP#It$ϭ,n~dXSJmuݲ,`l"K {5Nn`^!58i"5Np·/qPLYB!׊G-{ā[CuJq$_p;8#5Q]ڡ4A::ƍE*?7eaT9Z`0f9W`q"IAx]bY]*6q/JF)ݻ˥L7EON]LP қB-hwLTۓ˅B ÈD"@@X_r%S5bxЛ pzt%%M_|!ķ!%m{jjʕ+dO~Z2BMNN~K8_tIMAPmmmcc#_'(KKKcñVevW K.ݽu#ÝUÍU>]C?&'f󋹹B!&˗sYLZPꕯ5M B{쩨7&.יV;<[ÞںzJh~r/.L\|>(]._~qgo%4xODb }ƍמ95kEhtǎ $N)8Xes|%VS{լt!;PstgIjtt4J[&ccc>,%H$ 8aWMˮqzz&nqzȏzjEPz%~-4CqJ[:ߖ333Ն}2dhrHH?U "D"qtj-dh3Y"---}}} έXeڄɾ'B9WVI9>sVd =S?$jag\hBΦ}c`sP0l  Yܵ޾$g-t}|&&őHD~<n J|y8ύ9r*OYpX_\[ڸYUәI) X%sTXlfff~~>Ha|6Nd,N.щ[rtuZ)T[6I;L޼ys9jSQ$i>Tm|HlVVE24$@~ǔ@)EF|Y]]S0mj D|UÃT알}m>7tstf6U {FXx=s>K. ;PC[_ & 5۷}œKqK Z߶퉉jwZv52(oRc|s[Bfb.1@q*.a" !$N'\13$xW6myo~8RA1qٶ%!7\^8=MTPeJo{؜QskD?N&!=ԱqV}09Ҁd2I8`n&RP6%jD)h11Ӧ8;u*LP '+ƀ}HeYD9$P)!4hiU" p1ڣ?Q8᪏<ܧ!\><:!U b_"ҠG-RJN <6kPʰt=6$}<_nn=α>fţD`LSf ݑX &_˺&T)mcH!@ҕ |LԶ<0؁}(0۶MđH$JUTTF}z"9'뭭m۶  |GcFn|d91L,< \5Lćb'.q$YYYHd