| ... | ... |
@@ -29,7 +29,7 @@ if(!defined("_CHARSET")) exit( );
|
| 29 | 29 |
dbquery("INSERT INTO ".TABLEPREFIX."fanfiction_blocks(`block_name`, `block_title`, `block_status`, `block_file`, `block_variables`) VALUES('online', 'Who\'s Online', '0', 'online/online.php', '');");
|
| 30 | 30 |
dbquery("CREATE TABLE IF NOT EXISTS `".TABLEPREFIX. "fanfiction_online` (
|
| 31 | 31 |
`online_uid` int(11) NOT NULL default '0', |
| 32 |
- `online_ip` VARBINARY(16) NOT NULL default '0', |
|
| 32 |
+ `online_ip` varbinary(16) DEFAULT NULL, |
|
| 33 | 33 |
`online_timestamp` int(11) NOT NULL default '0' |
| 34 | 34 |
) ENGINE=MyISAM;"); |
| 35 | 35 |
?> |
| ... | ... |
@@ -27,9 +27,9 @@ if(!defined("_CHARSET")) exit( );
|
| 27 | 27 |
|
| 28 | 28 |
|
| 29 | 29 |
dbquery("INSERT INTO ".TABLEPREFIX."fanfiction_blocks(`block_name`, `block_title`, `block_status`, `block_file`, `block_variables`) VALUES('online', 'Who\'s Online', '0', 'online/online.php', '');");
|
| 30 |
-dbquery("CREATE TABLE IF NOT EXISTS `".TABLEPREFIX."fanfiction_online` (
|
|
| 30 |
+dbquery("CREATE TABLE IF NOT EXISTS `".TABLEPREFIX. "fanfiction_online` (
|
|
| 31 | 31 |
`online_uid` int(11) NOT NULL default '0', |
| 32 |
- `online_ip` int(11) NOT NULL default '0', |
|
| 32 |
+ `online_ip` VARBINARY(16) NOT NULL default '0', |
|
| 33 | 33 |
`online_timestamp` int(11) NOT NULL default '0' |
| 34 | 34 |
) ENGINE=MyISAM;"); |
| 35 |
-?> |
|
| 36 | 35 |
\ No newline at end of file |
| 36 |
+?> |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,35 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+// ---------------------------------------------------------------------- |
|
| 4 |
+// eFiction 3.2 |
|
| 5 |
+// Copyright (c) 2007 by Tammy Keefer |
|
| 6 |
+// Valid HTML 4.01 Transitional |
|
| 7 |
+// Based on eFiction 1.1 |
|
| 8 |
+// Copyright (C) 2003 by Rebecca Smallwood. |
|
| 9 |
+// http://efiction.sourceforge.net/ |
|
| 10 |
+// ---------------------------------------------------------------------- |
|
| 11 |
+// LICENSE |
|
| 12 |
+// |
|
| 13 |
+// This program is free software; you can redistribute it and/or |
|
| 14 |
+// modify it under the terms of the GNU General Public License (GPL) |
|
| 15 |
+// as published by the Free Software Foundation; either version 2 |
|
| 16 |
+// of the License, or (at your option) any later version. |
|
| 17 |
+// |
|
| 18 |
+// This program is distributed in the hope that it will be useful, |
|
| 19 |
+// but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 20 |
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 21 |
+// GNU General Public License for more details. |
|
| 22 |
+// |
|
| 23 |
+// To read the license please visit http://www.gnu.org/copyleft/gpl.html |
|
| 24 |
+// ---------------------------------------------------------------------- |
|
| 25 |
+ |
|
| 26 |
+if(!defined("_CHARSET")) exit( );
|
|
| 27 |
+ |
|
| 28 |
+ |
|
| 29 |
+dbquery("INSERT INTO ".TABLEPREFIX."fanfiction_blocks(`block_name`, `block_title`, `block_status`, `block_file`, `block_variables`) VALUES('online', 'Who\'s Online', '0', 'online/online.php', '');");
|
|
| 30 |
+dbquery("CREATE TABLE IF NOT EXISTS `".TABLEPREFIX."fanfiction_online` (
|
|
| 31 |
+ `online_uid` int(11) NOT NULL default '0', |
|
| 32 |
+ `online_ip` int(11) NOT NULL default '0', |
|
| 33 |
+ `online_timestamp` int(11) NOT NULL default '0' |
|
| 34 |
+) ENGINE=MyISAM;"); |
|
| 35 |
+?> |
|
| 0 | 36 |
\ No newline at end of file |