mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
0.7 -> 0.8 upgrade fixes
This commit is contained in:
10
class2.php
10
class2.php
@@ -9,8 +9,8 @@
|
||||
* General purpose file
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||
* $Revision: 1.159 $
|
||||
* $Date: 2009-11-18 01:04:24 $
|
||||
* $Revision: 1.160 $
|
||||
* $Date: 2009-11-19 10:07:28 $
|
||||
* $Author: e107coders $
|
||||
*
|
||||
*/
|
||||
@@ -773,6 +773,12 @@ if(isset($pref['notify']) && $pref['notify'] == true)
|
||||
$sql -> db_Mark_Time('Start: Init session');
|
||||
init_session();
|
||||
|
||||
//DEPRECATED but necessary. BC Fix.
|
||||
function getip()
|
||||
{
|
||||
return e107::ipDecode(USERIP);
|
||||
}
|
||||
|
||||
// for multi-language these definitions needs to come after the language loaded.
|
||||
define('SITENAME', trim($tp->toHTML($pref['sitename'], '', 'emotes_off, defs, no_make_clickable')));
|
||||
define('SITEBUTTON', $tp->replaceConstants($pref['sitebutton']));
|
||||
|
Reference in New Issue
Block a user