OSDN Git Service

Small bug fix and started more work on admin cp.
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Sun, 17 Feb 2008 22:08:15 +0000 (22:08 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Sun, 17 Feb 2008 22:08:15 +0000 (22:08 +0000)
git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@149 2b68903e-0b30-0410-9a39-a2e4f3c5be39

admin.php
inc/admin/forums.php [new file with mode: 0644]
inc/admin/main.php
inc/admin/table.php
inc/versioninfo.php

index 23266ad..f37c4c9 100644 (file)
--- a/admin.php
+++ b/admin.php
@@ -11,7 +11,7 @@
     Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/
     Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/
 
-    $FileInfo: admin.php - Last Update: 02/15/2008 SVN 148 - Author: cooldude2k $
+    $FileInfo: admin.php - Last Update: 02/17/2008 SVN 149 - Author: cooldude2k $
 */
 require('preindex.php');
 $usefileext = $Settings['file_ext'];
@@ -36,6 +36,11 @@ if($_GET['act']=="view"||
        $_GET['act']=="mysql"||
        $_GET['act']=="info")
 { require($SettDir['admin'].'main.php'); }
+if($_GET['act']=="addforum"||
+       $_GET['act']=="editforum"||
+       $_GET['act']=="deleteforum"||
+       $_GET['act']=="fpermissions")
+{ require($SettDir['admin'].'forums.php'); }
 require($SettDir['inc'].'endpage.php'); 
 if(!isset($admincptitle)) { $admincptitle = null; }
 ?>
diff --git a/inc/admin/forums.php b/inc/admin/forums.php
new file mode 100644 (file)
index 0000000..40fee6e
--- /dev/null
@@ -0,0 +1,114 @@
+<?php
+/*
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the Revised BSD License.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    Revised BSD License for more details.
+
+    Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/
+    Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/
+
+    $FileInfo: forums.php - Last Update: 02/17/2008 SVN 149 - Author: cooldude2k $
+*/
+$File3Name = basename($_SERVER['SCRIPT_NAME']);
+if ($File3Name=="forums.php"||$File3Name=="/forums.php") {
+       require('index.php');
+       exit(); }
+
+// Check if we can goto admin cp
+if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['HasAdminCP']=="no") {
+redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false));
+ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @mysql_close(); die(); }
+if(!isset($_POST['update'])) { $_POST['update'] = null; }
+?>
+<table class="Table3">
+<tr style="width: 100%; vertical-align: top;">
+       <td style="width: 15%; vertical-align: top;">
+<?php 
+require($SettDir['admin'].'table.php'); 
+?>
+</td>
+       <td style="width: 85%; vertical-align: top;">
+<?php if($_POST['update']=="now"&&$_GET['act']!=null) {
+$updateact = url_maker($exfile['profile'],$Settings['file_ext'],"act=".$_GET['act'],$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']);
+$admincptitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
+@redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=".$_GET['act'],$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"3");
+?>
+<div class="Table1Border">
+<table class="Table1" style="width: 100%;">
+<tr class="TableRow1">
+<td class="TableRow1"><span style="float: left;">
+<?php echo $ThemeSet['TitleIcon'] ?><a href="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act=".$_GET['act'],$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">Updating Settings</a>
+</span><span style="float: right;">&nbsp;</span></td>
+</tr>
+<tr id="ProfileTitle" class="TableRow2">
+<th class="TableRow2">Updating Settings</th>
+</tr>
+<tr class="TableRow3" id="ProfileUpdate">
+<td class="TableRow3">
+<div style="text-align: center;">
+<br />The action was completed successfully <a href="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">click here</a> to go back. ^_^<br />&nbsp;</div>
+<?php } if($_GET['act']=="addforum"&&$_POST['update']!="now") { ?>
+<div class="Table1Border">
+<table class="Table1">
+<tr class="TableRow1">
+<td class="TableRow1"><span style="float: left;">
+&nbsp;<a href="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act=addforum",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">iDB Database Manager</a></span>
+<span style="float: right;">&nbsp;</span></td>
+</tr>
+<tr class="TableRow2">
+<th class="TableRow2" style="width: 100%; text-align: left;">
+<span style="float: left;">&nbsp;Editing MySQL Settings for iDB: </span>
+<span style="float: right;">&nbsp;</span>
+</th>
+</tr>
+<tr class="TableRow3">
+<td class="TableRow3">
+<form style="display: inline;" method="post" name="install" id="install" action="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act=mysql",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">
+<table style="text-align: left;">
+<tr style="text-align: left;">
+       <td style="width: 50%;"><label class="TextBoxLabel" for="DatabaseUserName">Insert Database User Name:</label></td>
+       <td style="width: 50%;"><input type="text" name="DatabaseUserName" class="TextBox" id="DatabaseUserName" size="20" value="<?php echo $Settings['sqluser']; ?>" /></td>
+</tr><tr>
+       <td style="width: 50%;"><label class="TextBoxLabel" for="DatabasePassword">Insert Database Password:</label></td>
+       <td style="width: 50%;"><input type="password" name="DatabasePassword" class="TextBox" id="DatabasePassword" size="20" value="<?php echo $Settings['sqlpass']; ?>" /></td>
+</tr><tr>
+       <td style="width: 50%;"><label class="TextBoxLabel" for="DatabaseName">Insert Database Name:</label></td>
+       <td style="width: 50%;"><input type="text" name="DatabaseName" class="TextBox" id="DatabaseName" size="20" value="<?php echo $Settings['sqldb']; ?>" /></td>
+</tr><tr>
+       <td style="width: 50%;"><label class="TextBoxLabel" for="DatabaseHost">Insert Database Host:</label></td>
+       <td style="width: 50%;"><input type="text" name="DatabaseHost" class="TextBox" id="DatabaseHost" size="20" value="<?php echo $Settings['sqlhost']; ?>" /></td>
+</tr><tr>
+       <td style="width: 50%;"><label class="TextBoxLabel" for="tableprefix">Insert Table Prefix:<br /></label></td>
+       <td style="width: 50%;"><input type="text" name="tableprefix" class="TextBox" id="tableprefix" size="20" value="<?php echo $Settings['sqltable']; ?>" /></td>
+</tr></table>
+<table style="text-align: left;">
+<tr style="text-align: left;">
+<td style="width: 100%;">
+<input type="hidden" name="act" value="addforum" style="display: none;" />
+<input type="hidden" name="update" value="now" style="display: none;" />
+<input type="submit" class="Button" value="Apply" name="Apply_Changes" />
+<input type="reset" value="Reset Form" class="Button" name="Reset_Form" />
+</td></tr></table>
+</form>
+</td>
+</tr>
+<tr class="TableRow4">
+<td class="TableRow4">&nbsp;</td>
+</tr>
+</table>
+</div>
+<?php }
+if($_POST['update']=="now"&&$_GET['act']!=null) {
+       $profiletitle = " ".$ThemeSet['TitleDivider']." Updating Settings"; ?>
+</td></tr>
+<tr id="ProfileTitleEnd" class="TableRow4">
+<td class="TableRow4">&nbsp;</td>
+</tr></table></div><?php } ?>
+</td></tr>
+</table>
+<div>&nbsp;</div>
\ No newline at end of file
index b1baa92..a4b69c4 100644 (file)
     Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/
     Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/
 
-    $FileInfo: main.php - Last Update: 02/15/2008 SVN 148 - Author: cooldude2k $
+    $FileInfo: main.php - Last Update: 02/17/2008 SVN 149 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="main.php"||$File3Name=="/main.php") {
        require('index.php');
        exit(); }
 
