|
|
|
|
|
MC600
YaBB God
    
Posts: 968

Jetzt habe ich Zähne!
|
 |
Re:Force Calendar Board - Hilfe
« Reply #5 on: June 07, 2003, 10:19:35 AM » |
|
<?php /*****************************************************************************/ /* Force_CalendarBoard_db.php */ /*****************************************************************************/ /* YaBB: Yet another Bulletin Board */ /* Open-Source Project started by Zef Hemel ([email protected]) */ /* Software Version: YaBB SE */ /* ========================================================================= */ /* Software Distributed by: http://www.yabb.info */ /* Support, News, Updates at: http://www.yabb.info/community */ /* http://yabb.xnull.com/community */ /* ========================================================================= */ /* Copyright (c) 2001-2002 Lewis Media - All Rights Reserved */ /* Software by: The YaBB Development Team */ /*****************************************************************************/ /* This program is free software; you can redistribute it and/or modify it */ /* under the terms of the GNU General Public License as published by the */ /* Free Software Foundation; either version 2 of the License, or (at your */ /* option) any later version. */ /* */ /* 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 GNU General */ /* Public License for more details. */ /* */ /* The GNU GPL can be found in gpl.txt in this directory */ /*****************************************************************************/ ?> <html> <head> <title>YaBB SE DataBase Editor</title> <style> <!-- body { font-family : Verdana; font-size : 10pt; } td { font-size : 10pt; } --> </style> </head> <body bgcolor="#FFFFFF"> <center><table border=0 cellspacing=1 cellpadding=4 bgcolor="#000000" width=90%> <tr> <th bgcolor="#34699E"><font color="#FFFFFF">YaBB SE DB Editor</font></th> </tr> <tr> <td bgcolor="#FFFFFF"> <?
include_once ("Settings.php"); $error=0; $dbcon = mysql_connect($db_server, $db_user, $db_passwd); mysql_select_db($db_name);
/* ### DB QUERIES START ### */
$result1 = mysql_query("INSERT INTO {$db_prefix}settings (variable, value) VALUES ('cal_ForceDefaultBoard', '0')"); if(!$result1){ echo "<font color=red>Error updating the DB. SQL Error: ".mysql_error()."</font><BR>"; $error++;} else echo "<font color=green>Data inserted!</font><BR>";
$result2 = mysql_query("INSERT INTO {$db_prefix}settings (variable, value) VALUES ('allowCalNoBoard', '1')"); if(!$result2){ echo "<font color=red>Error updating the DB. SQL Error: ".mysql_error()."</font><BR>"; $error++;} else echo "<font color=green>Data inserted!</font><BR>";
/* ### DB QUERIES END ### */
echo "</td></tr></table>"; if($error==0) echo "<P>Upgrade of SQL was successfull."; elseif ($error==1) echo "<P>There was <B>1</B> error when upgrading your SQL."; elseif ($error>1) echo "<P>There were <B>$error</B> errors when upgrading your SQL."; ?>
|
|
|
Logged
|
|
|
|
|
|
CrashOver
Noobie

Posts: 20

MUHA
|
 |
Re:Force Calendar Board - Hilfe
« Reply #8 on: June 07, 2003, 10:48:29 AM » |
|
Ja ich weiss bin immer bei sowas erst  und wenn ich denn nich weiter komm seh ich entwerder  oder  aus *g* weisst bescheid?
|
|
|
Logged
|
|
|
|
|