Changeset 1756
- Timestamp:
- 09/21/2008 03:06:37 PM (4 months ago)
- Location:
- branches/1.5
- Files:
-
- 2 added
- 81 modified
- 1 copied
-
.htaccess (modified) (1 prop)
-
LICENSE.html (modified) (1 prop)
-
README.txt (modified) (1 prop)
-
admin/auth.php (modified) (1 prop)
-
admin/blog.func.php (modified) (1 prop)
-
admin/categories.php (modified) (1 prop)
-
admin/change.php (modified) (1 prop)
-
admin/comments.php (modified) (1 prop)
-
admin/export-rss2.php (modified) (1 prop)
-
admin/index.php (modified) (1 prop)
-
admin/login.php (modified) (1 prop)
-
admin/logout.php (modified) (1 prop)
-
admin/media/select-picture.php (modified) (1 prop)
-
admin/media/select-teaser.php (modified) (1 prop)
-
admin/media/upload-picture.php (modified) (1 prop)
-
admin/media/upload-teaser.php (modified) (1 prop)
-
admin/new.php (modified) (1 prop)
-
admin/plugin.php (modified) (1 prop)
-
admin/settings.php (modified) (1 prop)
-
admin/update.php (modified) (1 prop)
-
archive.php (modified) (1 diff, 1 prop)
-
config.inc.php (added)
-
error404.php (modified) (1 diff, 1 prop)
-
img/JLOG_edit.png (modified) (1 prop) (previous)
-
img/JLOG_rss-full.png (modified) (1 prop) (previous)
-
img/JLOG_rss-summary.png (modified) (1 prop) (previous)
-
img/JLOG_trash.png (modified) (1 prop) (previous)
-
index.php (modified) (1 diff)
-
lang/.htaccess (modified) (1 prop)
-
lang/lang-admin.de.inc.php (modified) (1 prop)
-
lang/lang-admin.en.inc.php (modified) (1 prop)
-
lang/lang-admin.it.inc.php (modified) (1 prop)
-
lang/lang-admin.sv.inc.php (modified) (1 prop)
-
lang/lang.de.inc.php (modified) (1 prop)
-
lang/lang.en.inc.php (modified) (1 prop)
-
lang/lang.it.inc.php (modified) (1 prop)
-
lang/lang.sv.inc.php (modified) (1 prop)
-
learn_bb.php (modified) (1 diff, 1 prop)
-
lib/.htaccess (modified) (1 prop)
-
lib/Jlog/Bbcode.php (modified) (1 prop)
-
lib/Jlog/Categories.php (modified) (1 prop)
-
lib/Jlog/Comments.php (modified) (1 prop)
-
lib/Jlog/Db.php (modified) (2 diffs, 1 prop)
-
lib/Jlog/Db/Query.php (modified) (1 prop)
-
lib/Jlog/Feeds.php (modified) (1 prop)
-
lib/Jlog/Functions.php (modified) (1 diff, 1 prop)
-
lib/Jlog/Language.php (modified) (1 prop)
-
lib/Jlog/Plugin/Basic.php (modified) (1 prop)
-
lib/Jlog/Plugin/Manager.php (modified) (1 prop)
-
lib/Jlog/Settings.php (modified) (1 prop)
-
lib/Jlog/Tags.php (modified) (1 prop)
-
lib/Jlog/Template.php (modified) (1 prop)
-
lib/Jlog/Update.php (modified) (1 prop)
-
lib/Jlog/Update/102To110.php (modified) (1 prop)
-
lib/Jlog/Update/110To111.php (modified) (1 diff, 1 prop)
-
lib/Jlog/Update/Example.php (modified) (1 prop)
-
lib/Jlog/Validate/Url.php (modified) (1 prop)
-
lib/Jlog/Version.php (modified) (1 prop)
-
lib/Jlog/YearLinks.php (modified) (1 prop)
-
lib/bootstrap.php (modified) (4 diffs, 1 prop)
-
log.php (modified) (1 diff, 1 prop)
-
page.php (modified) (1 diff, 1 prop)
-
personal/conf (added)
-
personal/conf/.htaccess (copied) (copied from branches/1.5/lib/.htaccess) (2 props)
-
plugins/.htaccess (modified) (1 prop)
-
search.php (modified) (1 diff, 1 prop)
-
setup.php (modified) (1 diff, 1 prop)
-
stop.php (modified) (1 diff, 1 prop)
-
themes/default/css/admin.css (modified) (1 prop)
-
themes/default/css/ielte6.css (modified) (1 prop)
-
themes/default/css/popup.css (modified) (1 prop)
-
themes/default/css/print.css (modified) (1 prop)
-
themes/default/css/screen.css (modified) (1 prop)
-
themes/default/img/Browse.plb (modified) (1 prop) (previous)
-
themes/default/img/banner-ielte6.jpg (modified) (1 prop) (previous)
-
themes/default/img/banner.jpg (modified) (1 prop) (previous)
-
themes/default/img/body.png (modified) (1 prop) (previous)
-
themes/default/img/border.png (modified) (1 prop) (previous)
-
themes/default/img/cheese.png (modified) (1 prop) (previous)
-
themes/default/img/footer.png (modified) (1 prop) (previous)
-
themes/default/img/pokal.png (modified) (1 prop) (previous)
-
themes/default/javascripts.js (modified) (1 prop)
-
themes/default/template.tpl (modified) (1 prop)
-
xmlrpc.php (modified) (1 diff, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/.htaccess
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/LICENSE.html
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/README.txt
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/auth.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/blog.func.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/categories.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/change.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/comments.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/export-rss2.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/index.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/login.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/logout.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/media/select-picture.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/media/select-teaser.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/media/upload-picture.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/media/upload-teaser.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/new.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/plugin.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/settings.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/admin/update.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/archive.php
- Property svn:keywords set to Date Rev Author HeadURL
r1707 r1756 1 1 <?php 2 require_once('.'.DIRECTORY_SEPARATOR.'scripts'.DIRECTORY_SEPARATOR.'prepend.inc.php'); 2 3 /** 4 * Jlog 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 * 20 * $HeadURL$ 21 * $Rev$ 22 * $Author$ 23 * $Date$ 24 **/ 25 26 require_once('./config.inc.php'); 27 require_once(JLOG_LIBPATH . '/bootstrap.php'); 28 3 29 4 30 $get = strip($_GET); -
branches/1.5/error404.php
- Property svn:keywords set to Date Rev Author HeadURL
r1707 r1756 1 1 <?php 2 require_once('.'.DIRECTORY_SEPARATOR.'scripts'.DIRECTORY_SEPARATOR.'prepend.inc.php'); 2 3 /** 4 * Jlog 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 * 20 * $HeadURL$ 21 * $Rev$ 22 * $Author$ 23 * $Date$ 24 **/ 25 26 require_once('./config.inc.php'); 27 require_once(JLOG_LIBPATH . '/bootstrap.php'); 28 3 29 $get = strip($_GET); 4 30 -
branches/1.5/img/JLOG_edit.png
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/img/JLOG_rss-full.png
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/img/JLOG_rss-summary.png
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/img/JLOG_trash.png
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/index.php
r1736 r1756 22 22 * $Author$ 23 23 * $Date$ 24 * /24 **/ 25 25 26 if(!file_exists(dirname( __FILE__ ).DIRECTORY_SEPARATOR.'personal'.DIRECTORY_SEPARATOR.'settings.inc.php')) { 27 if(dirname($_SERVER['SCRIPT_NAME']) !== "/") $dir = dirname($_SERVER['SCRIPT_NAME']); 28 header("Location: http://".$_SERVER['HTTP_HOST'].$dir."/setup.php"); 29 } 30 require_once('.'.DIRECTORY_SEPARATOR.'scripts'.DIRECTORY_SEPARATOR.'prepend.inc.php'); 26 require_once('./config.inc.php'); 27 require_once(JLOG_LIBPATH . '/bootstrap.php'); 28 31 29 32 30 $c['meta']['robots'] = "noindex, follow"; -
branches/1.5/lang/.htaccess
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lang/lang-admin.de.inc.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lang/lang-admin.en.inc.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lang/lang-admin.it.inc.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lang/lang-admin.sv.inc.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lang/lang.de.inc.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lang/lang.en.inc.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lang/lang.it.inc.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lang/lang.sv.inc.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/learn_bb.php
- Property svn:keywords set to Date Rev Author HeadURL
r1707 r1756 1 1 <?php 2 require_once('.'.DIRECTORY_SEPARATOR.'scripts'.DIRECTORY_SEPARATOR.'prepend.inc.php'); 2 3 /** 4 * Jlog 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 * 20 * $HeadURL$ 21 * $Rev$ 22 * $Author$ 23 * $Date$ 24 **/ 25 26 require_once('./config.inc.php'); 27 require_once(JLOG_LIBPATH . '/bootstrap.php'); 28 3 29 $version = $_GET['v']; 4 30 -
branches/1.5/lib/.htaccess
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Bbcode.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Categories.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Comments.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Db.php
- Property svn:keywords set to Date Rev Author HeadURL
r1755 r1756 17 17 // select our database 18 18 $select = @mysql_select_db(JLOG_DB); 19 // FIXME: we already do have this lines, see line 13 in this file, isn't it? 20 if ($connect == FALSE) { 19 if ($select == FALSE) { 21 20 mail(JLOG_EMAIL, $l->_('admin.e_db'), $l->_('admin.e_db_is')."\n".mysql_error()); 22 21 die("<strong>".$l->_('db_error')."</strong><br />".$l->_('plz_try_again')."."); … … 35 34 // escape input for mysql 36 35 function escape($_data) { 37 // FIXME: shouldn't we use mysql_real_escape*() here? (Jeena)38 36 if (is_array($_data)) foreach($_data as $key => $val) { 39 37 $_data[$key] = escape_for_mysql($val); 40 38 } 41 else $_data = mysql_ escape_string($_data);39 else $_data = mysql_real_escape_string($_data); 42 40 return $_data; 43 41 } -
branches/1.5/lib/Jlog/Db/Query.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Feeds.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Functions.php
- Property svn:keywords set to Date Rev Author HeadURL
r1755 r1756 155 155 } 156 156 157 // TODO: (Jeena) Remove it, we never used it anyway 158 function my_serialize_cfg($arg) { 159 if(is_string($arg)) return "'".preg_replace("/'/","\\'",$arg)."'"; 160 elseif(is_integer($arg)) return (string)$arg; 161 elseif(is_float($arg)) return (string)$arg; 162 elseif(is_null($arg)) return 'NULL'; 163 elseif(is_bool($arg)) { 164 if($arg) return 'true'; 165 else return 'false'; 157 function redirect($uri) 158 { 159 $host = empty($_SERVER['HTTP_HOST']) 160 ? (empty($_SERVER['SERVER_NAME']) 161 ? $_SERVER['SERVER_ADDR'] 162 : $_SERVER['SERVER_NAME']) 163 : $_SERVER['HTTP_HOST']; 164 $proto = (empty($_SERVER['HTTPS']) OR strtolower($_SERVER['HTTPS']) == 'off') 165 ? 'http' 166 : 'https'; 167 $port = $_SERVER['SERVER_PORT']; 168 169 $uri = $proto . '://' . $host; 170 if ((('http' == $proto) and (80 != $port)) 171 or (('https' == $proto) and (443 != $port))) 172 { 173 $uri .= ':' . $port; 166 174 } 167 elseif(is_array($arg)) { 168 $retval = 'Array('; 169 foreach($arg as $key => $value) { 170 $retval .= $this->my_serialize_cfg($key).' => '.$this->my_serialize_cfg($value).','; 171 } 172 $retval .= ')'; 173 return $retval; 174 } 175 else die("unsupported type! ".gettype($arg)); 175 $uri .= '/' . $uri; 176 177 header('Location: ' . $uri); 178 exit; 176 179 } 177 180 -
branches/1.5/lib/Jlog/Language.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Plugin/Basic.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Plugin/Manager.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Settings.php
- Property svn:keywords changed from HeadURL Rev Author Date to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Tags.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Template.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Update.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Update/102To110.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Update/110To111.php
- Property svn:keywords set to Date Rev Author HeadURL
r1755 r1756 3 3 // TODO: (Jeena) I think we should not bother the user with the update-script 4 4 // when it is not necessary. 5 // (Dennis) This can be archieved by modifying Jlog_Update to hide virtual 6 // update scripts from the web interface, if they do not actually perform 7 // anything. However, we should keep a class for each step in an update-chain, 8 // so that the update process can be started easily from *any* version. 9 5 10 class JlogUpdate_110To111 6 11 { -
branches/1.5/lib/Jlog/Update/Example.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Validate/Url.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/Version.php
- Property svn:keywords changed from HeadURL Rev Author Date to Date Rev Author HeadURL
-
branches/1.5/lib/Jlog/YearLinks.php
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/lib/bootstrap.php
- Property svn:keywords changed from HeadURL Rev Author Date to Date Rev Author HeadURL
r1755 r1756 24 24 */ 25 25 26 // define path to library folder27 error_reporting(E_ALL ^ E_NOTICE); // TODO: We should remove this line now28 define ('JLOG_LIBPATH', dirname(__FILE__));29 26 set_include_path(JLOG_LIBPATH . PATH_SEPARATOR . get_include_path()); 30 27 31 28 // load settings and version informatione 32 require_once(JLOG_ LIBPATH . '/../personal/settings.inc.php');29 require_once(JLOG_CONFPATH . '/settings.inc.php'); 33 30 require_once('Jlog/Version.php'); 34 31 35 // these two constants did not exist in Jlog 1.0.2 32 // these two constants did not exist in Jlog 1.0.2 (backward compatibility) 36 33 if (!defined('JLOG_INSTALLED_VERSION')) { 37 34 define('JLOG_INSTALLED_VERSION', '1.0.2'); … … 40 37 define('JLOG_LANGUAGE', 'de'); 41 38 } 39 42 40 // define constants for names of tables in database 43 41 define("JLOG_DB_CONTENT", JLOG_DB_PREFIX."content"); … … 49 47 // redirect to update-script if new jlog version was installed 50 48 if(version_compare(JLOG_INSTALLED_VERSION, JLOG_SOFTWARE_VERSION, '<') 51 AND substr($_SERVER['SCRIPT_FILENAME'], -17) !== '/admin/update.php') 49 AND substr($_SERVER['SCRIPT_FILENAME'], strlen(JLOG_ADMINFOLDERNAME) + 12) 50 !== '/' . JLOG_ADMINFOLDERNAME . '/update.php') 52 51 { 53 header('Location: ' . JLOG_PATH . '/admin/update.php');54 exit;52 Jlog_Functions::redirect(JLOG_ADMINFOLDERNAME . '/update.php'); 53 // exit 55 54 } 56 55 … … 98 97 99 98 // call hooks for bbcode plugins 100 $ bbcode = $pluginManager->callHook('bbcode', $bbcode);101 $ bbcomments = $pluginManager->callHook('bbcomments', $bbcomments);99 $pluginManager->callHook('bbcode', $bbcode->forContent()); 100 $pluginManager->callHook('bbcomments', $bbcomments->forComments()); 102 101 103 102 // eof -
branches/1.5/log.php
- Property svn:keywords set to Date Rev Author HeadURL
r1729 r1756 1 1 <?php 2 require_once('.'.DIRECTORY_SEPARATOR.'scripts'.DIRECTORY_SEPARATOR.'prepend.inc.php'); 2 3 /** 4 * Jlog 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 * 20 * $HeadURL$ 21 * $Rev$ 22 * $Author$ 23 * $Date$ 24 **/ 25 26 require_once('./config.inc.php'); 27 require_once(JLOG_LIBPATH . '/bootstrap.php'); 28 3 29 4 30 $get = strip($_GET); -
branches/1.5/page.php
- Property svn:keywords set to Date Rev Author HeadURL
r1707 r1756 1 1 <?php 2 require_once('.'.DIRECTORY_SEPARATOR.'scripts'.DIRECTORY_SEPARATOR.'prepend.inc.php'); 2 3 /** 4 * Jlog 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 * 20 * $HeadURL$ 21 * $Rev$ 22 * $Author$ 23 * $Date$ 24 **/ 25 26 require_once('./config.inc.php'); 27 require_once(JLOG_LIBPATH . '/bootstrap.php'); 28 3 29 4 30 $get = strip($_GET); -
branches/1.5/personal/conf/.htaccess
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/plugins/.htaccess
- Property svn:keywords set to Date Rev Author HeadURL
-
branches/1.5/search.php
- Property svn:keywords set to Date Rev Author HeadURL
r1707 r1756 1 1 <?php 2 require_once('.'.DIRECTORY_SEPARATOR.'scripts'.DIRECTORY_SEPARATOR.'prepend.inc.php'); 2 3 /** 4 * Jlog 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) a
