Unifying things

This commit is contained in:
genuineparts 2025-06-23 19:41:29 +02:00
parent 1599a338e5
commit 8f0808b9ff
22 changed files with 110 additions and 76 deletions

View file

@ -1,9 +1,9 @@
<?php
$module["functions"]["name"]="Functions Module";
$module["functions"]["ver"]="1.0.0";
$module["functions"]["ver"]="1.0.1";
/**
* Project: astat - simple site engine
* File: /inc/sessions.class.php
* Project: BeCast WebEngine - simple site engine
* File: /inc/functions.class.php
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@ -19,12 +19,12 @@ $module["functions"]["ver"]="1.0.0";
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* @link http://www.astat.org SVN: $URL: http://svn.astat.org/astat/trunk/inc/sessions.class.php $
* @copyright 2010 becast.at
* @link http://www.becast.at
* @copyright 2010-2025 becast.at
* @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core
* @package BcWe core
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: sessions.class.php 129 2010-02-21 22:04:51Z genuineparts $
* @version $Id$
*/
class functions {
@ -120,7 +120,9 @@ class functions {
function get_ip(){
global $config;
$ip = strtolower($_SERVER['REMOTE_ADDR']);
if(empty($config['ip_forwarded_check'])){
$config['ip_forwarded_check'] = false;
}
if($config['ip_forwarded_check'])
{
$addresses = array();