Updates and cleanup
This commit is contained in:
parent
3e1a5a06b3
commit
1599a338e5
19 changed files with 65 additions and 90 deletions
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
$module["cache"]["name"]="Cache Class";
|
||||
$module["cache"]["ver"]="0.9.10";
|
||||
/**
|
||||
* Project: beFramed
|
||||
* Project: BeCast WebEngine - simple site engine
|
||||
* File: /inc/cache.class.php
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
|
@ -17,13 +19,13 @@
|
|||
* 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.jaud.be
|
||||
* @copyright 2025 becast.at
|
||||
* @link http://www.becast.at
|
||||
* @copyright 2009-2025 becast.at
|
||||
* @author Bernhard Jaud <bernhard at becast dot at>
|
||||
* @package beFramed Core
|
||||
* @package BcWe core
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
*/
|
||||
/*
|
||||
Already defined by PHP. I'll leave it here for Info
|
||||
define("LOG_EMERG", 0);
|
||||
|
@ -34,8 +36,7 @@ define("LOG_WARNING", 4);
|
|||
define("LOG_INFO", 6);
|
||||
define("LOG_DEBUG", 7);
|
||||
*/
|
||||
$module["cache"]["name"]="Cache Class";
|
||||
$module["cache"]["ver"]="0.9.10";
|
||||
|
||||
class cache {
|
||||
var $server;
|
||||
var $prefix;
|
||||
|
@ -85,12 +86,15 @@ class cache {
|
|||
$this->obj->quit();
|
||||
}
|
||||
|
||||
function set($key,$var,$expiration=null){
|
||||
if($expriation=null){
|
||||
$expriation=$this->exp;
|
||||
function set($key,$var,$exp=null): void
|
||||
{
|
||||
if($exp==null){
|
||||
$expiration = $this->exp;
|
||||
}else{
|
||||
$expiration = $exp;
|
||||
}
|
||||
$this->obj->set($this->prefix.$key,$var,$expiration);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function get($key){
|
||||
|
|
|
@ -33,10 +33,6 @@ $config["db"] = "bcWe";
|
|||
$config["prefix"]="bcwe_";
|
||||
// your Database Sytem
|
||||
$config["db_class"]="mysqli";
|
||||
$config['MEMCACHE_SERVER'] = '127.0.0.1';
|
||||
$config['MEMCACHE_PORT'] = '11211';
|
||||
$config['MEMCACHE_PREFIX'] = 'bcWe';
|
||||
$config['MEMCACHE_EXPIRATION'] = '50000';
|
||||
|
||||
define('INSTALLED', FALSE);
|
||||
define("CHARSET", "UTF-8");
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
*/
|
||||
|
||||
$module['core']['name']='Core Class';
|
||||
$module['core']['ver']='0.9.9';
|
||||
$module['core']['ver']='1.0.0';
|
||||
|
||||
class Core{
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
$module["datacache"]["name"]="Datacache Module";
|
||||
$module["datacache"]["ver"]="0.1.0";
|
||||
/**
|
||||
* Project: astat - simple site engine
|
||||
* Project: BeCast WebEngine - simple site engine
|
||||
* File: /inc/datacache.class.php
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
|
@ -19,13 +19,13 @@ $module["datacache"]["ver"]="0.1.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$
|
||||
* @copyright 2010 becast.at
|
||||
* @link http://www.becast.at
|
||||
* @copyright 2009-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$
|
||||
*/
|
||||
*/
|
||||
class datacache {
|
||||
|
||||
var $data = array();
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
$module["lang"]["name"]="Language Class";
|
||||
$module["lang"]["ver"]="0.1.2";
|
||||
/**
|
||||
* Project: astat - simple site engine
|
||||
* File: /inc/lang.class.php
|
||||
* Project: BeCast WebEngine - simple site engine
|
||||
* File: /inc/lang.class.php
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -17,15 +19,14 @@
|
|||
* 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: $
|
||||
* @copyright 2025 becast.at
|
||||
* @link http://www.becast.at
|
||||
* @copyright 2009-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$
|
||||
*/
|
||||
$module["lang"]["name"]="Language Class";
|
||||
$module["lang"]["ver"]="0.1.1";
|
||||
*/
|
||||
|
||||
|
||||
class lang{
|
||||
var $langname=array('de'=>'Deutsch','en'=>'English');
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
$module["session"]["name"]="Sessionmanagement Module";
|
||||
$module["session"]["ver"]="0.9.1";
|
||||
$module["session"]["ver"]="0.9.2";
|
||||
/**
|
||||
* Project: astat - simple site engine
|
||||
* Project: BeCast WebEngine - simple site engine
|
||||
* File: /inc/sessions.class.php
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
|
@ -19,13 +19,13 @@ $module["session"]["ver"]="0.9.1";
|
|||
* 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 2009-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$
|
||||
*/
|
||||
*/
|
||||
class session {
|
||||
|
||||
var $sid = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue