Changeset 1756

Show
Ignore:
Timestamp:
09/21/2008 03:06:37 PM (4 months ago)
Author:
driehle
Message:

added svn keywords to all our files, did some more work

Location:
branches/1.5
Files:
2 added
81 modified
1 copied

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  
    11<?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 
     26require_once('./config.inc.php'); 
     27require_once(JLOG_LIBPATH . '/bootstrap.php'); 
     28 
    329 
    430 $get = strip($_GET); 
  • branches/1.5/error404.php

    • Property svn:keywords set to Date Rev Author HeadURL
    r1707 r1756  
    11<?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 
     26require_once('./config.inc.php'); 
     27require_once(JLOG_LIBPATH . '/bootstrap.php'); 
     28 
    329 $get = strip($_GET); 
    430 
  • 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  
    2222 * $Author$ 
    2323 * $Date$ 
    24  */ 
     24 **/ 
    2525 
    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'); 
     26require_once('./config.inc.php'); 
     27require_once(JLOG_LIBPATH . '/bootstrap.php'); 
     28 
    3129 
    3230 $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  
    11<?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 
     26require_once('./config.inc.php'); 
     27require_once(JLOG_LIBPATH . '/bootstrap.php'); 
     28 
    329 $version = $_GET['v']; 
    430 
  • 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  
    1717        // select our database 
    1818        $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) { 
    2120          mail(JLOG_EMAIL, $l->_('admin.e_db'), $l->_('admin.e_db_is')."\n".mysql_error()); 
    2221          die("<strong>".$l->_('db_error')."</strong><br />".$l->_('plz_try_again')."."); 
     
    3534    // escape input for mysql 
    3635    function escape($_data) { 
    37         // FIXME: shouldn't we  use mysql_real_escape*() here? (Jeena) 
    3836        if (is_array($_data)) foreach($_data as $key => $val) { 
    3937            $_data[$key] = escape_for_mysql($val); 
    4038        } 
    41         else $_data = mysql_escape_string($_data); 
     39        else $_data = mysql_real_escape_string($_data); 
    4240        return $_data; 
    4341    } 
  • 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  
    155155    } 
    156156 
    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; 
    166174        } 
    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; 
    176179    } 
    177180     
  • 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  
    33// TODO: (Jeena) I think we should not bother the user with the update-script 
    44// 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 
    510class JlogUpdate_110To111 
    611{ 
  • 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  
    2424 */ 
    2525 
    26 // define path to library folder 
    27 error_reporting(E_ALL ^ E_NOTICE);  // TODO: We should remove this line now 
    28 define ('JLOG_LIBPATH', dirname(__FILE__)); 
    2926set_include_path(JLOG_LIBPATH . PATH_SEPARATOR . get_include_path()); 
    3027 
    3128// load settings and version informatione 
    32 require_once(JLOG_LIBPATH . '/../personal/settings.inc.php'); 
     29require_once(JLOG_CONFPATH . '/settings.inc.php'); 
    3330require_once('Jlog/Version.php'); 
    3431  
    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) 
    3633if (!defined('JLOG_INSTALLED_VERSION')) { 
    3734    define('JLOG_INSTALLED_VERSION', '1.0.2'); 
     
    4037    define('JLOG_LANGUAGE', 'de'); 
    4138} 
     39 
    4240// define constants for names of tables in database 
    4341define("JLOG_DB_CONTENT", JLOG_DB_PREFIX."content"); 
     
    4947// redirect to update-script if new jlog version was installed 
    5048if(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') 
    5251{ 
    53         header('Location: ' . JLOG_PATH . '/admin/update.php'); 
    54         exit; 
     52        Jlog_Functions::redirect(JLOG_ADMINFOLDERNAME . '/update.php'); 
     53        // exit 
    5554} 
    5655 
     
    9897 
    9998// 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()); 
    102101    
    103102// eof 
  • branches/1.5/log.php

    • Property svn:keywords set to Date Rev Author HeadURL
    r1729 r1756  
    11<?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 
     26require_once('./config.inc.php'); 
     27require_once(JLOG_LIBPATH . '/bootstrap.php'); 
     28 
    329 
    430 $get = strip($_GET); 
  • branches/1.5/page.php

    • Property svn:keywords set to Date Rev Author HeadURL
    r1707 r1756  
    11<?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 
     26require_once('./config.inc.php'); 
     27require_once(JLOG_LIBPATH . '/bootstrap.php'); 
     28 
    329 
    430 $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  
    11<?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