-// Check if we can edit the profile
+// Check if we can goto admin cp
 if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['HasAdminCP']=="no") {
 redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false));
 ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
@@ -41,6 +41,9 @@ if($boolean==0||$boolean==false) {
 return "false"; }
 if($boolean==1||$boolean==true) { 
 return "true"; } } }
+function rsq($string) {
+$string = str_replace("'", "\'", $string);
+return $string; }
 ?>
 <table class="Table3">
 <tr style="width: 100%; vertical-align: top;">
@@ -68,7 +71,7 @@ $admincptitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
 <tr class="TableRow3" id="ProfileUpdate">
 <td class="TableRow3">
 <div style="text-align: center;">
-<br />Profile updated <a href="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act=".$_GET['act'],$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">click here</a> to go back. ^_^<br />&nbsp;</div>
+<br />Settings have been updated <a href="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act=".$_GET['act'],$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">click here</a> to go back. ^_^<br />&nbsp;</div>
 <?php } if($_GET['act']=="view"&&$_POST['update']!="now") {
 $query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i", array($_SESSION['UserID']));
 $result=mysql_query($query);
@@ -318,6 +321,7 @@ if($Settings['fixcookiedir']!="true"&&$Settings['fixcookiedir']!="false") {
 $Settings['rssurl'] = bool_string($Settings['rssurl']);
 if($Settings['rssurl']!="true"&&$Settings['rssurl']!="false") {
    $Settings['rssurl']="'".$Settings['rssurl']."'"; }
+$_POST  = array_map("rsq", $_POST);
 $BoardSettings=$pretext2[0]."\n\$Settings['sqlhost'] = '".$Settings['sqlhost']."';\n\$Settings['sqldb'] = '".$Settings['sqldb']."';\n\$Settings['sqltable'] = '".$Settings['sqltable']."';\n\$Settings['sqluser'] = '".$Settings['sqluser']."';\n\$Settings['sqlpass'] = '".$Settings['sqlpass']."';\n\$Settings['board_name'] = '".$Settings['board_name']."';\n\$Settings['idbdir'] = '".$Settings['idbdir']."';\n\$Settings['idburl'] = '".$_POST['BoardURL']."';\n\$Settings['enable_https'] = ".bool_string($_POST['enable_https']).";\n\$Settings['weburl'] = '".$_POST['WebURL']."';\n\$Settings['use_gzip'] = '".$_POST['UseGzip']."';\n\$Settings['html_type'] = '".$_POST['HTMLType']."';\n\$Settings['html_level'] = '".$_POST['HTMLLevel']."';\n\$Settings['output_type'] = '".$_POST['OutPutType']."';\n\$Settings['GuestGroup'] = '".$_POST['GuestGroup']."';\n\$Settings['MemberGroup'] = '".$_POST['MemberGroup']."';\n\$Settings['ValidateGroup'] = '".$_POST['ValidateGroup']."';\n\$Settings['AdminValidate'] = ".bool_string($_POST['AdminValidate']).";\n\$Settings['TestReferer'] = '".$_POST['TestReferer']."';\n\$Settings['DefaultTheme'] = '".$_POST['DefaultTheme']."';\n\$Settings['DefaultTimeZone'] = '".$_POST['YourOffSet'].":".$_POST['MinOffSet']."';\n\$Settings['DefaultDST'] = '".$_POST['DST']."';\n\$Settings['charset'] = '".$Settings['charset']."';\n\$Settings['add_power_by'] = ".bool_string($Settings['add_power_by']).";\n\$Settings['send_pagesize'] = ".bool_string($Settings['send_pagesize']).";\n\$Settings['max_posts'] = '".$_POST['max_posts']."';\n\$Settings['max_topics'] = '".$_POST['max_topics']."';\n\$Settings['max_memlist'] = '".$_POST['max_memlist']."';\n\$Settings['max_pmlist'] = '".$_POST['max_pmlist']."';\n\$Settings['hot_topic_num'] = '".$_POST['hot_topic_num']."';\n\$Settings['qstr'] = '".$Settings['qstr']."';\n\$Settings['qsep'] = '".$Settings['qsep']."';\n\$Settings['file_ext'] = '".$Settings['file_ext']."';\n\$Settings['rss_ext'] = '".$Settings['rss_ext']."';\n\$Settings['js_ext'] = '".$Settings['js_ext']."';\n\$Settings['showverinfo'] = ".$Settings['showverinfo'].";\n\$Settings['enable_rss'] = ".bool_string($_POST['enable_rss']).";\n\$Settings['enable_search'] = ".bool_string($_POST['enable_search']).";\n\$Settings['sessionid_in_urls'] = ".bool_string($Settings['sessionid_in_urls']).";\n\$Settings['fixpathinfo'] = ".bool_string($Settings['fixpathinfo']).";\n\$Settings['fixbasedir'] = ".bool_string($Settings['fixbasedir']).";\n\$Settings['fixcookiedir'] = ".bool_string($Settings['fixcookiedir']).";\n\$Settings['enable_pathinfo'] = ".bool_string($Settings['enable_pathinfo']).";\n\$Settings['rssurl'] = ".bool_string($Settings['rssurl']).";\n\$Settings['board_offline'] = ".bool_string($Settings['board_offline']).";\n".$pretext2[1]."\n\$SettInfo['board_name'] = '".$SettInfo['board_name']."';\n\$SettInfo['Author'] = '".$SettInfo['Author']."';\n\$SettInfo['Keywords'] = '".$SettInfo['Keywords']."';\n\$SettInfo['Description'] = '".$SettInfo['Description']."';\n".$pretext2[2]."\n\$SettDir['maindir'] = '".$SettDir['maindir']."';\n\$SettDir['inc'] = '".$SettDir['inc']."';\n\$SettDir['misc'] = '".$SettDir['misc']."';\n\$SettDir['admin'] = '".$SettDir['admin']."';\n\$SettDir['mod'] = '".$SettDir['mod']."';\n\$SettDir['themes'] = '".$SettDir['themes']."';\n".$pretext2[3]."\n?>";
 $BoardSettingsBak = $pretext.$settcheck.$BoardSettings;
 $BoardSettings = $pretext.$settcheck.$BoardSettings;
@@ -394,6 +398,7 @@ if($Settings['fixcookiedir']!="true"&&$Settings['fixcookiedir']!="false") {
 $Settings['rssurl'] = bool_string($Settings['rssurl']);
 if($Settings['rssurl']!="true"&&$Settings['rssurl']!="false") {
    $Settings['rssurl']="'".$Settings['rssurl']."'"; }
+$_POST  = array_map("rsq", $_POST);
 $BoardSettings=$pretext2[0]."\n\$Settings['sqlhost'] = '".$_POST['DatabaseHost']."';\n\$Settings['sqldb'] = '".$_POST['DatabaseName']."';\n\$Settings['sqltable'] = '".$_POST['tableprefix']."';\n\$Settings['sqluser'] = '".$_POST['DatabaseUserName']."';\n\$Settings['sqlpass'] = '".$_POST['DatabasePassword']."';\n\$Settings['board_name'] = '".$Settings['board_name']."';\n\$Settings['idbdir'] = '".$Settings['idbdir']."';\n\$Settings['idburl'] = '".$Settings['idburl']."';\n\$Settings['enable_https'] = ".bool_string($Settings['enable_https']).";\n\$Settings['weburl'] = '".$Settings['weburl']."';\n\$Settings['use_gzip'] = '".$Settings['use_gzip']."';\n\$Settings['html_type'] = '".$Settings['html_type']."';\n\$Settings['html_level'] = '".$Settings['html_level']."';\n\$Settings['output_type'] = '".$Settings['output_type']."';\n\$Settings['GuestGroup'] = '".$Settings['GuestGroup']."';\n\$Settings['MemberGroup'] = '".$Settings['MemberGroup']."';\n\$Settings['ValidateGroup'] = '".$Settings['ValidateGroup']."';\n\$Settings['AdminValidate'] = ".bool_string($Settings['AdminValidate']).";\n\$Settings['TestReferer'] = '".$Settings['TestReferer']."';\n\$Settings['DefaultTheme'] = '".$Settings['DefaultTheme']."';\n\$Settings['DefaultTimeZone'] = '".$Settings['DefaultTimeZone']."';\n\$Settings['DefaultDST'] = '".$Settings['DefaultDST']."';\n\$Settings['charset'] = '".$Settings['charset']."';\n\$Settings['add_power_by'] = ".bool_string($Settings['add_power_by']).";\n\$Settings['send_pagesize'] = ".bool_string($Settings['send_pagesize']).";\n\$Settings['max_posts'] = '".$Settings['max_posts']."';\n\$Settings['max_topics'] = '".$Settings['max_topics']."';\n\$Settings['max_memlist'] = '".$Settings['max_memlist']."';\n\$Settings['max_pmlist'] = '".$Settings['max_pmlist']."';\n\$Settings['hot_topic_num'] = '".$Settings['hot_topic_num']."';\n\$Settings['qstr'] = '".$Settings['qstr']."';\n\$Settings['qsep'] = '".$Settings['qsep']."';\n\$Settings['file_ext'] = '".$Settings['file_ext']."';\n\$Settings['rss_ext'] = '".$Settings['rss_ext']."';\n\$Settings['js_ext'] = '".$Settings['js_ext']."';\n\$Settings['showverinfo'] = ".$Settings['showverinfo'].";\n\$Settings['enable_rss'] = ".bool_string($Settings['enable_rss']).";\n\$Settings['enable_search'] = ".bool_string($Settings['enable_search']).";\n\$Settings['sessionid_in_urls'] = ".bool_string($Settings['sessionid_in_urls']).";\n\$Settings['fixpathinfo'] = ".bool_string($Settings['fixpathinfo']).";\n\$Settings['fixbasedir'] = ".bool_string($Settings['fixbasedir']).";\n\$Settings['fixcookiedir'] = ".bool_string($Settings['fixcookiedir']).";\n\$Settings['enable_pathinfo'] = ".bool_string($Settings['enable_pathinfo']).";\n\$Settings['rssurl'] = ".bool_string($Settings['rssurl']).";\n\$Settings['board_offline'] = ".bool_string($Settings['board_offline']).";\n".$pretext2[1]."\n\$SettInfo['board_name'] = '".$SettInfo['board_name']."';\n\$SettInfo['Author'] = '".$SettInfo['Author']."';\n\$SettInfo['Keywords'] = '".$SettInfo['Keywords']."';\n\$SettInfo['Description'] = '".$SettInfo['Description']."';\n".$pretext2[2]."\n\$SettDir['maindir'] = '".$SettDir['maindir']."';\n\$SettDir['inc'] = '".$SettDir['inc']."';\n\$SettDir['misc'] = '".$SettDir['misc']."';\n\$SettDir['admin'] = '".$SettDir['admin']."';\n\$SettDir['mod'] = '".$SettDir['mod']."';\n\$SettDir['themes'] = '".$SettDir['themes']."';\n".$pretext2[3]."\n?>";
 $BoardSettingsBak = $pretext.$settcheck.$BoardSettings;
 $BoardSettings = $pretext.$settcheck.$BoardSettings;
@@ -466,6 +471,7 @@ if($Settings['fixcookiedir']!="true"&&$Settings['fixcookiedir']!="false") {
 $Settings['rssurl'] = bool_string($Settings['rssurl']);
 if($Settings['rssurl']!="true"&&$Settings['rssurl']!="false") {
    $Settings['rssurl']="'".$Settings['rssurl']."'"; }
+$_POST  = array_map("rsq", $_POST);
 $BoardSettings=$pretext2[0]."\n\$Settings['sqlhost'] = '".$Settings['sqlhost']."';\n\$Settings['sqldb'] = '".$Settings['sqldb']."';\n\$Settings['sqltable'] = '".$Settings['sqltable']."';\n\$Settings['sqluser'] = '".$Settings['sqluser']."';\n\$Settings['sqlpass'] = '".$Settings['sqlpass']."';\n\$Settings['board_name'] = '".$_POST['board_name']."';\n\$Settings['idbdir'] = '".$Settings['idbdir']."';\n\$Settings['idburl'] = '".$Settings['idburl']."';\n\$Settings['enable_https'] = ".bool_string($Settings['enable_https']).";\n\$Settings['weburl'] = '".$Settings['weburl']."';\n\$Settings['use_gzip'] = '".$Settings['use_gzip']."';\n\$Settings['html_type'] = '".$Settings['html_type']."';\n\$Settings['html_level'] = '".$Settings['html_level']."';\n\$Settings['output_type'] = '".$Settings['output_type']."';\n\$Settings['GuestGroup'] = '".$Settings['GuestGroup']."';\n\$Settings['MemberGroup'] = '".$Settings['MemberGroup']."';\n\$Settings['ValidateGroup'] = '".$Settings['ValidateGroup']."';\n\$Settings['AdminValidate'] = ".bool_string($Settings['AdminValidate']).";\n\$Settings['TestReferer'] = '".$Settings['TestReferer']."';\n\$Settings['DefaultTheme'] = '".$Settings['DefaultTheme']."';\n\$Settings['DefaultTimeZone'] = '".$Settings['DefaultTimeZone']."';\n\$Settings['DefaultDST'] = '".$Settings['DefaultDST']."';\n\$Settings['charset'] = '".$Settings['charset']."';\n\$Settings['add_power_by'] = ".bool_string($Settings['add_power_by']).";\n\$Settings['send_pagesize'] = ".bool_string($Settings['send_pagesize']).";\n\$Settings['max_posts'] = '".$Settings['max_posts']."';\n\$Settings['max_topics'] = '".$Settings['max_topics']."';\n\$Settings['max_memlist'] = '".$Settings['max_memlist']."';\n\$Settings['max_pmlist'] = '".$Settings['max_pmlist']."';\n\$Settings['hot_topic_num'] = '".$Settings['hot_topic_num']."';\n\$Settings['qstr'] = '".$Settings['qstr']."';\n\$Settings['qsep'] = '".$Settings['qsep']."';\n\$Settings['file_ext'] = '".$Settings['file_ext']."';\n\$Settings['rss_ext'] = '".$Settings['rss_ext']."';\n\$Settings['js_ext'] = '".$Settings['js_ext']."';\n\$Settings['showverinfo'] = ".$Settings['showverinfo'].";\n\$Settings['enable_rss'] = ".bool_string($Settings['enable_rss']).";\n\$Settings['enable_search'] = ".bool_string($Settings['enable_search']).";\n\$Settings['sessionid_in_urls'] = ".bool_string($Settings['sessionid_in_urls']).";\n\$Settings['fixpathinfo'] = ".bool_string($Settings['fixpathinfo']).";\n\$Settings['fixbasedir'] = ".bool_string($Settings['fixbasedir']).";\n\$Settings['fixcookiedir'] = ".bool_string($Settings['fixcookiedir']).";\n\$Settings['enable_pathinfo'] = ".bool_string($Settings['enable_pathinfo']).";\n\$Settings['rssurl'] = ".bool_string($Settings['rssurl']).";\n\$Settings['board_offline'] = ".bool_string($Settings['board_offline']).";\n".$pretext2[1]."\n\$SettInfo['board_name'] = '".$_POST['board_name']."';\n\$SettInfo['Author'] = '".$_POST['Author']."';\n\$SettInfo['Keywords'] = '".$_POST['Keywords']."';\n\$SettInfo['Description'] = '".$_POST['Description']."';\n".$pretext2[2]."\n\$SettDir['maindir'] = '".$SettDir['maindir']."';\n\$SettDir['inc'] = '".$SettDir['inc']."';\n\$SettDir['misc'] = '".$SettDir['misc']."';\n\$SettDir['admin'] = '".$SettDir['admin']."';\n\$SettDir['mod'] = '".$SettDir['mod']."';\n\$SettDir['themes'] = '".$SettDir['themes']."';\n".$pretext2[3]."\n?>";
 $BoardSettingsBak = $pretext.$settcheck.$BoardSettings;
 $BoardSettings = $pretext.$settcheck.$BoardSettings;
index af063d3..225b5e2 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/
     Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/
 
-    $FileInfo: table.php - Last Update: 02/15/2008 SVN 148 - Author: cooldude2k $
+    $FileInfo: table.php - Last Update: 02/17/2008 SVN 149 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="table.php"||$File3Name=="/table.php") {
@@ -36,15 +36,19 @@ if ($File3Name=="table.php"||$File3Name=="/table.php") {
 </tr><tr class="TableRow4">
 <td class="TableRow4">&nbsp;</td>
 </tr></table><div>&nbsp;</div>
-<table id="MainSettings" class="Table1" style="width: 100%; float: left; vertical-align: top;">
+<table id="ForumTool" class="Table1" style="width: 100%; float: left; vertical-align: top;">
 <tr class="TableRow1">
-<td class="TableRow1"><?php echo $ThemeSet['TitleIcon'] ?>Main Settings</td>
+<td class="TableRow1"><?php echo $ThemeSet['TitleIcon'] ?>Forum Tool</td>
 </tr><tr class="TableRow2">
 <td class="TableRow2">&nbsp;</td>
 </tr><tr class="TableRow3">
-<td class="TableRow3"><a href="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">Main Page</a></td>
+<td class="TableRow3"><a href="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act=addforum",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">Add Forums</a></td>
 </tr><tr class="TableRow3">
-<td class="TableRow3"><a href="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act=settings",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">Edit Settings</a></td>
+<td class="TableRow3"><a href="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act=editforum",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">Edit Forums</a></td>
+</tr><tr class="TableRow3">
+<td class="TableRow3"><a href="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act=deleteforum",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">Delete Forums</a></td>
+</tr><tr class="TableRow3">
+<td class="TableRow3"><a href="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act=fpermissions",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>">Forum Permissions</a></td>
 </tr><tr class="TableRow4">
 <td class="TableRow4">&nbsp;</td>
 </tr></table>
\ No newline at end of file
index ec0eb0e..e63c6dc 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/
     Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/
 
-    $FileInfo: versioninfo.php - Last Update: 02/15/2008 SVN 148 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 02/17/2008 SVN 149 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") {
@@ -27,8 +27,8 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) {
        return $return_var; }
 // Version number and date stuff. :P
 $VER1[0] = 0; $VER1[1] = 2; $VER1[2] = 1; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 148; $RName = "iDB"; $SFName = "IntDB";
-$SVNDay[0] = 02; $SVNDay[1] = 15; $SVNDay[2] = 2008; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
+$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 149; $RName = "iDB"; $SFName = "IntDB";
+$SVNDay[0] = 02; $SVNDay[1] = 17; $SVNDay[2] = 2008; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
 $VerInfo['iDB_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,false);
 $VerInfo['iDB_Ver_SVN'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,true);
 $VerInfo['iDB_Full_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[0],$SubVerN,false);