From dhaun at qs1489.pair.com Thu May 1 04:46:24 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 08:46:24 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install/language english.php, 1.8, 1.9 german.php, 1.4, 1.5 Message-ID: <20080501084624.BC6DD10FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language In directory qs1489.pair.com:/tmp/cvs-serv82897/language Modified Files: english.php german.php Log Message: Added UTF-8 option (bug #0000610) Index: english.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language/english.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** english.php 29 Mar 2008 22:21:08 -0000 1.8 --- english.php 1 May 2008 08:46:22 -0000 1.9 *************** *** 142,146 **** 89 => 'Current Version:', 90 => 'Empty database?', ! 91 => 'It appears that either your database is empty or the database credentials you entered are incorrect. Or maybe you wanted to perform a New Install (instead of an Upgrade)? Please go back and try again.' ); --- 142,147 ---- 89 => 'Current Version:', 90 => 'Empty database?', ! 91 => 'It appears that either your database is empty or the database credentials you entered are incorrect. Or maybe you wanted to perform a New Install (instead of an Upgrade)? Please go back and try again.', ! 92 => 'Use UTF-8' ); Index: german.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language/german.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** german.php 2 Jan 2008 13:29:02 -0000 1.4 --- german.php 1 May 2008 08:46:22 -0000 1.5 *************** *** 142,150 **** 89 => 'Aktuelle Version:', 90 => 'Empty database?', ! 91 => 'It appears that either your database is empty or the database credentials you entered are incorrect. Or maybe you wanted to perform a New Install (instead of an Upgrade)? Please go back and try again.' ); // +---------------------------------------------------------------------------+ ! // success.php (TBD) $LANG_SUCCESS = array( --- 142,151 ---- 89 => 'Aktuelle Version:', 90 => 'Empty database?', ! 91 => 'It appears that either your database is empty or the database credentials you entered are incorrect. Or maybe you wanted to perform a New Install (instead of an Upgrade)? Please go back and try again.', ! 92 => 'Benutze UTF-8' ); // +---------------------------------------------------------------------------+ ! // success.php $LANG_SUCCESS = array( *************** *** 174,178 **** // +---------------------------------------------------------------------------+ ! // help.php (TBD) $LANG_HELP = array( --- 175,179 ---- // +---------------------------------------------------------------------------+ ! // help.php $LANG_HELP = array( From dhaun at qs1489.pair.com Thu May 1 04:46:24 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 08:46:24 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install index.php, 1.36, 1.37 Message-ID: <20080501084624.ADA0110FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install In directory qs1489.pair.com:/tmp/cvs-serv82897 Modified Files: index.php Log Message: Added UTF-8 option (bug #0000610) Index: index.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/index.php,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** index.php 20 Apr 2008 08:26:50 -0000 1.36 --- index.php 1 May 2008 08:46:22 -0000 1.37 *************** *** 118,122 **** function INST_installEngine($install_type, $install_step) { ! global $_CONF, $LANG_INSTALL, $_DB, $_TABLES, $gl_path, $html_path, $dbconfig_path, $siteconfig_path, $display, $language; switch ($install_step) { --- 118,122 ---- function INST_installEngine($install_type, $install_step) { ! global $_CONF, $LANG_INSTALL, $LANG_CHARSET, $_DB, $_TABLES, $gl_path, $html_path, $dbconfig_path, $siteconfig_path, $display, $language; switch ($install_step) { *************** *** 170,173 **** --- 170,181 ---- $site_mail = isset($_POST['site_mail']) ? $_POST['site_mail'] : ($_CONF['site_mail'] == 'admin at example.com' ? $_CONF['site_mail'] : 'admin@' . $host_name); $noreply_mail = isset($_POST['noreply_mail']) ? $_POST['noreply_mail'] : ($_CONF['noreply_mail'] == 'noreply at example.com' ? $_CONF['noreply_mail'] : 'noreply@' . $host_name); + if (isset($_POST['utf8']) && ($_POST['utf8'] == 'on')) { + $utf8 = true; + } else { + $utf8 = false; + if (strcasecmp($LANG_CHARSET, 'utf-8') == 0) { + $utf8 = true; + } + } if ($install_type == 'install') { *************** *** 204,209 ****
' . $LANG_INSTALL[46] . '
!
' . $LANG_INSTALL[46] . '
!
'; ! ! if ($install_type == 'install') { ! $display .= ' !
'; ! } + $display .= '
' . $LANG_HELP[1] . '
' . $LANG_HELP[2] . '
' . $LANG_HELP[3] . '
' . $LANG_HELP[4] . '
' . $LANG_HELP[5] . '
' . $LANG_HELP[6] . '
' . $LANG_HELP[7] . '
' . $LANG_HELP[8] . '
' . $LANG_HELP[9] . '
' . $LANG_HELP[10] . '
' . $LANG_HELP[11] . '
' . $LANG_HELP[12] . '
--- 87,127 ----' . $LANG_HELP[1] . '
' . $LANG_HELP[2] . '
' . $LANG_HELP[3] . '
' . $LANG_HELP[4] . '
' . $LANG_HELP[5] . '
' . $LANG_HELP[6] . '
' . $LANG_HELP[7] . '
' . $LANG_HELP[8] . '
' . $LANG_HELP[9] . '
' . $LANG_HELP[10] . '
' . $LANG_HELP[11] . '
' . $LANG_HELP[12] . '
! !' . $LANG_HELP[13] . '
*************** *** 130,132 **** echo $display; ! ?> \ No newline at end of file --- 133,135 ---- echo $display; ! ?> Index: index.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/index.php,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** index.php 1 May 2008 08:46:22 -0000 1.37 --- index.php 1 May 2008 09:52:56 -0000 1.38 *************** *** 196,220 ****!
' . $innodbnote . '
!!
!
!
!
' . $LANG_INSTALL[46] . '
!' . $LANG_INSTALL[46] . '
!!
'; if ($install_type == 'install') { $display .= ' !
'; } --- 196,220 ----
!
' . $innodbnote . '
!!
!
!
!
' . $LANG_INSTALL[46] . '
!' . $LANG_INSTALL[46] . '
!!
'; if ($install_type == 'install') { $display .= ' !
'; } From dhaun at qs1489.pair.com Thu May 1 05:52:58 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 09:52:58 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install/language english.php, 1.9, 1.10 german.php, 1.5, 1.6 Message-ID: <20080501095258.7828510FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language In directory qs1489.pair.com:/tmp/cvs-serv85242/language Modified Files: english.php german.php Log Message: Added missing help links; moved InnoDB note to the help screen; cosmetics Index: english.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language/english.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** english.php 1 May 2008 08:46:22 -0000 1.9 --- english.php 1 May 2008 09:52:56 -0000 1.10 *************** *** 89,93 **** 36 => 'MySQL with InnoDB Table support', 37 => 'Microsoft SQL', ! 38 => 'InnoDB Tables may improve performance on (very) large sites, but they also make database backups more complicated.', 39 => 'Database Hostname', 40 => 'Database Name', --- 89,93 ---- 36 => 'MySQL with InnoDB Table support', 37 => 'Microsoft SQL', ! 38 => '', 39 => 'Database Hostname', 40 => 'Database Name', *************** *** 181,185 **** 1 => 'The name of your website.', 2 => 'A simple description of your website.', ! 3 => 'Geeklog can be installed using either a MySQL or Microsoft SQL database. If you are not sure which option to select contact your hosting provider.', 4 => 'The network name (or IP address) of your database server. This is typically "localhost". If you are not sure contact your hosting provider.', 5 => 'The name of your database. If you are not sure what this is contact your hosting provider.', --- 181,185 ---- 1 => 'The name of your website.', 2 => 'A simple description of your website.', ! 3 => 'Geeklog can be installed using either a MySQL or Microsoft SQL database. If you are not sure which option to select contact your hosting provider.
index.php file resides (no trailing slash).',
! 10 => 'Some hosting services have a preconfigured admin directory. In that case, you need to rename Geeklog\'s admin directory to something like "myadmin" and change the following URL as well. Leave as is until you experience any problems accessing Geeklog\'s admin menu.',
! 11 => 'This is the return address for all email sent by Geeklog and contact info displayed in syndication feeds.',
! 12 => 'This is the sender\'s address of emails sent by the system when users register, etc. This should be either the same as Site Email or a bouncing address to prevent spammers from getting your email address by registering on the site. If this is NOT the same as above, there will be a message in sent messages that replying to those emails is recommended.',
! 13 => 'Indicate whether to use UTF-8 as the default character set for your site. Recommended especially for multi-lingual setups.'
);
From dhaun at qs1489.pair.com Thu May 1 05:52:58 2008
From: dhaun at qs1489.pair.com (Dirk Haun)
Date: Thu, 01 May 2008 09:52:58 +0000
Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install/layout
style.css, 1.4, 1.5
Message-ID: <20080501095258.7EB7710FE15@qs1489.pair.com>
Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/layout
In directory qs1489.pair.com:/tmp/cvs-serv85242/layout
Modified Files:
style.css
Log Message:
Added missing help links; moved InnoDB note to the help screen; cosmetics
Index: style.css
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/layout/style.css,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** style.css 25 Nov 2007 06:58:55 -0000 1.4
--- style.css 1 May 2008 09:52:56 -0000 1.5
***************
*** 368,370 ****
font-family: "Monaco";
font-size: 8pt;
! }
\ No newline at end of file
--- 368,373 ----
font-family: "Monaco";
font-size: 8pt;
! }
! .indent {
! margin-left:1em;
! }
From dhaun at qs1489.pair.com Thu May 1 07:51:28 2008
From: dhaun at qs1489.pair.com (Dirk Haun)
Date: Thu, 01 May 2008 11:51:28 +0000
Subject: [geeklog-cvs] Geeklog-1.x/public_html/webservices/atom index.php,
1.3, 1.4
Message-ID: <20080501115128.4B42710FE14@qs1489.pair.com>
Update of /cvsroot/geeklog/Geeklog-1.x/public_html/webservices/atom
In directory qs1489.pair.com:/tmp/cvs-serv90079/public_html/webservices/atom
Modified Files:
index.php
Log Message:
Need to check the PHP version here (not in lib-webservices.php, where it's too late)
Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/webservices/atom/index.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** index.php 2 Jan 2008 14:40:22 -0000 1.3
--- index.php 1 May 2008 11:51:26 -0000 1.4
***************
*** 33,37 ****
require_once '../../lib-common.php';
! require_once $_CONF['path_system'] . '/lib-webservices.php';
/* Check if WS component is enabled */
--- 33,43 ----
require_once '../../lib-common.php';
!
! /* Check for PHP5 */
! if (PHP_VERSION < 5) {
! $_CONF['disable_webservices'] = true;
! } else {
! require_once $_CONF['path_system'] . '/lib-webservices.php';
! }
/* Check if WS component is enabled */
From dhaun at qs1489.pair.com Thu May 1 09:23:30 2008
From: dhaun at qs1489.pair.com (Dirk Haun)
Date: Thu, 01 May 2008 13:23:30 +0000
Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install index.php, 1.38,
1.39
Message-ID: <20080501132330.95CCB10FE12@qs1489.pair.com>
Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install
In directory qs1489.pair.com:/tmp/cvs-serv93479
Modified Files:
index.php
Log Message:
Handle $_CONF['default_charset'] for upgrades
Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/index.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** index.php 1 May 2008 09:52:56 -0000 1.38
--- index.php 1 May 2008 13:23:28 -0000 1.39
***************
*** 334,340 ****
// for the default charset, patch siteconfig.php again
! if (!INST_setDefaultCharset($siteconfig_path, $utf8)) {
! exit($LANG_INSTALL[26] . ' ' . $siteconfig_path
! . $LANG_INSTALL[58]);
}
--- 334,343 ----
// for the default charset, patch siteconfig.php again
! if ($install_type != 'upgrade') {
! if (!INST_setDefaultCharset($siteconfig_path,
! ($utf8 ? 'utf-8' : $LANG_CHARSET))) {
! exit($LANG_INSTALL[26] . ' ' . $siteconfig_path
! . $LANG_INSTALL[58]);
! }
}
***************
*** 628,633 ****
/**
! * Check to see if config.php and lib-common.php are writeable by the web
! * server. If they aren't display a warning message.
*
* @param array $files list of files to check
--- 631,635 ----
/**
! * Check to see if required files are writeable by the web server.
*
* @param array $files list of files to check
***************
*** 639,643 ****
$writable = true;
foreach ($files as $file) {
! if (!$tmp_file = @fopen ($file, 'a')) {
// Unable to modify
$writable = false;
--- 641,645 ----
$writable = true;
foreach ($files as $file) {
! if (!$tmp_file = @fopen($file, 'a')) {
// Unable to modify
$writable = false;
***************
*** 1362,1365 ****
--- 1364,1374 ----
$config->set($key, $val);
}
+
+ if (!INST_setDefaultCharset($siteconfig_path,
+ $_CONF['default_charset'])) {
+ exit($LANG_INSTALL[26] . ' ' . $siteconfig_path
+ . $LANG_INSTALL[58]);
+ }
+
require $siteconfig_path;
require $dbconfig_path;
***************
*** 1500,1512 ****
*
* @param string $siteconfig_path complete path to siteconfig.php
! * @param boolen $utf8 true: use UTF-8
* @return boolean true: success; false: an error occured
* @note Yes, this means that we need to patch siteconfig.php a second time.
*
*/
! function INST_setDefaultCharset($siteconfig_path, $utf8 = false)
{
- global $LANG_CHARSET;
-
$result = true;
--- 1509,1519 ----
*
* @param string $siteconfig_path complete path to siteconfig.php
! * @param string $charset default character set to use
* @return boolean true: success; false: an error occured
* @note Yes, this means that we need to patch siteconfig.php a second time.
*
*/
! function INST_setDefaultCharset($siteconfig_path, $charset)
{
$result = true;
***************
*** 1515,1529 ****
fclose($siteconfig_file);
! if ($utf8) {
! $new_charset = 'utf-8';
! } else {
! $new_charset = $LANG_CHARSET;
! }
!
! require_once $siteconfig_path;
!
! $siteconfig_data = str_replace("\$_CONF['default_charset'] = '{$_CONF['default_charset']}';",
! "\$_CONF['default_charset'] = '{$new_charset}';",
! $siteconfig_data);
$siteconfig_file = fopen($siteconfig_path, 'w');
--- 1522,1531 ----
fclose($siteconfig_file);
! $siteconfig_data = preg_replace
! (
! '/\$_CONF\[\'default_charset\'\] = \'[^\']*\';/',
! "\$_CONF['default_charset'] = '" . $charset . "';",
! $siteconfig_data
! );
$siteconfig_file = fopen($siteconfig_path, 'w');
From dhaun at qs1489.pair.com Thu May 1 11:43:18 2008
From: dhaun at qs1489.pair.com (Dirk Haun)
Date: Thu, 01 May 2008 15:43:18 +0000
Subject: [geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.691,1.692
Message-ID: <20080501154318.4DD8710FE12@qs1489.pair.com>
Update of /cvsroot/geeklog/Geeklog-1.x/public_html
In directory qs1489.pair.com:/tmp/cvs-serv98201/public_html
Modified Files:
lib-common.php
Log Message:
Revert earlier change - COM_showMessage should be restricted to fixed predefined messages
Index: lib-common.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v
retrieving revision 1.691
retrieving revision 1.692
diff -C2 -d -r1.691 -r1.692
*** lib-common.php 26 Apr 2008 17:58:37 -0000 1.691
--- lib-common.php 1 May 2008 15:43:16 -0000 1.692
***************
*** 4403,4408 ****
* Displays a message on the webpage
*
! * Receives either a message number and gets the according message from the
! * language file or gets a message in cleartext and displays it then to the user
*
* @param int $msg ID of message to show
--- 4403,4408 ----
* Displays a message on the webpage
*
! * Pulls $msg off the URL string and gets the corresponding message and returns
! * it for display on the calling page
*
* @param int $msg ID of message to show
***************
*** 4417,4444 ****
$retval = '';
! $timestamp = strftime( $_CONF['daytime'] );
! if($msg > 0) {
! if(!empty($plugin)) {
$var = 'PLG_' . $plugin . '_MESSAGE' . $msg;
global $$var;
! if(isset($$var)) {
$message = $$var;
} else {
! $message = sprintf( $MESSAGE[61], $plugin );
! COM_errorLog ($MESSAGE[61]. ": " . $var,1);
}
} else {
$message = $MESSAGE[$msg];
}
! } else if (strlen($msg) > 0) {
! $message = $msg;
}
- $retval .= COM_startBlock( $MESSAGE[40] . ' - ' . $timestamp, '',
- COM_getBlockTemplate( '_msg_block', 'header' ))
- . ''
- . $message . '
'
! . $message . '
To install and use Geeklog you will need to have a server running Apache or Microsoft IIS with PHP 4.1.0 or higher installed. You will also need either MySQL 3.23.2 or greater or Microsoft SQL Server 2000 or newer.
--- 36,40 ----To install and use Geeklog you will need to have a server running Apache or Microsoft IIS with PHP 4.1.0 or higher installed. You will also need either MySQL 3.23.2 or greater or Microsoft SQL Server 2000 or newer.
*************** *** 51,55 **** !tar -zxvf geeklog-1.5.0.tar.gz
Note: Some users have reported that WinZip corrupts certain Geeklog files during decompression. This will cause errors during the installation process. You are strongly urged not to use WinZip. Try WinRAR if you must decompress the file locally.
tar -zxvf geeklog-1.5.0.tar.gz
Note: Some users have reported that WinZip corrupts certain Geeklog files during decompression. This will cause errors during the installation process. You are strongly urged not to use WinZip. Try 7-Zip or WinRAR if you must decompress the file locally.
Upgrading is no different than a New Installation except your database already exists and needs to be updated.
--- 92,96 ---- !Upgrading is no different than a New Installation except your database already exists and needs to be updated.
*************** *** 109,113 ****tar -zxvf geeklog-1.5.0.tar.gz
Note: Some users have reported that WinZip corrupts certain Geeklog files during decompression. This will cause errors during the installation process. You are strongly urged not to use WinZip. Try WinRAR if you must decompress the file locally.
tar -zxvf geeklog-1.5.0.tar.gz
Note: Some users have reported that WinZip corrupts certain Geeklog files during decompression. This will cause errors during the installation process. You are strongly urged not to use WinZip. Try 7-Zip or WinRAR if you must decompress the file locally.
Before you go any further, please open siteconfig.php and double check your paths! Bad paths, or typos in the paths, will cause all sorts of errors in Geeklog.
--- 127,131 ---- !Before you go any further, please open siteconfig.php and double check your paths! Bad paths, or typos in the paths, will cause all sorts of errors in Geeklog.
*************** *** 170,174 ****As noted at the top of this document this is usually caused by one of the following:
As noted at the top of this document this is usually caused by one of the following:
The Geeklog developers take security very seriously. Should you need to report a security issue with Geeklog, please email details to geeklog-security at lists.geeklog.net. Thank you.
Note: Posts to geeklog-security are of course not discarded and you don't (and can't, actually) subscribe to this list. Simply send an email to this address and we will get back to you ASAP.
--- 61,65 ----The Geeklog developers take security very seriously. Should you need to report a security issue with Geeklog, please email details to geeklog-security(at)lists.geeklog.net. Thank you.
Note: Posts to geeklog-security are of course not discarded and you don't (and can't, actually) subscribe to this list. Simply send an email to this address and we will get back to you ASAP.
From mjervis at qs1489.pair.com Thu May 1 14:35:16 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Thu, 01 May 2008 18:35:16 +0000 Subject: [geeklog-cvs] Geeklog-1.x/sql mssql_tableanddata.php,1.36,1.37 Message-ID: <20080501183516.DD72110FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/sql In directory qs1489.pair.com:/tmp/cvs-serv5455/sql Modified Files: mssql_tableanddata.php Log Message: Fixes for MSSQL install (Partial II) Index: mssql_tableanddata.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/sql/mssql_tableanddata.php,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** mssql_tableanddata.php 26 Apr 2008 08:45:40 -0000 1.36 --- mssql_tableanddata.php 1 May 2008 18:35:14 -0000 1.37 *************** *** 1720,1725 **** set identity_insert {$_TABLES['users']} on ! INSERT INTO {$_TABLES['users']} (uid, username, fullname, passwd, email, homepage, sig, regdate, cookietimeout, theme, status) VALUES (1,'Anonymous','Anonymous','',NULL,NULL,'',getdate(),0,NULL,3) ! INSERT INTO {$_TABLES['users']} (uid, username, fullname, passwd, email, homepage, sig, regdate, cookietimeout, theme, status) VALUES (2,'Admin','Geeklog SuperUser','5f4dcc3b5aa765d61d8327deb882cf99','root at localhost','http://www.geeklog.net/','',getdate(),28800,NULL,3) set identity_insert {$_TABLES['users']} off --- 1720,1725 ---- set identity_insert {$_TABLES['users']} on ! INSERT INTO {$_TABLES['users']} (uid, username, fullname, passwd, email, homepage, sig, regdate, cookietimeout, theme, status, num_reminders) VALUES (1,'Anonymous','Anonymous','',NULL,NULL,'',getdate(),0,NULL,3,0) ! INSERT INTO {$_TABLES['users']} (uid, username, fullname, passwd, email, homepage, sig, regdate, cookietimeout, theme, status, num_reminders) VALUES (2,'Admin','Geeklog SuperUser','5f4dcc3b5aa765d61d8327deb882cf99','root at localhost','http://www.geeklog.net/','',getdate(),28800,NULL,3,0) set identity_insert {$_TABLES['users']} off From mjervis at qs1489.pair.com Thu May 1 14:35:16 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Thu, 01 May 2008 18:35:16 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin database.php, 1.46, 1.47 Message-ID: <20080501183516.D06CC10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin In directory qs1489.pair.com:/tmp/cvs-serv5455/public_html/admin Modified Files: database.php Log Message: Fixes for MSSQL install (Partial II) Index: database.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/database.php,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** database.php 29 Feb 2008 08:22:52 -0000 1.46 --- database.php 1 May 2008 18:35:14 -0000 1.47 *************** *** 287,291 **** // Perform the backup if asked if (SEC_checkToken()) { ! $display .= dobackup(); } } else if ($mode == 'delete') { --- 287,291 ---- // Perform the backup if asked if (SEC_checkToken()) { ! $display .= dobackup(); } } else if ($mode == 'delete') { From mjervis at qs1489.pair.com Thu May 1 14:35:16 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Thu, 01 May 2008 18:35:16 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes config.class.php, 1.36, 1.37 Message-ID: <20080501183516.EB66E10FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes In directory qs1489.pair.com:/tmp/cvs-serv5455/system/classes Modified Files: config.class.php Log Message: Fixes for MSSQL install (Partial II) Index: config.class.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/config.class.php,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** config.class.php 13 Apr 2008 11:28:12 -0000 1.36 --- config.class.php 1 May 2008 18:35:14 -0000 1.37 *************** *** 281,285 **** if ($_DB_dbms == 'mssql') { $sql_query = str_replace("\\'","''",$sql_query); ! $sql_query = str_replace('\\"','"',$sql_query); $_DB->dbQuery($sql_query, 0, 1); } else { --- 281,285 ---- if ($_DB_dbms == 'mssql') { $sql_query = str_replace("\\'","''",$sql_query); ! $sql_query = str_replace('\\"','""',$sql_query); $_DB->dbQuery($sql_query, 0, 1); } else { From dhaun at qs1489.pair.com Thu May 1 15:23:49 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 19:23:49 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system lib-security.php,1.67,1.68 Message-ID: <20080501192349.ED1B610FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system In directory qs1489.pair.com:/tmp/cvs-serv7076/system Modified Files: lib-security.php Log Message: Sanitize service filename Index: lib-security.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-security.php,v retrieving revision 1.67 retrieving revision 1.68 diff -C2 -d -r1.67 -r1.68 *** lib-security.php 9 Mar 2008 10:23:13 -0000 1.67 --- lib-security.php 1 May 2008 19:23:47 -0000 1.68 *************** *** 813,816 **** --- 813,817 ---- } + $service = COM_sanitizeFilename($service); $servicefile = $_CONF['path_system'] . 'classes/authentication/' . $service . '.auth.class.php'; From dhaun at qs1489.pair.com Thu May 1 15:26:47 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 19:26:47 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes/authentication/ldap - New directory Message-ID: <20080501192647.DC0E110FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes/authentication/ldap In directory qs1489.pair.com:/tmp/cvs-serv7249/ldap Log Message: Directory /cvsroot/geeklog/Geeklog-1.x/system/classes/authentication/ldap added to the repository From dhaun at qs1489.pair.com Thu May 1 15:27:50 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 19:27:50 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes/authentication LDAP.auth.class.php, NONE, 1.1 Message-ID: <20080501192750.19A6110FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes/authentication In directory qs1489.pair.com:/tmp/cvs-serv7297/system/classes/authentication Added Files: LDAP.auth.class.php Log Message: LDAP remote authentication module, provided by Jessica Blank / MTV Networks --- NEW FILE: LDAP.auth.class.php --- ascii2hex($without_salt[0]); } else { // assume no encryption $crypt_method = ''; $correct_cyphertext = $password; } } } switch ($crypt_method) { case 'md5': if (preg_match("/^\$/", $correct_cyphertext)) { // passwd/style-shadow MD5, starting with '$' $password_cyphertext = crypt($password); } else { // hexadecimal MD5 $password_cyphertext = md5($password); } break; case 'smd5'; // $salt was set above. $password_cyphertext = md5($password . $salt); break; case 'crypt': case 'des': $password_cyphertext = crypt($password, substr($correct_cyphertext, 0, 2)); break; default: // no encryption at all! $password_cyphertext = $password; break; } if ($password_cyphertext == $correct_cyphertext) { // Set some variables pulled from the LDAP server... $this->fullname = $A[0]['cn'][0]; $this->email = $A[0]['mail'][0]; return true; // Password given was CORRECT! } else { return false; // Password given was NOT correct. } } } } ?> From dhaun at qs1489.pair.com Thu May 1 15:27:50 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 19:27:50 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes/authentication/ldap config.php, NONE, 1.1 Message-ID: <20080501192750.2800E10FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes/authentication/ldap In directory qs1489.pair.com:/tmp/cvs-serv7297/system/classes/authentication/ldap Added Files: config.php Log Message: LDAP remote authentication module, provided by Jessica Blank / MTV Networks --- NEW FILE: config.php --- From dhaun at qs1489.pair.com Thu May 1 15:27:50 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 19:27:50 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs history,1.618,1.619 Message-ID: <20080501192750.0F6D510FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv7297/public_html/docs Modified Files: history Log Message: LDAP remote authentication module, provided by Jessica Blank / MTV Networks Index: history =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/history,v retrieving revision 1.618 retrieving revision 1.619 diff -C2 -d -r1.618 -r1.619 *** history 26 Apr 2008 21:32:13 -0000 1.618 --- history 1 May 2008 19:27:47 -0000 1.619 *************** *** 12,15 **** --- 12,16 ---- Other changes: + - LDAP remote authentication module, provided by Jessica Blank / MTV Networks - The {lang_attribute} can only properly be set in a multi-language setup (bug #0000616) [Dirk] From mjervis at qs1489.pair.com Thu May 1 15:43:44 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Thu, 01 May 2008 19:43:44 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin story.php,1.266,1.267 Message-ID: <20080501194344.4DD5210FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin In directory qs1489.pair.com:/tmp/cvs-serv7887/public_html/admin Modified Files: story.php Log Message: Story security. Index: story.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/story.php,v retrieving revision 1.266 retrieving revision 1.267 diff -C2 -d -r1.266 -r1.267 *** story.php 30 Dec 2007 12:15:47 -0000 1.266 --- story.php 1 May 2008 19:43:42 -0000 1.267 *************** *** 633,636 **** --- 633,638 ---- $story_templates->set_var('lang_cancel', $LANG_ADMIN['cancel']); $story_templates->set_var('lang_delete', $LANG_ADMIN['delete']); + $story_templates->set_var('gltoken_name', CSRF_TOKEN); + $story_templates->set_var('gltoken', SEC_createToken()); $story_templates->parse('output','editor'); $display .= $story_templates->finish($story_templates->get_var('output')); *************** *** 721,730 **** COM_accessLog ("User {$_USER['username']} tried to illegally delete story submission $sid."); echo COM_refresh ($_CONF['site_admin_url'] . '/index.php'); ! } else { DB_delete ($_TABLES['storysubmission'], 'sid', $sid, $_CONF['site_admin_url'] . '/moderation.php'); } ! } else { echo STORY_deleteStory ($sid); } } else if (($mode == $LANG_ADMIN['preview']) && !empty ($LANG_ADMIN['preview'])) { --- 723,738 ---- COM_accessLog ("User {$_USER['username']} tried to illegally delete story submission $sid."); echo COM_refresh ($_CONF['site_admin_url'] . '/index.php'); ! } else if (SEC_checkToken()) { DB_delete ($_TABLES['storysubmission'], 'sid', $sid, $_CONF['site_admin_url'] . '/moderation.php'); + } else { + COM_accessLog ("User {$_USER['username']} tried to illegally delete story submission $sid and failed CSRF checks."); + echo COM_refresh ($_CONF['site_admin_url'] . '/index.php'); } ! } else if (SEC_checkToken()) { echo STORY_deleteStory ($sid); + } else { + COM_accessLog ("User {$_USER['username']} tried to delete story and failed CSRF checks $sid."); + echo COM_refresh ($_CONF['site_admin_url'] . '/index.php'); } } else if (($mode == $LANG_ADMIN['preview']) && !empty ($LANG_ADMIN['preview'])) { *************** *** 760,764 **** $display .= COM_siteFooter(); echo $display; ! } else if (($mode == $LANG_ADMIN['save']) && !empty ($LANG_ADMIN['save'])) { submitstory (); } else { // 'cancel' or no mode at all --- 768,772 ---- $display .= COM_siteFooter(); echo $display; ! } else if (($mode == $LANG_ADMIN['save']) && !empty ($LANG_ADMIN['save']) && SEC_checkToken()) { submitstory (); } else { // 'cancel' or no mode at all From mjervis at qs1489.pair.com Thu May 1 15:43:44 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Thu, 01 May 2008 19:43:44 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes story.class.php, 1.24, 1.25 Message-ID: <20080501194344.769DF10FE17@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes In directory qs1489.pair.com:/tmp/cvs-serv7887/system/classes Modified Files: story.class.php Log Message: Story security. Index: story.class.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/story.class.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** story.class.php 12 Apr 2008 19:28:41 -0000 1.24 --- story.class.php 1 May 2008 19:43:42 -0000 1.25 *************** *** 373,377 **** $this->_expire = $story['expireunix']; } else { ! $this->_expire = ''; } --- 373,377 ---- $this->_expire = $story['expireunix']; } else { ! $this->_expire = '0'; } *************** *** 1508,1512 **** while( $start_pos !== false ) { /* Copy in to start to out */ ! $out .= MBYTE_substr($in, 0, $start_pos); /* Find end */ $end_pos = MBYTE_strpos($inlower, '[/raw]'); --- 1508,1512 ---- while( $start_pos !== false ) { /* Copy in to start to out */ ! $out .= MBYTE_substr($inlower, 0, $start_pos); /* Find end */ $end_pos = MBYTE_strpos($inlower, '[/raw]'); *************** *** 1542,1546 **** while( $start_pos !== false ) { /* Copy in to start to out */ ! $out .= MBYTE_substr($in, 0, $start_pos); /* Find end */ $end_pos = MBYTE_strpos($inlower, '[/code]'); --- 1542,1546 ---- while( $start_pos !== false ) { /* Copy in to start to out */ ! $out .= MBYTE_substr($inlower, 0, $start_pos); /* Find end */ $end_pos = MBYTE_strpos($inlower, '[/code]'); From mjervis at qs1489.pair.com Thu May 1 15:43:44 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Thu, 01 May 2008 19:43:44 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/admin/story storyeditor.thtml, 1.20, 1.21 storyeditor_advanced.thtml, 1.31, 1.32 Message-ID: <20080501194344.6794A10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/story In directory qs1489.pair.com:/tmp/cvs-serv7887/public_html/layout/professional/admin/story Modified Files: storyeditor.thtml storyeditor_advanced.thtml Log Message: Story security. Index: storyeditor.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/story/storyeditor.thtml,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** storyeditor.thtml 30 Dec 2007 12:16:37 -0000 1.20 --- storyeditor.thtml 1 May 2008 19:43:42 -0000 1.21 *************** *** 226,229 **** --- 226,230 ---- + Index: storyeditor_advanced.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/story/storyeditor_advanced.thtml,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** storyeditor_advanced.thtml 20 Jan 2008 08:37:41 -0000 1.31 --- storyeditor_advanced.thtml 1 May 2008 19:43:42 -0000 1.32 *************** *** 217,220 **** --- 217,221 ---- + From mjervis at qs1489.pair.com Thu May 1 15:43:44 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Thu, 01 May 2008 19:43:44 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs theme.html,1.75,1.76 Message-ID: <20080501194344.5915010FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv7887/public_html/docs Modified Files: theme.html Log Message: Story security. Index: theme.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/theme.html,v retrieving revision 1.75 retrieving revision 1.76 diff -C2 -d -r1.75 -r1.76 *** theme.html 24 Apr 2008 19:26:55 -0000 1.75 --- theme.html 1 May 2008 19:43:42 -0000 1.76 *************** *** 210,213 **** --- 210,215 ----backend directory was not tested',
--- 56,69 ----
2 => 'Zuverl?ssigkeit eingebaut',
3 => 'Geeklog-Installation',
! 4 => 'PHP 4.1.0 ben?tigt',
! 5 => 'Sorry, Geeklog ben?tigt mindestens PHP 4.1.0 (Du hast Version '),
! 6 => '). Bitte aktualisiere Deine PHP-Installation oder bitte Deinen Hosting-Provider darum.',
! 7 => 'Geeklog-Dateien nicht gefunden',
! 8 => 'Das Installations-Skript hat einige wichtige Geeklog-Dateien nicht gefunden. Wahrscheinlich hast Du diese in andere Verzeichnisse verschoben. Bitte gib hier die Pfade zu den Dateien und Verzeichnissen an:',
9 => 'Willkommen und Danke, dass Du Geeklog gew?hlt hast!',
! 10 => 'Datei/Verzeichnis',
! 11 => 'Zugriffsrechte',
! 12 => '?ndern auf',
! 13 => 'Derzeit',
14 => 'Change directory to',
15 => 'Export of Geeklog headlines is switched off. The backend directory was not tested',
***************
*** 71,77 ****
18 => 'Images in articles are disabled. The articles directory was not tested',
19 => 'Geeklog requires certain files and directories to be writeable by the web server. Below is a list of which files and directories need to be changed.',
! 20 => 'Warning!',
21 => 'Your Geeklog and site will not work properly until the errors listed above are corrected. Please make the necessary changes before you continue.',
! 22 => 'unkown',
23 => 'Bitte w?hle eine Installationsmethode:',
24 => 'Neuinstallation',
--- 71,77 ----
18 => 'Images in articles are disabled. The articles directory was not tested',
19 => 'Geeklog requires certain files and directories to be writeable by the web server. Below is a list of which files and directories need to be changed.',
! 20 => 'Warnung!',
21 => 'Your Geeklog and site will not work properly until the errors listed above are corrected. Please make the necessary changes before you continue.',
! 22 => 'unbekannt',
23 => 'Bitte w?hle eine Installationsmethode:',
24 => 'Neuinstallation',
***************
*** 110,114 ****
57 => 'Sorry, but the installer could not find the database you specified. Either the database does not exist or you misspelled the name. Please go back and try again.',
58 => '. Did you make sure the file is write-able by the web server?',
! 59 => 'Notice:',
60 => 'InnoDB tables are not supported by your version of MySQL. Would you like to continue the installation without InnoDB support?',
61 => 'zur?ck',
--- 110,114 ----
57 => 'Sorry, but the installer could not find the database you specified. Either the database does not exist or you misspelled the name. Please go back and try again.',
58 => '. Did you make sure the file is write-able by the web server?',
! 59 => 'Hinweis:',
60 => 'InnoDB tables are not supported by your version of MySQL. Would you like to continue the installation without InnoDB support?',
61 => 'zur?ck',
***************
*** 141,145 ****
88 => 'Change directory and containing files to',
89 => 'Aktuelle Version:',
! 90 => 'Empty database?',
91 => 'It appears that either your database is empty or the database credentials you entered are incorrect. Or maybe you wanted to perform a New Install (instead of an Upgrade)? Please go back and try again.',
92 => 'Benutze UTF-8'
--- 141,145 ----
88 => 'Change directory and containing files to',
89 => 'Aktuelle Version:',
! 90 => 'Leere Datenbank?',
91 => 'It appears that either your database is empty or the database credentials you entered are incorrect. Or maybe you wanted to perform a New Install (instead of an Upgrade)? Please go back and try again.',
92 => 'Benutze UTF-8'
From dhaun at qs1489.pair.com Fri May 2 07:32:11 2008
From: dhaun at qs1489.pair.com (Dirk Haun)
Date: Fri, 02 May 2008 11:32:11 +0000
Subject: [geeklog-cvs] Geeklog-1.x/sql/updates mssql_1.4.1_to_1.5.0.php, 1.14,
1.15
Message-ID: <20080502113211.E001E10FE12@qs1489.pair.com>
Update of /cvsroot/geeklog/Geeklog-1.x/sql/updates
In directory qs1489.pair.com:/tmp/cvs-serv40868/sql/updates
Modified Files:
mssql_1.4.1_to_1.5.0.php
Log Message:
Copied the code to initialize the config over from the MySQL file - the rest of the file is still incomplete
Index: mssql_1.4.1_to_1.5.0.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/sql/updates/mssql_1.4.1_to_1.5.0.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** mssql_1.4.1_to_1.5.0.php 8 Mar 2008 21:53:34 -0000 1.14
--- mssql_1.4.1_to_1.5.0.php 2 May 2008 11:32:09 -0000 1.15
***************
*** 51,55 ****
function create_ConfValues()
{
! global $_TABLES;
// Create conf_values table for new configuration system
DB_query ("
--- 51,56 ----
function create_ConfValues()
{
! global $_CONF, $_TABLES;
!
// Create conf_values table for new configuration system
DB_query ("
***************
*** 66,257 ****
ON [PRIMARY]
");
! require_once($_CONF['path_system'] . 'classes/config.class.php');
$c = config::get_instance();
! $c->add('path_html','','text',0,1,NULL,10,TRUE);
$c->add('site_url','','text',0,0,NULL,20,TRUE);
$c->add('site_admin_url','','text',0,0,NULL,30,TRUE);
- $c->add('site_mail','','text',0,3,NULL,40,TRUE);
- $c->add('noreply_mail','','text',0,3,NULL,50,TRUE);
$c->add('site_name','','text',0,0,NULL,60,TRUE);
$c->add('site_slogan','','text',0,0,NULL,70,TRUE);
$c->add('microsummary_short','GL: ','text',0,0,NULL,80,TRUE);
! $c->add('path_log','','text',0,1,NULL,90,TRUE);
! $c->add('path_language','','text',0,1,NULL,100,TRUE);
! $c->add('backup_path','','text',0,1,NULL,110,TRUE);
! $c->add('path_data','','text',0,1,NULL,120,TRUE);
! $c->add('path_images','','text',0,1,NULL,130,TRUE);
$c->add('have_pear','','select',0,4,1,135,TRUE);
$c->add('path_pear','','text',0,4,NULL,140,TRUE);
! $c->add('mail_settings',array ('backend' => 'mail', 'sendmail_path' => '/usr/bin/sendmail', 'sendmail_args' => '', 'host' => 'smtp.example.com','port' => '25', 'auth' => false, 'username' => 'smtp-username','password' => 'smtp-password'),'@text',0,3,NULL,160,TRUE);
! $c->add('allow_mysqldump',0,'select',0,5,0,170,TRUE);
$c->add('mysqldump_path','/usr/bin/mysqldump','text',0,5,NULL,175,TRUE);
$c->add('mysqldump_options','-Q','text',0,5,NULL,180,TRUE);
! $c->add('theme','professional','text',2,2,NULL,190,TRUE);
! $c->add('menu_elements',array('contribute','search','stats','directory','plugins'),'%text',2,2,NULL,200,TRUE);
! $c->add('path_themes','','text',2,2,NULL,210,TRUE);
! $c->add('disable_new_user_registration',FALSE,'select',4,6,0,220,TRUE);
! $c->add('allow_user_themes',1,'select',4,6,0,230,TRUE);
! $c->add('allow_user_language',1,'select',4,6,0,240,TRUE);
! $c->add('allow_user_photo',1,'select',4,6,0,250,TRUE);
! $c->add('allow_username_change',0,'select',4,6,0,260,TRUE);
! $c->add('allow_account_delete',0,'select',4,6,0,270,TRUE);
! $c->add('hide_author_exclusion',0,'select',4,6,0,280,TRUE);
! $c->add('show_fullname',0,'select',4,6,0,290,TRUE);
! $c->add('show_servicename',TRUE,'select',4,6,1,300,TRUE);
! $c->add('custom_registration',FALSE,'select',4,6,1,310,TRUE);
! $c->add('user_login_method',array('standard' => true, 'openid' => false, '3rdparty' => false),'@select',4,6,1,320,TRUE);
! $c->add('spamx',128,'text',4,8,NULL,330,TRUE);
! $c->add('sort_admin',TRUE,'select',7,9,1,340,TRUE);
! $c->add('language','english','text',6,11,NULL,350,TRUE);
! $c->add('locale','en_GB','text',6,10,NULL,360,TRUE);
! $c->add('date','%A, %B %d %Y @ %I:%M %p %Z','text',6,10,NULL,370,TRUE);
! $c->add('daytime','%m/%d %I:%M%p','text',6,10,NULL,380,TRUE);
! $c->add('shortdate','%x','text',6,10,NULL,390,TRUE);
! $c->add('dateonly','%d-%b','text',6,10,NULL,400,TRUE);
! $c->add('timeonly','%I:%M%p','text',6,10,NULL,410,TRUE);
! $c->add('week_start','Sun','text',6,10,14,420,TRUE);
! $c->add('hour_mode',12,'select',6,10,6,430,TRUE);
! $c->add('thousand_separator',",",'text',6,10,NULL,440,TRUE);
! $c->add('decimal_separator',".",'text',6,10,NULL,450,TRUE);
! $c->add('decimal_count',"2",'text',6,10,NULL,460,TRUE);
! $c->add('language_files',array('en'=>'english_utf-8', 'de'=>'german_formal_utf-8'),'*text',6,11,NULL,470,FALSE);
! $c->add('languages',array('en'=>'English', 'de'=>'Deutsch'),'*text',6,11,NULL,480,FALSE);
! $c->add('timezone','Etc/GMT-6','text',6,10,NULL,490,FALSE);
! $c->add('site_disabled_msg','Geeklog Site is down. Please come back soon.','text',0,0,NULL,510,TRUE);
! $c->add('rootdebug',FALSE,'select',7,12,1,520,TRUE);
! $c->add('cookie_session','gl_session','text',7,13,NULL,530,TRUE);
! $c->add('cookie_name','geeklog','text',7,13,NULL,540,TRUE);
! $c->add('cookie_password','password','text',7,13,NULL,550,TRUE);
! $c->add('cookie_theme','theme','text',7,13,NULL,560,TRUE);
! $c->add('cookie_language','language','text',7,13,NULL,570,TRUE);
! $c->add('cookie_ip',0,'select',7,13,0,580,TRUE);
! $c->add('default_perm_cookie_timeout',28800,'text',7,13,NULL,590,TRUE);
! $c->add('session_cookie_timeout',7200,'text',7,13,NULL,600,TRUE);
! $c->add('cookie_path','/','text',7,13,NULL,610,TRUE);
! $c->add('cookiedomain','','text',7,13,NULL,620,TRUE);
! $c->add('cookiesecure',0,'text',7,13,NULL,630,TRUE);
! $c->add('lastlogin',TRUE,'select',4,14,1,640,TRUE);
! $c->add('pdf_enabled',0,'select',7,7,0,660,TRUE);
! $c->add('num_search_results',10,'text',0,15,NULL,670,TRUE);
! $c->add('loginrequired',0,'select',4,14,0,680,TRUE);
! $c->add('submitloginrequired',0,'select',4,14,0,690,TRUE);
! $c->add('commentsloginrequired',0,'select',4,14,0,700,TRUE);
! $c->add('statsloginrequired',0,'select',4,14,0,710,TRUE);
! $c->add('searchloginrequired',0,'select',4,14,0,720,TRUE);
! $c->add('profileloginrequired',0,'select',4,14,0,730,TRUE);
! $c->add('emailuserloginrequired',0,'select',4,14,0,740,TRUE);
! $c->add('emailstoryloginrequired',0,'select',4,14,0,750,TRUE);
! $c->add('directoryloginrequired',0,'select',4,14,0,760,TRUE);
! $c->add('storysubmission',1,'select',4,17,0,770,TRUE);
! $c->add('usersubmission',0,'select',4,16,0,780,TRUE);
! $c->add('listdraftstories',0,'select',4,17,0,790,TRUE);
! $c->add('notification',array(),'%text',7,7,NULL,800,TRUE);
! $c->add('postmode','plaintext','select',4,17,5,810,TRUE);
! $c->add('speedlimit',45,'text',4,17,NULL,820,TRUE);
! $c->add('skip_preview',0,'text',4,17,NULL,830,TRUE);
! $c->add('advanced_editor',FALSE,'select',4,17,1,840,TRUE);
! $c->add('wikitext_editor',FALSE,'select',4,17,1,850,TRUE);
! $c->add('cron_schedule_interval',86400,'text',7,7,NULL,860,TRUE);
! $c->add('sortmethod','sortnum','text',3,18,NULL,870,TRUE);
! $c->add('showstorycount',1,'select',3,18,0,880,TRUE);
! $c->add('showsubmissioncount',1,'select',3,18,0,890,TRUE);
! $c->add('hide_home_link',0,'select',3,18,0,900,TRUE);
! $c->add('whosonline_threshold',300,'text',3,19,NULL,910,TRUE);
! $c->add('whosonline_anonymous',0,'select',3,19,0,920,TRUE);
! $c->add('emailstories',0,'select',3,20,0,930,TRUE);
! $c->add('emailstorieslength',1,'text',3,20,NULL,940,TRUE);
! $c->add('emailstoriesperdefault',0,'select',3,20,0,950,TRUE);
! $c->add('allow_domains','','text',4,16,NULL,960,TRUE);
! $c->add('disallow_domains','','text',4,16,NULL,970,TRUE);
! $c->add('newstoriesinterval',86400,'text',3,21,NULL,980,TRUE);
! $c->add('newcommentsinterval',172800,'text',3,21,NULL,990,TRUE);
! $c->add('newtrackbackinterval',172800,'text',3,21,NULL,1000,TRUE);
! $c->add('hidenewstories',0,'select',3,21,0,1010,TRUE);
! $c->add('hidenewcomments',0,'select',3,21,0,1020,TRUE);
! $c->add('hidenewtrackbacks',0,'select',3,21,0,1030,TRUE);
! $c->add('hidenewplugins',0,'select',3,21,0,1040,TRUE);
! $c->add('title_trim_length',20,'text',3,21,NULL,1050,TRUE);
! $c->add('trackback_enabled',TRUE,'select',1,22,1,1060,TRUE);
! $c->add('pingback_enabled',TRUE,'select',1,23,1,1070,TRUE);
! $c->add('ping_enabled',TRUE,'select',1,23,1,1080,TRUE);
! $c->add('trackback_code',0,'select',1,22,3,1090,TRUE);
! $c->add('multiple_trackbacks',0,'select',1,22,2,1100,TRUE);
! $c->add('trackbackspeedlimit',300,'text',1,22,NULL,1110,TRUE);
! $c->add('check_trackback_link',2,'select',1,22,4,1120,TRUE);
! $c->add('pingback_self',0,'select',1,23,13,1130,TRUE);
! $c->add('pingback_excerpt',TRUE,'select',1,23,1,1140,TRUE);
! $c->add('link_documentation',1,'select',7,9,0,1150,TRUE);
! $c->add('link_versionchecker',1,'select',7,9,0,1160,TRUE);
! $c->add('maximagesperarticle',5,'text',1,24,NULL,1170,TRUE);
! $c->add('limitnews',10,'text',1,24,NULL,1180,TRUE);
! $c->add('minnews',1,'text',1,24,NULL,1190,TRUE);
! $c->add('contributedbyline',1,'select',1,24,0,1200,TRUE);
! $c->add('hideviewscount',0,'select',1,24,0,1210,TRUE);
! $c->add('hideemailicon',0,'select',1,24,0,1220,TRUE);
! $c->add('hideprintericon',0,'select',1,24,0,1230,TRUE);
! $c->add('allow_page_breaks',1,'select',1,24,0,1240,TRUE);
! $c->add('page_break_comments','last','select',1,24,7,1250,TRUE);
! $c->add('article_image_align','right','select',1,24,8,1260,TRUE);
! $c->add('show_topic_icon',1,'select',1,24,0,1270,TRUE);
! $c->add('draft_flag',0,'select',1,24,0,1280,TRUE);
! $c->add('frontpage',1,'select',1,24,0,1290,TRUE);
! $c->add('hide_no_news_msg',0,'select',1,24,0,1300,TRUE);
! $c->add('hide_main_page_navigation',0,'select',1,24,0,1310,TRUE);
! $c->add('onlyrootfeatures',0,'select',1,24,0,1320,TRUE);
! $c->add('aftersave_story','item','select',1,24,9,1330,TRUE);
! $c->add('aftersave_user','item','select',1,24,9,1340,TRUE);
! $c->add('show_right_blocks',FALSE,'select',2,25,1,1350,TRUE);
! $c->add('showfirstasfeatured',0,'select',2,25,0,1360,TRUE);
! $c->add('backend',1,'select',0,26,0,1380,TRUE);
! $c->add('rdf_file','','text',0,26,NULL,1390,TRUE);
! $c->add('rdf_limit',10,'text',0,26,NULL,1400,TRUE);
! $c->add('rdf_storytext',1,'text',0,26,NULL,1410,TRUE);
! $c->add('rdf_language','en-gb','text',0,26,NULL,1420,TRUE);
! $c->add('syndication_max_headlines',0,'text',0,26,NULL,1430,TRUE);
! $c->add('copyrightyear','2008','text',0,0,NULL,1440,FALSE);
! $c->add('image_lib','','select',5,27,10,1450,TRUE);
! $c->add('path_to_mogrify','','text',5,27,NULL,1460,FALSE);
! $c->add('path_to_netpbm','','text',5,27,NULL,1470,FALSE);
! $c->add('debug_image_upload',FALSE,'select',5,28,1,1480,FALSE);
! $c->add('keep_unscaled_image',0,'select',5,28,0,1490,TRUE);
! $c->add('allow_user_scaling',1,'select',5,28,0,1500,TRUE);
! $c->add('max_image_width',160,'text',5,29,NULL,1510,TRUE);
! $c->add('max_image_height',160,'text',5,29,NULL,1520,TRUE);
! $c->add('max_image_size',1048576,'text',5,29,NULL,1530,TRUE);
! $c->add('max_topicicon_width',48,'text',5,30,NULL,1540,TRUE);
! $c->add('max_topicicon_height',48,'text',5,30,NULL,1550,TRUE);
! $c->add('max_topicicon_size',65536,'text',5,30,NULL,1560,TRUE);
! $c->add('max_photo_width',128,'text',5,31,NULL,1570,TRUE);
! $c->add('max_photo_height',128,'text',5,31,NULL,1580,TRUE);
! $c->add('max_photo_size',65536,'text',5,31,NULL,1590,TRUE);
! $c->add('use_gravatar',FALSE,'select',5,32,1,1600,TRUE);
! $c->add('gravatar_rating','R','text',5,32,NULL,1610,FALSE);
! $c->add('force_photo_width',75,'text',5,31,NULL,1620,FALSE);
! $c->add('default_photo','http://example.com/default.jpg','text',5,31,NULL,1630,FALSE);
! $c->add('commentspeedlimit',45,'text',4,33,NULL,1640,TRUE);
! $c->add('comment_limit',100,'text',4,33,NULL,1650,TRUE);
! $c->add('comment_mode','threaded','select',4,33,11,1660,TRUE);
! $c->add('comment_code',0,'select',4,33,0,1670,TRUE);
! $c->add('passwordspeedlimit',300,'text',4,14,NULL,1680,TRUE);
! $c->add('login_attempts',3,'text',4,14,NULL,1690,TRUE);
! $c->add('login_speedlimit',300,'text',4,14,NULL,1700,TRUE);
! $c->add('user_html',array ('p' => array(), 'b' => array(), 'strong' => array(),'i' => array(), 'a' => array('href' => 1, 'title' => 1, 'rel' => 1),'em' => array(),'br' => array(),'tt' => array(),'hr' => array(), 'li' => array(), 'ol' => array(), 'ul' => array(), 'code' => array(), 'pre' => array()),'**placeholder',7,34,NULL,1710,TRUE);
$c->add('admin_html',array ('p' => array('class' => 1, 'id' => 1, 'align' => 1), 'div' => array('class' => 1, 'id' => 1), 'span' => array('class' => 1, 'id' => 1), 'table' => array('class' => 1, 'id' => 1, 'width' => 1, 'border' => 1, 'cellspacing' => 1, 'cellpadding' => 1), 'tr' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1), 'th' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1, 'colspan' => 1, 'rowspan' => 1), 'td' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1, 'colspan' => 1, 'rowspan' => 1)),'**placeholder',7,34,NULL,1720,TRUE);
$c->add('skip_html_filter_for_root',0,'select',7,34,0,1730,TRUE);
! $c->add('allowed_protocols',array('http','ftp','https'),'%text',0,0,NULL,1740,TRUE);
! $c->add('disable_autolinks',0,'select',7,7,0,1750,TRUE);
$c->add('censormode',1,'select',7,35,0,1760,TRUE);
$c->add('censorreplace','*censormode*','text',7,35,NULL,1770,TRUE);
$c->add('censorlist', array('fuck','cunt','fucker','fucking','pussy','cock','c0ck',' cum ','twat','clit','bitch','fuk','fuking','motherfucker'),'%text',7,35,NULL,1780,TRUE);
$c->add('ip_lookup','/nettools/whois.php?domain=*','text',7,36,NULL,1790,FALSE);
! $c->add('url_rewrite',FALSE,'select',0,0,1,1800,TRUE);
! $c->add('default_permissions_block',array(3, 2, 2, 2),'@select',7,37,12,1810,TRUE);
$c->add('default_permissions_story',array(3, 2, 2, 2),'@select',7,37,12,1820,TRUE);
! $c->add('default_permissions_topic',array(3, 2, 2, 2),'@select',7,37,12,1830,TRUE);
! $c->add('disable_webservices', 0, 'select', 7, 38, 0, 1840, TRUE);
! $c->add('restrict_webservices', 0, 'select', 7, 38, 0, 1850, TRUE);
! $c->add('atom_max_stories', 10, 'text', 7, 38, 0, 1860, TRUE);
}
--- 67,365 ----
ON [PRIMARY]
");
!
! require_once $_CONF['path_system'] . 'classes/config.class.php';
$c = config::get_instance();
! // Subgroup: Site
! $c->add('sg_site', NULL, 'subgroup', 0, 0, NULL, 0, TRUE);
!
! $c->add('fs_site', NULL, 'fieldset', 0, 0, NULL, 0, TRUE);
$c->add('site_url','','text',0,0,NULL,20,TRUE);
$c->add('site_admin_url','','text',0,0,NULL,30,TRUE);
$c->add('site_name','','text',0,0,NULL,60,TRUE);
$c->add('site_slogan','','text',0,0,NULL,70,TRUE);
$c->add('microsummary_short','GL: ','text',0,0,NULL,80,TRUE);
! $c->add('site_disabled_msg','Geeklog Site is down. Please come back soon.','text',0,0,NULL,510,TRUE);
! $c->add('copyrightyear','2008','text',0,0,NULL,1440,FALSE);
! $c->add('url_rewrite',FALSE,'select',0,0,1,1800,TRUE);
!
! $c->add('fs_mail', NULL, 'fieldset', 0, 1, NULL, 0, TRUE);
! $c->add('site_mail','','text',0,1,NULL,40,TRUE);
! $c->add('noreply_mail','','text',0,1,NULL,50,TRUE);
! $c->add('mail_settings',array ('backend' => 'mail', 'sendmail_path' => '/usr/bin/sendmail', 'sendmail_args' => '', 'host' => 'smtp.example.com','port' => '25', 'auth' => false, 'username' => 'smtp-username','password' => 'smtp-password'),'@text',0,1,NULL,160,TRUE);
!
! $c->add('fs_syndication', NULL, 'fieldset', 0, 2, NULL, 0, TRUE);
! $c->add('backend',1,'select',0,2,0,1380,TRUE);
! $c->add('rdf_file','','text',0,2,NULL,1390,TRUE);
! $c->add('rdf_limit',10,'text',0,2,NULL,1400,TRUE);
! $c->add('rdf_storytext',1,'text',0,2,NULL,1410,TRUE);
! $c->add('rdf_language','en-gb','text',0,2,NULL,1420,TRUE);
! $c->add('syndication_max_headlines',0,'text',0,2,NULL,1430,TRUE);
!
! $c->add('fs_paths', NULL, 'fieldset', 0, 3, NULL, 0, TRUE);
! $c->add('path_html','','text',0,3,NULL,10,TRUE);
! $c->add('path_log','','text',0,3,NULL,90,TRUE);
! $c->add('path_language','','text',0,3,NULL,100,TRUE);
! $c->add('backup_path','','text',0,3,NULL,110,TRUE);
! $c->add('path_data','','text',0,3,NULL,120,TRUE);
! $c->add('path_images','','text',0,3,NULL,130,TRUE);
!
! $c->add('fs_pear', NULL, 'fieldset', 0, 4, NULL, 0, TRUE);
$c->add('have_pear','','select',0,4,1,135,TRUE);
$c->add('path_pear','','text',0,4,NULL,140,TRUE);
!
! $c->add('fs_mysql', NULL, 'fieldset', 0, 5, NULL, 0, TRUE);
! $c->add('allow_mysqldump',1,'select',0,5,0,170,TRUE);
$c->add('mysqldump_path','/usr/bin/mysqldump','text',0,5,NULL,175,TRUE);
$c->add('mysqldump_options','-Q','text',0,5,NULL,180,TRUE);
!
! $c->add('fs_search', NULL, 'fieldset', 0, 6, NULL, 0, TRUE);
! $c->add('num_search_results',10,'text',0,6,NULL,670,TRUE);
!
! // Subgroup: Stories and Trackback
! $c->add('sg_stories', NULL, 'subgroup', 1, 0, NULL, 0, TRUE);
!
! $c->add('fs_story', NULL, 'fieldset', 1, 7, NULL, 0, TRUE);
! $c->add('maximagesperarticle',5,'text',1,7,NULL,1170,TRUE);
! $c->add('limitnews',10,'text',1,7,NULL,1180,TRUE);
! $c->add('minnews',1,'text',1,7,NULL,1190,TRUE);
! $c->add('contributedbyline',1,'select',1,7,0,1200,TRUE);
! $c->add('hideviewscount',0,'select',1,7,0,1210,TRUE);
! $c->add('hideemailicon',0,'select',1,7,0,1220,TRUE);
! $c->add('hideprintericon',0,'select',1,7,0,1230,TRUE);
! $c->add('allow_page_breaks',1,'select',1,7,0,1240,TRUE);
! $c->add('page_break_comments','last','select',1,7,7,1250,TRUE);
! $c->add('article_image_align','right','select',1,7,8,1260,TRUE);
! $c->add('show_topic_icon',1,'select',1,7,0,1270,TRUE);
! $c->add('draft_flag',0,'select',1,7,0,1280,TRUE);
! $c->add('frontpage',1,'select',1,7,0,1290,TRUE);
! $c->add('hide_no_news_msg',0,'select',1,7,0,1300,TRUE);
! $c->add('hide_main_page_navigation',0,'select',1,7,0,1310,TRUE);
! $c->add('onlyrootfeatures',0,'select',1,7,0,1320,TRUE);
! $c->add('aftersave_story','list','select',1,7,9,1330,TRUE);
!
! $c->add('fs_trackback', NULL, 'fieldset', 1, 8, NULL, 0, TRUE);
! $c->add('trackback_enabled',TRUE,'select',1,8,1,1060,TRUE);
! $c->add('trackback_code',0,'select',1,8,3,1070,TRUE);
! $c->add('trackbackspeedlimit',300,'text',1,8,NULL,1080,TRUE);
! $c->add('check_trackback_link',2,'select',1,8,4,1090,TRUE);
! $c->add('multiple_trackbacks',0,'select',1,8,2,1100,TRUE);
!
! $c->add('fs_pingback', NULL, 'fieldset', 1, 9, NULL, 0, TRUE);
! $c->add('pingback_enabled',TRUE,'select',1,9,1,1110,TRUE);
! $c->add('pingback_excerpt',TRUE,'select',1,9,1,1120,TRUE);
! $c->add('pingback_self',0,'select',1,9,13,1130,TRUE);
! $c->add('ping_enabled',TRUE,'select',1,9,1,1140,TRUE);
!
! // Subgroup: Theme
! $c->add('sg_theme', NULL, 'subgroup', 2, 0, NULL, 0, TRUE);
!
! $c->add('fs_theme', NULL, 'fieldset', 2, 10, NULL, 0, TRUE);
! $c->add('theme','professional','select',2,10,NULL,190,TRUE);
! $c->add('menu_elements',array('contribute','search','stats','directory','plugins'),'%text',2,10,NULL,200,TRUE);
! $c->add('path_themes','','text',2,10,NULL,210,TRUE);
!
! $c->add('fs_theme_advanced', NULL, 'fieldset', 2, 11, NULL, 0, TRUE);
! $c->add('show_right_blocks',FALSE,'select',2,11,1,1350,TRUE);
! $c->add('showfirstasfeatured',0,'select',2,11,0,1360,TRUE);
!
! // Subgroup: Blocks
! $c->add('sg_blocks', NULL, 'subgroup', 3, 0, NULL, 0, TRUE);
!
! $c->add('fs_admin_block', NULL, 'fieldset', 3, 12, NULL, 0, TRUE);
! $c->add('sort_admin',TRUE,'select',3,12,1,340,TRUE);
! $c->add('link_documentation',1,'select',3,12,0,1150,TRUE);
! $c->add('link_versionchecker',1,'select',3,12,0,1160,TRUE);
!
! $c->add('fs_topics_block', NULL, 'fieldset', 3, 13, NULL, 0, TRUE);
! $c->add('sortmethod','sortnum','select',3,13,15,870,TRUE);
! $c->add('showstorycount',1,'select',3,13,0,880,TRUE);
! $c->add('showsubmissioncount',1,'select',3,13,0,890,TRUE);
! $c->add('hide_home_link',0,'select',3,13,0,900,TRUE);
!
! $c->add('fs_whosonline_block', NULL, 'fieldset', 3, 14, NULL, 0, TRUE);
! $c->add('whosonline_threshold',300,'text',3,14,NULL,910,TRUE);
! $c->add('whosonline_anonymous',0,'select',3,14,0,920,TRUE);
!
! $c->add('fs_whatsnew_block', NULL, 'fieldset', 3, 15, NULL, 0, TRUE);
! $c->add('newstoriesinterval',86400,'text',3,15,NULL,980,TRUE);
! $c->add('newcommentsinterval',172800,'text',3,15,NULL,990,TRUE);
! $c->add('newtrackbackinterval',172800,'text',3,15,NULL,1000,TRUE);
! $c->add('hidenewstories',0,'select',3,15,0,1010,TRUE);
! $c->add('hidenewcomments',0,'select',3,15,0,1020,TRUE);
! $c->add('hidenewtrackbacks',0,'select',3,15,0,1030,TRUE);
! $c->add('hidenewplugins',0,'select',3,15,0,1040,TRUE);
! $c->add('title_trim_length',20,'text',3,15,NULL,1050,TRUE);
!
! // Subgroup: Users and Submissions
! $c->add('sg_users', NULL, 'subgroup', 4, 0, NULL, 0, TRUE);
!
! $c->add('fs_users', NULL, 'fieldset', 4, 16, NULL, 0, TRUE);
! $c->add('disable_new_user_registration',FALSE,'select',4,16,0,220,TRUE);
! $c->add('allow_user_themes',1,'select',4,16,0,230,TRUE);
! $c->add('allow_user_language',1,'select',4,16,0,240,TRUE);
! $c->add('allow_user_photo',1,'select',4,16,0,250,TRUE);
! $c->add('allow_username_change',0,'select',4,16,0,260,TRUE);
! $c->add('allow_account_delete',0,'select',4,16,0,270,TRUE);
! $c->add('hide_author_exclusion',0,'select',4,16,0,280,TRUE);
! $c->add('show_fullname',0,'select',4,16,0,290,TRUE);
! $c->add('show_servicename',TRUE,'select',4,16,1,300,TRUE);
! $c->add('custom_registration',FALSE,'select',4,16,1,310,TRUE);
! $c->add('user_login_method',array('standard' => true, 'openid' => false, '3rdparty' => false),'@select',4,16,1,320,TRUE);
! $c->add('aftersave_user','item','select',4,16,9,1340,TRUE);
!
! $c->add('fs_spamx', NULL, 'fieldset', 4, 17, NULL, 0, TRUE);
! $c->add('spamx',128,'text',4,17,NULL,330,TRUE);
!
! $c->add('fs_login', NULL, 'fieldset', 4, 18, NULL, 0, TRUE);
! $c->add('lastlogin',TRUE,'select',4,18,1,640,TRUE);
! $c->add('loginrequired',0,'select',4,18,0,680,TRUE);
! $c->add('submitloginrequired',0,'select',4,18,0,690,TRUE);
! $c->add('commentsloginrequired',0,'select',4,18,0,700,TRUE);
! $c->add('statsloginrequired',0,'select',4,18,0,710,TRUE);
! $c->add('searchloginrequired',0,'select',4,18,16,720,TRUE);
! $c->add('profileloginrequired',0,'select',4,18,0,730,TRUE);
! $c->add('emailuserloginrequired',0,'select',4,18,0,740,TRUE);
! $c->add('emailstoryloginrequired',0,'select',4,18,0,750,TRUE);
! $c->add('directoryloginrequired',0,'select',4,18,0,760,TRUE);
! $c->add('passwordspeedlimit',300,'text',4,18,NULL,1680,TRUE);
! $c->add('login_attempts',3,'text',4,18,NULL,1690,TRUE);
! $c->add('login_speedlimit',300,'text',4,18,NULL,1700,TRUE);
!
! $c->add('fs_user_submission', NULL, 'fieldset', 4, 19, NULL, 0, TRUE);
! $c->add('usersubmission',0,'select',4,19,0,780,TRUE);
! $c->add('allow_domains','','text',4,19,NULL,960,TRUE);
! $c->add('disallow_domains','','text',4,19,NULL,970,TRUE);
!
! $c->add('fs_submission', NULL, 'fieldset', 4, 20, NULL, 0, TRUE);
! $c->add('storysubmission',1,'select',4,20,0,770,TRUE);
! $c->add('listdraftstories',0,'select',4,20,0,790,TRUE);
! $c->add('postmode','plaintext','select',4,20,5,810,TRUE);
! $c->add('speedlimit',45,'text',4,20,NULL,820,TRUE);
! $c->add('skip_preview',0,'select',4,20,0,830,TRUE);
! $c->add('advanced_editor',FALSE,'select',4,20,1,840,TRUE);
! $c->add('wikitext_editor',FALSE,'select',4,20,1,850,TRUE);
!
! $c->add('fs_comments', NULL, 'fieldset', 4, 21, NULL, 0, TRUE);
! $c->add('commentspeedlimit',45,'text',4,21,NULL,1640,TRUE);
! $c->add('comment_limit',100,'text',4,21,NULL,1650,TRUE);
! $c->add('comment_mode','threaded','select',4,21,11,1660,TRUE);
! $c->add('comment_code',0,'select',4,21,17,1670,TRUE);
!
! // Subgroup: Images
! $c->add('sg_images', NULL, 'subgroup', 5, 0, NULL, 0, TRUE);
!
! $c->add('fs_imagelib', NULL, 'fieldset', 5, 22, NULL, 0, TRUE);
! $c->add('image_lib','','select',5,22,10,1450,TRUE);
! $c->add('path_to_mogrify','','text',5,22,NULL,1460,FALSE);
! $c->add('path_to_netpbm','','text',5,22,NULL,1470,FALSE);
!
! $c->add('fs_upload', NULL, 'fieldset', 5, 23, NULL, 0, TRUE);
! $c->add('keep_unscaled_image',0,'select',5,23,0,1480,TRUE);
! $c->add('allow_user_scaling',1,'select',5,23,0,1490,TRUE);
! $c->add('debug_image_upload',FALSE,'select',5,23,1,1500,TRUE);
!
! $c->add('fs_articleimg', NULL, 'fieldset', 5, 24, NULL, 0, TRUE);
! $c->add('max_image_width',160,'text',5,24,NULL,1510,TRUE);
! $c->add('max_image_height',160,'text',5,24,NULL,1520,TRUE);
! $c->add('max_image_size',1048576,'text',5,24,NULL,1530,TRUE);
!
! $c->add('fs_topicicon', NULL, 'fieldset', 5, 25, NULL, 0, TRUE);
! $c->add('max_topicicon_width',48,'text',5,25,NULL,1540,TRUE);
! $c->add('max_topicicon_height',48,'text',5,25,NULL,1550,TRUE);
! $c->add('max_topicicon_size',65536,'text',5,25,NULL,1560,TRUE);
!
! $c->add('fs_userphoto', NULL, 'fieldset', 5, 26, NULL, 0, TRUE);
! $c->add('max_photo_width',128,'text',5,26,NULL,1570,TRUE);
! $c->add('max_photo_height',128,'text',5,26,NULL,1580,TRUE);
! $c->add('max_photo_size',65536,'text',5,26,NULL,1590,TRUE);
! $c->add('force_photo_width',75,'text',5,26,NULL,1620,FALSE);
! $c->add('default_photo','http://example.com/default.jpg','text',5,26,NULL,1630,FALSE);
!
! $c->add('fs_gravatar', NULL, 'fieldset', 5, 27, NULL, 0, TRUE);
! $c->add('use_gravatar',FALSE,'select',5,27,1,1600,TRUE);
! $c->add('gravatar_rating','R','text',5,27,NULL,1610,FALSE);
!
! // Subgroup: Languages and Locale
! $c->add('sg_locale', NULL, 'subgroup', 6, 0, NULL, 0, TRUE);
!
! $c->add('fs_language', NULL, 'fieldset', 6, 28, NULL, 0, TRUE);
! $c->add('language','english','select',6,28,NULL,350,TRUE);
! $c->add('language_files',array('en'=>'english_utf-8', 'de'=>'german_formal_utf-8'),'*text',6,28,NULL,470,FALSE);
! $c->add('languages',array('en'=>'English', 'de'=>'Deutsch'),'*text',6,28,NULL,480,FALSE);
!
! $c->add('fs_locale', NULL, 'fieldset', 6, 29, NULL, 0, TRUE);
! $c->add('locale','en_GB','text',6,29,NULL,360,TRUE);
! $c->add('date','%A, %B %d %Y @ %I:%M %p %Z','text',6,29,NULL,370,TRUE);
! $c->add('daytime','%m/%d %I:%M%p','text',6,29,NULL,380,TRUE);
! $c->add('shortdate','%x','text',6,29,NULL,390,TRUE);
! $c->add('dateonly','%d-%b','text',6,29,NULL,400,TRUE);
! $c->add('timeonly','%I:%M%p','text',6,29,NULL,410,TRUE);
! $c->add('week_start','Sun','select',6,29,14,420,TRUE);
! $c->add('hour_mode',12,'select',6,29,6,430,TRUE);
! $c->add('thousand_separator',",",'text',6,29,NULL,440,TRUE);
! $c->add('decimal_separator',".",'text',6,29,NULL,450,TRUE);
! $c->add('decimal_count',"2",'text',6,29,NULL,460,TRUE);
! $c->add('timezone','Etc/GMT-6','text',6,29,NULL,490,FALSE);
!
! // Subgroup: Miscellaneous
! $c->add('sg_misc', NULL, 'subgroup', 7, 0, NULL, 0, TRUE);
!
! $c->add('fs_cookies', NULL, 'fieldset', 7, 30, NULL, 0, TRUE);
! $c->add('cookie_session','gl_session','text',7,30,NULL,530,TRUE);
! $c->add('cookie_name','geeklog','text',7,30,NULL,540,TRUE);
! $c->add('cookie_password','password','text',7,30,NULL,550,TRUE);
! $c->add('cookie_theme','theme','text',7,30,NULL,560,TRUE);
! $c->add('cookie_language','language','text',7,30,NULL,570,TRUE);
! $c->add('cookie_tzid','timezone','text',7,30,NULL,575,TRUE);
! $c->add('cookie_ip',0,'select',7,30,0,580,TRUE);
! $c->add('default_perm_cookie_timeout',28800,'text',7,30,NULL,590,TRUE);
! $c->add('session_cookie_timeout',7200,'text',7,30,NULL,600,TRUE);
! $c->add('cookie_path','/','text',7,30,NULL,610,TRUE);
! $c->add('cookiedomain','','text',7,30,NULL,620,TRUE);
! $c->add('cookiesecure',FALSE,'select',7,30,1,630,TRUE);
!
! $c->add('fs_misc', NULL, 'fieldset', 7, 31, NULL, 0, TRUE);
! $c->add('pdf_enabled',0,'select',7,31,0,660,TRUE);
! $c->add('notification',array(),'%text',7,31,NULL,800,TRUE);
! $c->add('cron_schedule_interval',86400,'text',7,31,NULL,860,TRUE);
! $c->add('disable_autolinks',0,'select',7,31,0,1750,TRUE);
!
! $c->add('fs_debug', NULL, 'fieldset', 7, 32, NULL, 0, TRUE);
! $c->add('rootdebug',FALSE,'select',7,32,1,520,TRUE);
!
! $c->add('fs_daily_digest', NULL, 'fieldset', 7, 33, NULL, 0, TRUE);
! $c->add('emailstories',0,'select',7,33,0,930,TRUE);
! $c->add('emailstorieslength',1,'text',7,33,NULL,940,TRUE);
! $c->add('emailstoriesperdefault',0,'select',7,33,0,950,TRUE);
!
! $c->add('fs_htmlfilter', NULL, 'fieldset', 7, 34, NULL, 0, TRUE);
! $c->add('user_html',array ('p' => array(), 'b' => array(), 'strong' => array(),'i' => array(), 'a' => array('href' => 1, 'title' => 1, 'rel' => 1),'em' => array(),'br' => array(),'tt' => array(),'hr' => array(), 'li' => array(), 'ol' => array(), 'ul' => array(), 'code' => array(), 'pre' => array()),'**placeholder',7,34,NULL,1710,TRUE);
$c->add('admin_html',array ('p' => array('class' => 1, 'id' => 1, 'align' => 1), 'div' => array('class' => 1, 'id' => 1), 'span' => array('class' => 1, 'id' => 1), 'table' => array('class' => 1, 'id' => 1, 'width' => 1, 'border' => 1, 'cellspacing' => 1, 'cellpadding' => 1), 'tr' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1), 'th' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1, 'colspan' => 1, 'rowspan' => 1), 'td' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1, 'colspan' => 1, 'rowspan' => 1)),'**placeholder',7,34,NULL,1720,TRUE);
$c->add('skip_html_filter_for_root',0,'select',7,34,0,1730,TRUE);
! $c->add('allowed_protocols',array('http','ftp','https'),'%text',7,34,NULL,1740,TRUE);
!
! $c->add('fs_censoring', NULL, 'fieldset', 7, 35, NULL, 0, TRUE);
$c->add('censormode',1,'select',7,35,0,1760,TRUE);
$c->add('censorreplace','*censormode*','text',7,35,NULL,1770,TRUE);
$c->add('censorlist', array('fuck','cunt','fucker','fucking','pussy','cock','c0ck',' cum ','twat','clit','bitch','fuk','fuking','motherfucker'),'%text',7,35,NULL,1780,TRUE);
+
+ $c->add('fs_iplookup', NULL, 'fieldset', 7, 36, NULL, 0, TRUE);
$c->add('ip_lookup','/nettools/whois.php?domain=*','text',7,36,NULL,1790,FALSE);
!
! $c->add('fs_perm_story', NULL, 'fieldset', 7, 37, NULL, 0, TRUE);
$c->add('default_permissions_story',array(3, 2, 2, 2),'@select',7,37,12,1820,TRUE);
!
! $c->add('fs_perm_topic', NULL, 'fieldset', 7, 38, NULL, 0, TRUE);
! $c->add('default_permissions_topic',array(3, 2, 2, 2),'@select',7,38,12,1830,TRUE);
!
! $c->add('fs_perm_block', NULL, 'fieldset', 7, 39, NULL, 0, TRUE);
! $c->add('default_permissions_block',array(3, 2, 2, 2),'@select',7,39,12,1810,TRUE);
!
! $c->add('fs_webservices', NULL, 'fieldset', 7, 40, NULL, 0, TRUE);
! $c->add('disable_webservices', 0, 'select', 7, 40, 0, 1840, TRUE);
! $c->add('restrict_webservices', 0, 'select', 7, 40, 0, 1850, TRUE);
! $c->add('atom_max_stories', 10, 'text', 7, 40, 0, 1860, TRUE);
}
From dhaun at qs1489.pair.com Fri May 2 07:44:35 2008
From: dhaun at qs1489.pair.com (Dirk Haun)
Date: Fri, 02 May 2008 11:44:35 +0000
Subject: [geeklog-cvs] Geeklog-1.x/system/pear README,1.3,1.4
Message-ID: <20080502114435.44A3A10FE12@qs1489.pair.com>
Update of /cvsroot/geeklog/Geeklog-1.x/system/pear
In directory qs1489.pair.com:/tmp/cvs-serv41346
Modified Files:
README
Log Message:
Updated PEAR README
Index: README
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/pear/README,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** README 11 Feb 2006 12:28:43 -0000 1.3
--- README 2 May 2008 11:44:33 -0000 1.4
***************
*** 1,12 ****
This directory contains the PEAR packages that are needed by Geeklog. If you
! don't have PEAR installed on your webserver, simply set
!
! $_CONF['have_pear'] = false;
!
! in config.php and Geeklog will pick up the PEAR packages from here.
Currently, Geeklog uses the following PEAR packages:
- PEAR
- HTTP_Request
- Mail
--- 1,11 ----
This directory contains the PEAR packages that are needed by Geeklog. If you
! don't have PEAR installed on your webserver, simply set the "Have Pear?" option
! in the configutation to "False" and Geeklog will pick up the PEAR packages from
! here.
Currently, Geeklog uses the following PEAR packages:
- PEAR
+ - Date
- HTTP_Request
- Mail
***************
*** 15,18 ****
--- 14,18 ----
- Net_URL
- PHP_Compat
+ - Text_Wiki
- XML_RPC
From dhaun at qs1489.pair.com Fri May 2 08:08:09 2008
From: dhaun at qs1489.pair.com (Dirk Haun)
Date: Fri, 02 May 2008 12:08:09 +0000
Subject: [geeklog-cvs] Geeklog-1.x/plugins/calendar/sql mssql_install.php,
1.4, 1.5 mysql_install.php, 1.2, 1.3
Message-ID: <20080502120809.DB1E210FE12@qs1489.pair.com>
Update of /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/sql
In directory qs1489.pair.com:/tmp/cvs-serv42113/calendar/sql
Modified Files:
mssql_install.php mysql_install.php
Log Message:
An attempt to update the MS SQL for the plugin installs (and no, I don't know what I'm doing ...)
Index: mssql_install.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/sql/mssql_install.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** mssql_install.php 27 Jan 2008 15:23:33 -0000 1.4
--- mssql_install.php 2 May 2008 12:08:07 -0000 1.5
***************
*** 7,11 ****
// | Installation SQL |
// +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2006 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
--- 7,11 ----
// | Installation SQL |
// +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2008 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
***************
*** 13,17 ****
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity AT steubentech DOT com |
// | Randy Kolenko - randy AT nextide DOT ca |
// +---------------------------------------------------------------------------+
--- 13,17 ----
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity93 AT gmail DOT com |
// | Randy Kolenko - randy AT nextide DOT ca |
// +---------------------------------------------------------------------------+
***************
*** 34,38 ****
// $Id$
-
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['events']}] (
--- 34,37 ----
***************
*** 137,142 ****
";
- $_SQL[] = "INSERT INTO {$_TABLES['eventsubmission']} (eid, title, description, location, datestart, dateend, url, allday, zipcode, state, city, address2, address1, event_type, timestart, timeend) VALUES ('2006051410130162','Installed the Calendar plugin','Today, you successfully installed the Calendar plugin.','Your webserver',getdate(),getdate(),'http://www.geeklog.net/',1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL)";
$_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'events_block','phpblock','Events','all',4,'',1,'phpblock_calendar',{$_USER['uid']},#group#,3,3)";
--- 136,141 ----
";
+ $_SQL[] = "INSERT INTO {$_TABLES['eventsubmission']} (eid, title, description, location, datestart, dateend, url, allday, zipcode, state, city, address2, address1, event_type, timestart, timeend) VALUES ('2008050110130162','Installed the Calendar plugin','Today, you successfully installed the Calendar plugin.','Your webserver',getdate(),getdate(),'http://www.geeklog.net/',1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL)";
$_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'events_block','phpblock','Events','all',4,'',1,'phpblock_calendar',{$_USER['uid']},#group#,3,3)";
Index: mysql_install.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/sql/mysql_install.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** mysql_install.php 27 Jan 2008 15:23:33 -0000 1.2
--- mysql_install.php 2 May 2008 12:08:07 -0000 1.3
***************
*** 13,17 ****
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity AT steubentech DOT com |
// +---------------------------------------------------------------------------+
// | |
--- 13,17 ----
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity93 AT gmail DOT com |
// +---------------------------------------------------------------------------+
// | |
***************
*** 119,123 ****
";
! $_SQL[] = "INSERT INTO {$_TABLES['eventsubmission']} (eid, title, description, location, datestart, dateend, url, allday, zipcode, state, city, address2, address1, event_type, timestart, timeend) VALUES ('2006051410130162','Installed the Calendar plugin','Today, you successfully installed the Calendar plugin.','Your webserver',CURDATE(),CURDATE(),'http://www.geeklog.net/',1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL)";
$_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'events_block','phpblock','Events','all',4,'',1,'phpblock_calendar',{$_USER['uid']},#group#,3,3)";
--- 119,123 ----
";
! $_SQL[] = "INSERT INTO {$_TABLES['eventsubmission']} (eid, title, description, location, datestart, dateend, url, allday, zipcode, state, city, address2, address1, event_type, timestart, timeend) VALUES ('2008050110130162','Installed the Calendar plugin','Today, you successfully installed the Calendar plugin.','Your webserver',CURDATE(),CURDATE(),'http://www.geeklog.net/',1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL)";
$_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'events_block','phpblock','Events','all',4,'',1,'phpblock_calendar',{$_USER['uid']},#group#,3,3)";
From dhaun at qs1489.pair.com Fri May 2 08:08:09 2008
From: dhaun at qs1489.pair.com (Dirk Haun)
Date: Fri, 02 May 2008 12:08:09 +0000
Subject: [geeklog-cvs] Geeklog-1.x/plugins/links/sql mssql_install.php, 1.6,
1.7
Message-ID: <20080502120809.E8C0210FE14@qs1489.pair.com>
Update of /cvsroot/geeklog/Geeklog-1.x/plugins/links/sql
In directory qs1489.pair.com:/tmp/cvs-serv42113/links/sql
Modified Files:
mssql_install.php
Log Message:
An attempt to update the MS SQL for the plugin installs (and no, I don't know what I'm doing ...)
Index: mssql_install.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/links/sql/mssql_install.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** mssql_install.php 12 Apr 2008 13:21:34 -0000 1.6
--- mssql_install.php 2 May 2008 12:08:07 -0000 1.7
***************
*** 3,7 ****
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
! // | Links Plugin 1.0 |
// +---------------------------------------------------------------------------+
// | Installation SQL |
--- 3,7 ----
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
! // | Links Plugin 2.0 |
// +---------------------------------------------------------------------------+
// | Installation SQL |
***************
*** 51,59 ****
! $_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['links']}] (
[lid] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
! [category] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[url] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[description] [varchar] (5000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
--- 51,76 ----
+ $_SQL[] = "
+ CREATE TABLE [dbo].[{$_TABLES['linkcategories']}] (
+ [cid] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
+ [pid] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
+ [category] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
+ [description] [varchar] (5000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
+ [tid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
+ [created] [datetime] NULL ,
+ [modified] [datetime] NULL ,
+ [owner_id] [numeric](8, 0) NOT NULL ,
+ [group_id] [numeric](8, 0) NOT NULL ,
+ [perm_owner] [tinyint] NOT NULL ,
+ [perm_group] [tinyint] NOT NULL ,
+ [perm_members] [tinyint] NOT NULL ,
+ [perm_anon] [tinyint] NOT NULL
+ ) ON [PRIMARY]
+ ";
! $_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['links']}] (
[lid] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
! [cid] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[url] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[description] [varchar] (5000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
***************
*** 67,86 ****
[perm_members] [tinyint] NOT NULL ,
[perm_anon] [tinyint] NOT NULL
! ) ON [PRIMARY]
";
-
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['linksubmission']}] (
[lid] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
! [category] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[url] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[description] [varchar] (5000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[title] [varchar] (96) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[hits] [int] NULL ,
! [date] [datetime] NULL
! ) ON [PRIMARY]
";
$_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['links']}] ADD
--- 84,109 ----
[perm_members] [tinyint] NOT NULL ,
[perm_anon] [tinyint] NOT NULL
! ) ON [PRIMARY]
";
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['linksubmission']}] (
[lid] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
! [cid] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[url] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[description] [varchar] (5000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[title] [varchar] (96) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[hits] [int] NULL ,
! [date] [datetime] NULL ,
! [owner_id] [numeric](8, 0) NOT NULL
! ) ON [PRIMARY]
";
+ $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['linkcategories']}] ADD
+ CONSTRAINT [PK_gl_linkcategories] PRIMARY KEY CLUSTERED
+ (
+ [pid]
+ ) ON [PRIMARY]
+ ";
$_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['links']}] ADD
From dhaun at qs1489.pair.com Fri May 2 08:08:09 2008
From: dhaun at qs1489.pair.com (Dirk Haun)
Date: Fri, 02 May 2008 12:08:09 +0000
Subject: [geeklog-cvs] Geeklog-1.x/plugins/polls/sql mssql_install.php, 1.3,
1.4 mysql_install.php, 1.9, 1.10
Message-ID: <20080502120810.0166810FE15@qs1489.pair.com>
Update of /cvsroot/geeklog/Geeklog-1.x/plugins/polls/sql
In directory qs1489.pair.com:/tmp/cvs-serv42113/polls/sql
Modified Files:
mssql_install.php mysql_install.php
Log Message:
An attempt to update the MS SQL for the plugin installs (and no, I don't know what I'm doing ...)
Index: mssql_install.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/sql/mssql_install.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** mssql_install.php 16 Jan 2007 04:01:07 -0000 1.3
--- mssql_install.php 2 May 2008 12:08:07 -0000 1.4
***************
*** 3,11 ****
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
! // | Polls Plugin 1.0 |
// +---------------------------------------------------------------------------+
// | Installation SQL |
// +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2006 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
--- 3,11 ----
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
! // | Polls Plugin 2.0 |
// +---------------------------------------------------------------------------+
// | Installation SQL |
// +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2008 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
***************
*** 13,17 ****
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity AT steubentech DOT com |
// | Randy Kolenko - randy AT nextide DOT ca |
// +---------------------------------------------------------------------------+
--- 13,17 ----
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity93 AT gmail DOT com |
// | Randy Kolenko - randy AT nextide DOT ca |
// +---------------------------------------------------------------------------+
***************
*** 32,56 ****
// +---------------------------------------------------------------------------+
//
!
!
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['pollanswers']}] (
! [qid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[aid] [tinyint] NOT NULL ,
[answer] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[votes] [numeric](8, 0) NULL ,
! [remark] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
) ON [PRIMARY]
";
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['polltopics']}] (
[pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
! [question] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[voters] [numeric](8, 0) NULL ,
[date] [datetime] NULL ,
! [display] [smallint] NOT NULL ,
[commentcode] [smallint] NOT NULL ,
[statuscode] [smallint] NOT NULL ,
--- 32,66 ----
// +---------------------------------------------------------------------------+
//
! // $Id$
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['pollanswers']}] (
! [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
! [qid] [int] NOT NULL ,
[aid] [tinyint] NOT NULL ,
[answer] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[votes] [numeric](8, 0) NULL ,
! [remark] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
";
+ $_SQL[] = "
+ CREATE TABLE [dbo].[{$_TABLES['pollquestions']}] (
+ [qid] [int] NOT NULL ,
+ [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
+ [question] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
+ ) ON [PRIMARY]
+ ";
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['polltopics']}] (
[pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
! [topic] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[voters] [numeric](8, 0) NULL ,
+ [questions] [int] NOT NULL ,
[date] [datetime] NULL ,
! [display] [tinyint] NOT NULL ,
! [open] [tinyint] NOT NULL ,
! [hideresults] [tinyint] NOT NULL ,
[commentcode] [smallint] NOT NULL ,
[statuscode] [smallint] NOT NULL ,
***************
*** 59,72 ****
[perm_owner] [tinyint] NOT NULL ,
[perm_group] [tinyint] NOT NULL ,
! [perm_members] [tinyint] NULL ,
! [perm_anon] [tinyint] NULL
) ON [PRIMARY]
";
-
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['pollvoters']}] (
[id] [numeric](10, 0) IDENTITY (1, 1) NOT NULL ,
! [qid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[ipaddress] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[date] [numeric](10, 0) NULL
--- 69,81 ----
[perm_owner] [tinyint] NOT NULL ,
[perm_group] [tinyint] NOT NULL ,
! [perm_members] [tinyint] NOT NULL ,
! [perm_anon] [tinyint] NOT NULL
) ON [PRIMARY]
";
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['pollvoters']}] (
[id] [numeric](10, 0) IDENTITY (1, 1) NOT NULL ,
! [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[ipaddress] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[date] [numeric](10, 0) NULL
***************
*** 74,80 ****
";
-
-
-
$_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['pollanswers']}] ADD
CONSTRAINT [PK_gl_pollanswers] PRIMARY KEY CLUSTERED
--- 83,86 ----
***************
*** 85,89 ****
";
! $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['polltopics']}] ADD
CONSTRAINT [PK_gl_pollquestions] PRIMARY KEY CLUSTERED
(
--- 91,95 ----
";
! $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['pollquestions']}] ADD
CONSTRAINT [PK_gl_pollquestions] PRIMARY KEY CLUSTERED
(
***************
*** 92,95 ****
--- 98,108 ----
";
+ $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['polltopics']}] ADD
+ CONSTRAINT [PK_gl_polltopics] PRIMARY KEY CLUSTERED
+ (
+ [pid]
+ ) ON [PRIMARY]
+ ";
+
$_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['pollvoters']}] ADD
CONSTRAINT [PK_gl_pollvoters] PRIMARY KEY CLUSTERED
***************
*** 99,113 ****
";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',1,'Trackbacks',0)";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',2,'Links and Polls plugins',0)";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',3,'Revamped admin areas',0)";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',4,'FCKeditor included',0)";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',5,'Remote user authentication',0)";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',6,'Other',0)";
!
! $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)";
?>
--- 112,132 ----
";
+ // Note: The 'pollquestion' entry for the above answers is in the install script
+ $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 1, 'MS SQL support', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 2, 'Multi-language support', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 3, 'Calendar as a plugin', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 4, 'SLV spam protection', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 5, 'Mass-delete users', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 6, 'Other', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 1, 'Story-Images', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 2, 'User-Rights handling', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 3, 'The Support', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 4, 'Plugin Availability', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (0, 'geeklogfeaturepoll', 'What is the best new feature of Geeklog?');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (1, 'geeklogfeaturepoll', 'What is the all-time best feature of Geeklog?');";
?>
Index: mysql_install.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/sql/mysql_install.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** mysql_install.php 19 Jan 2008 14:53:12 -0000 1.9
--- mysql_install.php 2 May 2008 12:08:07 -0000 1.10
***************
*** 13,17 ****
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity AT steubentech DOT com |
// +---------------------------------------------------------------------------+
// | |
--- 13,17 ----
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity93 AT gmail DOT com |
// +---------------------------------------------------------------------------+
// | |
***************
*** 95,111 ****
$_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 1, 'MS SQL support', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 2, 'Multi-language support', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 3, 'Calendar as a plugin', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 4, 'SLV spam protection', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 5, 'Mass-delete users', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 6, 'Other', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 1, 'Story-Images', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 2, 'User-Rights handling', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 3, 'The Support', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 4, 'Plugin Availability', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollquestions']}` (`qid`, `pid`, `question`) VALUES (0, 'geeklogfeaturepoll', 'What is the best new feature of Geeklog?');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollquestions']}` (`qid`, `pid`, `question`) VALUES (1, 'geeklogfeaturepoll', 'What is the all-time best feature of Geeklog?');";
?>
--- 95,111 ----
$_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 1, 'MS SQL support', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 2, 'Multi-language support', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 3, 'Calendar as a plugin', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 4, 'SLV spam protection', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 5, 'Mass-delete users', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 6, 'Other', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 1, 'Story-Images', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 2, 'User-Rights handling', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 3, 'The Support', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 4, 'Plugin Availability', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (0, 'geeklogfeaturepoll', 'What is the best new feature of Geeklog?');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (1, 'geeklogfeaturepoll', 'What is the all-time best feature of Geeklog?');";
?>
From dhaun at qs1489.pair.com Fri May 2 08:08:09 2008
From: dhaun at qs1489.pair.com (Dirk Haun)
Date: Fri, 02 May 2008 12:08:09 +0000
Subject: [geeklog-cvs] Geeklog-1.x/plugins/polls/sql mssql_install.php, 1.3,
1.4 mysql_install.php, 1.9, 1.10
Message-ID: <20080502120810.0166810FE15@qs1489.pair.com>
Update of /cvsroot/geeklog/Geeklog-1.x/plugins/polls/sql
In directory qs1489.pair.com:/tmp/cvs-serv42113/polls/sql
Modified Files:
mssql_install.php mysql_install.php
Log Message:
An attempt to update the MS SQL for the plugin installs (and no, I don't know what I'm doing ...)
Index: mssql_install.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/sql/mssql_install.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** mssql_install.php 16 Jan 2007 04:01:07 -0000 1.3
--- mssql_install.php 2 May 2008 12:08:07 -0000 1.4
***************
*** 3,11 ****
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
! // | Polls Plugin 1.0 |
// +---------------------------------------------------------------------------+
// | Installation SQL |
// +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2006 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
--- 3,11 ----
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
! // | Polls Plugin 2.0 |
// +---------------------------------------------------------------------------+
// | Installation SQL |
// +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2008 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
***************
*** 13,17 ****
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity AT steubentech DOT com |
// | Randy Kolenko - randy AT nextide DOT ca |
// +---------------------------------------------------------------------------+
--- 13,17 ----
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity93 AT gmail DOT com |
// | Randy Kolenko - randy AT nextide DOT ca |
// +---------------------------------------------------------------------------+
***************
*** 32,56 ****
// +---------------------------------------------------------------------------+
//
!
!
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['pollanswers']}] (
! [qid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[aid] [tinyint] NOT NULL ,
[answer] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[votes] [numeric](8, 0) NULL ,
! [remark] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
) ON [PRIMARY]
";
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['polltopics']}] (
[pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
! [question] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[voters] [numeric](8, 0) NULL ,
[date] [datetime] NULL ,
! [display] [smallint] NOT NULL ,
[commentcode] [smallint] NOT NULL ,
[statuscode] [smallint] NOT NULL ,
--- 32,66 ----
// +---------------------------------------------------------------------------+
//
! // $Id$
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['pollanswers']}] (
! [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
! [qid] [int] NOT NULL ,
[aid] [tinyint] NOT NULL ,
[answer] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[votes] [numeric](8, 0) NULL ,
! [remark] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
";
+ $_SQL[] = "
+ CREATE TABLE [dbo].[{$_TABLES['pollquestions']}] (
+ [qid] [int] NOT NULL ,
+ [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
+ [question] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
+ ) ON [PRIMARY]
+ ";
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['polltopics']}] (
[pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
! [topic] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[voters] [numeric](8, 0) NULL ,
+ [questions] [int] NOT NULL ,
[date] [datetime] NULL ,
! [display] [tinyint] NOT NULL ,
! [open] [tinyint] NOT NULL ,
! [hideresults] [tinyint] NOT NULL ,
[commentcode] [smallint] NOT NULL ,
[statuscode] [smallint] NOT NULL ,
***************
*** 59,72 ****
[perm_owner] [tinyint] NOT NULL ,
[perm_group] [tinyint] NOT NULL ,
! [perm_members] [tinyint] NULL ,
! [perm_anon] [tinyint] NULL
) ON [PRIMARY]
";
-
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['pollvoters']}] (
[id] [numeric](10, 0) IDENTITY (1, 1) NOT NULL ,
! [qid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[ipaddress] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[date] [numeric](10, 0) NULL
--- 69,81 ----
[perm_owner] [tinyint] NOT NULL ,
[perm_group] [tinyint] NOT NULL ,
! [perm_members] [tinyint] NOT NULL ,
! [perm_anon] [tinyint] NOT NULL
) ON [PRIMARY]
";
$_SQL[] = "
CREATE TABLE [dbo].[{$_TABLES['pollvoters']}] (
[id] [numeric](10, 0) IDENTITY (1, 1) NOT NULL ,
! [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[ipaddress] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[date] [numeric](10, 0) NULL
***************
*** 74,80 ****
";
-
-
-
$_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['pollanswers']}] ADD
CONSTRAINT [PK_gl_pollanswers] PRIMARY KEY CLUSTERED
--- 83,86 ----
***************
*** 85,89 ****
";
! $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['polltopics']}] ADD
CONSTRAINT [PK_gl_pollquestions] PRIMARY KEY CLUSTERED
(
--- 91,95 ----
";
! $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['pollquestions']}] ADD
CONSTRAINT [PK_gl_pollquestions] PRIMARY KEY CLUSTERED
(
***************
*** 92,95 ****
--- 98,108 ----
";
+ $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['polltopics']}] ADD
+ CONSTRAINT [PK_gl_polltopics] PRIMARY KEY CLUSTERED
+ (
+ [pid]
+ ) ON [PRIMARY]
+ ";
+
$_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['pollvoters']}] ADD
CONSTRAINT [PK_gl_pollvoters] PRIMARY KEY CLUSTERED
***************
*** 99,113 ****
";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',1,'Trackbacks',0)";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',2,'Links and Polls plugins',0)";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',3,'Revamped admin areas',0)";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',4,'FCKeditor included',0)";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',5,'Remote user authentication',0)";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',6,'Other',0)";
!
! $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)";
?>
--- 112,132 ----
";
+ // Note: The 'pollquestion' entry for the above answers is in the install script
+ $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 1, 'MS SQL support', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 2, 'Multi-language support', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 3, 'Calendar as a plugin', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 4, 'SLV spam protection', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 5, 'Mass-delete users', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 6, 'Other', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 1, 'Story-Images', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 2, 'User-Rights handling', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 3, 'The Support', 0, '');";
+ $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 4, 'Plugin Availability', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (0, 'geeklogfeaturepoll', 'What is the best new feature of Geeklog?');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (1, 'geeklogfeaturepoll', 'What is the all-time best feature of Geeklog?');";
?>
Index: mysql_install.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/sql/mysql_install.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** mysql_install.php 19 Jan 2008 14:53:12 -0000 1.9
--- mysql_install.php 2 May 2008 12:08:07 -0000 1.10
***************
*** 13,17 ****
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity AT steubentech DOT com |
// +---------------------------------------------------------------------------+
// | |
--- 13,17 ----
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity93 AT gmail DOT com |
// +---------------------------------------------------------------------------+
// | |
***************
*** 95,111 ****
$_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 1, 'MS SQL support', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 2, 'Multi-language support', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 3, 'Calendar as a plugin', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 4, 'SLV spam protection', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 5, 'Mass-delete users', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 6, 'Other', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 1, 'Story-Images', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 2, 'User-Rights handling', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 3, 'The Support', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 4, 'Plugin Availability', 0, '');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollquestions']}` (`qid`, `pid`, `question`) VALUES (0, 'geeklogfeaturepoll', 'What is the best new feature of Geeklog?');";
! $_SQL[] = "INSERT INTO `{$_TABLES['pollquestions']}` (`qid`, `pid`, `question`) VALUES (1, 'geeklogfeaturepoll', 'What is the all-time best feature of Geeklog?');";
?>
--- 95,111 ----
$_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 1, 'MS SQL support', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 2, 'Multi-language support', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 3, 'Calendar as a plugin', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 4, 'SLV spam protection', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 5, 'Mass-delete users', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 6, 'Other', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 1, 'Story-Images', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 2, 'User-Rights handling', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 3, 'The Support', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 4, 'Plugin Availability', 0, '');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (0, 'geeklogfeaturepoll', 'What is the best new feature of Geeklog?');";
! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (1, 'geeklogfeaturepoll', 'What is the all-time best feature of Geeklog?');";
?>
From dhaun at qs1489.pair.com Fri May 2 08:12:07 2008
From: dhaun at qs1489.pair.com (Dirk Haun)
Date: Fri, 02 May 2008 12:12:07 +0000
Subject: [geeklog-cvs] Geeklog-1.x/plugins/links functions.inc, 1.107,
1.108 install_defaults.php, 1.2, 1.3
Message-ID: <20080502121207.EF20B10FE14@qs1489.pair.com>
Update of /cvsroot/geeklog/Geeklog-1.x/plugins/links
In directory qs1489.pair.com:/tmp/cvs-serv42318/plugins/links
Modified Files:
functions.inc install_defaults.php
Log Message:
Changed Trinity's email address, as requested
Index: functions.inc
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/links/functions.inc,v
retrieving revision 1.107
retrieving revision 1.108
diff -C2 -d -r1.107 -r1.108
*** functions.inc 19 Apr 2008 12:15:57 -0000 1.107
--- functions.inc 2 May 2008 12:12:05 -0000 1.108
***************
*** 17,21 ****
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity93 AT steubentech DOT com |
// | Oliver Spiesshofer - oliver AT spiesshofer DOT com |
// | Euan McKay - info AT heatherengineering DOT com |
--- 17,21 ----
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity93 AT gmail DOT com |
// | Oliver Spiesshofer - oliver AT spiesshofer DOT com |
// | Euan McKay - info AT heatherengineering DOT com |
Index: install_defaults.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/links/install_defaults.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** install_defaults.php 10 Feb 2008 17:09:37 -0000 1.2
--- install_defaults.php 2 May 2008 12:12:05 -0000 1.3
***************
*** 17,21 ****
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity93 AT steubentech DOT com |
// | Oliver Spiesshofer - oliver AT spiesshofer DOT com |
// | Euan McKay - info AT heatherengineering DOT com |
--- 17,21 ----
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity93 AT gmail DOT com |
// | Oliver Spiesshofer - oliver AT spiesshofer DOT com |
// | Euan McKay - info AT heatherengineering DOT com |
From dhaun at qs1489.pair.com Fri May 2 08:12:07 2008
From: dhaun at qs1489.pair.com (Dirk Haun)
Date: Fri, 02 May 2008 12:12:07 +0000
Subject: [geeklog-cvs] Geeklog-1.x/plugins/calendar install_defaults.php, 1.2,
1.3
Message-ID: <20080502121207.DEA1C10FE12@qs1489.pair.com>
Update of /cvsroot/geeklog/Geeklog-1.x/plugins/calendar
In directory qs1489.pair.com:/tmp/cvs-serv42318/plugins/calendar
Modified Files:
install_defaults.php
Log Message:
Changed Trinity's email address, as requested
Index: install_defaults.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/install_defaults.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** install_defaults.php 21 Mar 2008 17:09:26 -0000 1.2
--- install_defaults.php 2 May 2008 12:12:05 -0000 1.3
***************
*** 17,21 ****
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity93 AT steubentech DOT com |
// +---------------------------------------------------------------------------+
// | |
--- 17,21 ----
// | Jason Whittenburg - jwhitten AT securitygeeks DOT com |
// | Dirk Haun - dirk AT haun-online DOT de |
! // | Trinity Bays - trinity93 AT gmail DOT com |
// +---------------------------------------------------------------------------+
// | |
From dhaun at qs1489.pair.com Fri May 2 08:12:08 2008
From: dhaun at qs1489.pair.com (Dirk Haun)
Date: Fri, 02 May 2008 12:12:08 +0000
Subject: [geeklog-cvs] Geeklog-1.x/public_html/links index.php, 1.33,
1.34 portal.php, 1.6, 1.7
Message-ID: <20080502121208.18A9110FE15@qs1489.pair.com>
Update of /cvsroot/geeklog/Geeklog-1.x/public_html/links
In directory qs1489.pair.com:/tmp/cvs-serv42318/public_html/links
Modified Files:
index.php portal.php
Log Message:
Changed Trinity's email address, as requested
Index: portal.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/links/portal.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** portal.php 1 Jan 2008 12:33:48 -0000 1.6
--- portal.php 2 May 2008 12:12:05 -0000 1.7
***************
*** 45,49 ****
* @copyright Copyright © 2005-2008
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
! * @author Trinity Bays true if your SMTP server requires authorization, and
false if it doesn't.true if your SMTP server requires authorization, and
false if it doesn't.For technical reasons, some configuration options still have to be ! stored in files. There are two such configuration files now, called ! db-config.php and siteconfig.php. These files are updated when you install Geeklog and you will not normally have to edit them manually.
!Geeklog's configuration options can be grouped like this:
[...2269 lines suppressed...] + +Geeklog includes a simple but useful URL rewriting feature which can help + make your site more crawler friendly (i.e. the URLs of your site are more + likely to be picked up by the search engine's indexing bots). This feature is + supported for URLs to stories, static pages, the article directory, and links. +
+URL rewriting means that your URLs will look like this
+http://www.geeklog.net/article.php/20021022234959146
+instead of like this
+http://www.geeklog.net/article.php?story=20021022234959146
+While some search engines will pick up the second form, Google seems to + prefer the first format and often ignores the second format.
+Note: This feature may not work with all web servers. It + is known to work with Apache (all versions) and known not to work + with IIS (at least some versions). Please try it out before you go public + with your site.
From dhaun at qs1489.pair.com Sat May 3 07:23:52 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sat, 03 May 2008 11:23:52 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs config.html,1.86,1.87 Message-ID: <20080503112352.BC1E910FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv95771/public_html/docs Modified Files: config.html Log Message: Added missing options and explanations Index: config.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/config.html,v retrieving revision 1.86 retrieving revision 1.87 diff -C2 -d -r1.86 -r1.87 *** config.html 3 May 2008 08:36:09 -0000 1.86 --- config.html 3 May 2008 11:23:50 -0000 1.87 *************** *** 75,79 ****truefalsetruefalsefalse'item'$_CONF['ip_lookup'] should hold the complete URL to the lookup service, with a '*' marking the place where the IP address should go. It's also possible to use Tom Willet's NetTools package, in which case the correct setting would be $_CONF['ip_lookup'] = $_CONF['site_url'] . '/nettools/whois.php?domain=*';
+
+ | Variable | +Default Value | +Description |
|---|---|---|
| disable_webservices | +false | +Set this to true to disable the webservices. |
| restrict_webservices | +false | +Set this to true to restrict webservices usage
+ to users with the webservices.atompub permission (e.g. those in
+ the predefined "Webservices Users" group). |
| atom_max_stories | +10 | +Max. number of stories returned when an Atom feed is + requested through the webservices API. |
Also see Using the Webservices in the Geeklog Wiki.
From mjervis at qs1489.pair.com Sat May 3 11:09:15 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Sat, 03 May 2008 15:09:15 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/staticpages/templates/admin editor.thtml, 1.19, 1.20 editor_advanced.thtml, 1.11, 1.12 Message-ID: <20080503150915.963A410FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates/admin In directory qs1489.pair.com:/tmp/cvs-serv3704/plugins/staticpages/templates/admin Modified Files: editor.thtml editor_advanced.thtml Log Message: Static pages, moderation, configration - Security hardenning. Index: editor_advanced.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates/admin/editor_advanced.thtml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** editor_advanced.thtml 25 Nov 2007 06:58:15 -0000 1.11 --- editor_advanced.thtml 3 May 2008 15:09:13 -0000 1.12 *************** *** 164,167 **** --- 164,168 ---- {delete_option} + Index: editor.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates/admin/editor.thtml,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** editor.thtml 25 Nov 2007 06:58:15 -0000 1.19 --- editor.thtml 3 May 2008 15:09:13 -0000 1.20 *************** *** 133,136 **** --- 133,137 ---- {delete_option} + From mjervis at qs1489.pair.com Sat May 3 11:09:15 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Sat, 03 May 2008 15:09:15 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/plugins/staticpages index.php, 1.91, 1.92 Message-ID: <20080503150915.B241310FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/staticpages In directory qs1489.pair.com:/tmp/cvs-serv3704/public_html/admin/plugins/staticpages Modified Files: index.php Log Message: Static pages, moderation, configration - Security hardenning. Index: index.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/staticpages/index.php,v retrieving revision 1.91 retrieving revision 1.92 diff -C2 -d -r1.91 -r1.92 *** index.php 15 Mar 2008 20:37:34 -0000 1.91 --- index.php 3 May 2008 15:09:13 -0000 1.92 *************** *** 371,374 **** --- 371,376 ---- COM_endBlock (COM_getBlockTemplate ('_admin_block', 'footer'))); $sp_template->set_var( 'xhtml', XHTML ); + $sp_template->set_var( 'gltoken_name', CSRF_TOKEN ); + $sp_template->set_var( 'gltoken', SEC_createToken() ); $retval .= $sp_template->parse('output','form'); } *************** *** 552,556 **** $display = ''; ! if (($mode == $LANG_ADMIN['delete']) && !empty ($LANG_ADMIN['delete'])) { if (empty ($sp_id) || (is_numeric ($sp_id) && ($sp_id == 0))) { COM_errorLog ('Attempted to delete static page sp_id=' . $sp_id); --- 554,558 ---- $display = ''; ! if (($mode == $LANG_ADMIN['delete']) && !empty ($LANG_ADMIN['delete']) && SEC_checkToken()) { if (empty ($sp_id) || (is_numeric ($sp_id) && ($sp_id == 0))) { COM_errorLog ('Attempted to delete static page sp_id=' . $sp_id); *************** *** 577,581 **** $display = COM_refresh ($_CONF['site_admin_url'] . '/index.php'); } ! } else if (($mode == $LANG_ADMIN['save']) && !empty ($LANG_ADMIN['save'])) { if (!empty ($sp_id)) { if (!isset ($_POST['sp_onmenu'])) { --- 579,583 ---- $display = COM_refresh ($_CONF['site_admin_url'] . '/index.php'); } ! } else if (($mode == $LANG_ADMIN['save']) && !empty ($LANG_ADMIN['save']) && SEC_checkToken()) { if (!empty ($sp_id)) { if (!isset ($_POST['sp_onmenu'])) { From mjervis at qs1489.pair.com Sat May 3 11:09:15 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Sat, 03 May 2008 15:09:15 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin configuration.php, 1.12, 1.13 moderation.php, 1.119, 1.120 Message-ID: <20080503150915.A505310FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin In directory qs1489.pair.com:/tmp/cvs-serv3704/public_html/admin Modified Files: configuration.php moderation.php Log Message: Static pages, moderation, configration - Security hardenning. Index: moderation.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/moderation.php,v retrieving revision 1.119 retrieving revision 1.120 diff -C2 -d -r1.119 -r1.120 *** moderation.php 19 Apr 2008 12:13:18 -0000 1.119 --- moderation.php 3 May 2008 15:09:13 -0000 1.120 *************** *** 79,83 **** * */ ! function commandcontrol() { global $_CONF, $_TABLES, $LANG01, $LANG29, $_IMAGE_TYPE, $_DB_dbms; --- 79,83 ---- * */ ! function commandcontrol($token) { global $_CONF, $_TABLES, $LANG01, $LANG29, $_IMAGE_TYPE, $_DB_dbms; *************** *** 212,216 **** if (SEC_hasRights('story.moderate')) { ! $retval .= itemlist('story'); } --- 212,216 ---- if (SEC_hasRights('story.moderate')) { ! $retval .= itemlist('story', $token); } *************** *** 226,230 **** } ! $retval .= PLG_showModerationList(); return $retval; --- 226,230 ---- } ! $retval .= PLG_showModerationList($token); return $retval; *************** *** 239,243 **** * */ ! function itemlist($type) { global $_CONF, $_TABLES, $LANG29, $LANG_ADMIN; --- 239,243 ---- * */ ! function itemlist($type, $token) { global $_CONF, $_TABLES, $LANG29, $LANG_ADMIN; *************** *** 314,317 **** --- 314,318 ---- if ($nrows > 0) { $form_arr['bottom'] = '' . LB + . '' . LB . '' . LB . '' *************** *** 569,573 **** } ! $retval .= commandcontrol(); return $retval; --- 570,574 ---- } ! $retval .= commandcontrol(SEC_createToken()); return $retval; *************** *** 634,638 **** } ! $retval .= commandcontrol(); return $retval; --- 635,639 ---- } ! $retval .= commandcontrol(SEC_createToken()); return $retval; *************** *** 669,673 **** } ! if (isset ($_POST['mode']) && ($_POST['mode'] == 'moderation')) { $action = array(); if (isset($_POST['action'])) { --- 670,674 ---- } ! if (isset ($_POST['mode']) && ($_POST['mode'] == 'moderation') && SEC_checkToken()) { $action = array(); if (isset($_POST['action'])) { *************** *** 683,687 **** } else { $display .= security_check_reminder(); ! $display .= commandcontrol(); } --- 684,688 ---- } else { $display .= security_check_reminder(); ! $display .= commandcontrol(SEC_createToken()); } Index: configuration.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/configuration.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** configuration.php 21 Mar 2008 15:38:05 -0000 1.12 --- configuration.php 3 May 2008 15:09:13 -0000 1.13 *************** *** 88,94 **** } // MAIN ! if (array_key_exists('set_action', $_POST)){ if (SEC_inGroup('Root')) { if ($_POST['set_action'] == 'restore') { --- 88,95 ---- } + $tokenstate = SEC_checkToken(); // MAIN ! if (array_key_exists('set_action', $_POST) && $tokenstate){ if (SEC_inGroup('Root')) { if ($_POST['set_action'] == 'restore') { *************** *** 100,104 **** } ! if (array_key_exists('form_submit', $_POST)) { $result = null; if (! array_key_exists('form_reset', $_POST)) { --- 101,105 ---- } ! if (array_key_exists('form_submit', $_POST) && $tokenstate) { $result = null; if (! array_key_exists('form_reset', $_POST)) { From mjervis at qs1489.pair.com Sat May 3 11:09:15 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Sat, 03 May 2008 15:09:15 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs theme.html,1.76,1.77 Message-ID: <20080503150915.C22E610FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv3704/public_html/docs Modified Files: theme.html Log Message: Static pages, moderation, configration - Security hardenning. Index: theme.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/theme.html,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -d -r1.76 -r1.77 *** theme.html 1 May 2008 19:43:42 -0000 1.76 --- theme.html 3 May 2008 15:09:13 -0000 1.77 *************** *** 212,215 **** --- 212,221 ----Some plugin specific templates have also been changed, you may also need to check:
+