Updates and cleanup
This commit is contained in:
parent
3e1a5a06b3
commit
1599a338e5
19 changed files with 65 additions and 90 deletions
|
@ -25,7 +25,7 @@
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const in_astat = true;
|
const INBCWE = true;
|
||||||
|
|
||||||
function getTime(): string
|
function getTime(): string
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<?php
|
<?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
|
* File: /inc/cache.class.php
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
|
@ -17,10 +19,10 @@
|
||||||
* License along with this library; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*
|
*
|
||||||
* @link http://www.jaud.be
|
* @link http://www.becast.at
|
||||||
* @copyright 2025 becast.at
|
* @copyright 2009-2025 becast.at
|
||||||
* @author Bernhard Jaud <bernhard at becast dot 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
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
|
@ -34,8 +36,7 @@ define("LOG_WARNING", 4);
|
||||||
define("LOG_INFO", 6);
|
define("LOG_INFO", 6);
|
||||||
define("LOG_DEBUG", 7);
|
define("LOG_DEBUG", 7);
|
||||||
*/
|
*/
|
||||||
$module["cache"]["name"]="Cache Class";
|
|
||||||
$module["cache"]["ver"]="0.9.10";
|
|
||||||
class cache {
|
class cache {
|
||||||
var $server;
|
var $server;
|
||||||
var $prefix;
|
var $prefix;
|
||||||
|
@ -85,9 +86,12 @@ class cache {
|
||||||
$this->obj->quit();
|
$this->obj->quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
function set($key,$var,$expiration=null){
|
function set($key,$var,$exp=null): void
|
||||||
if($expriation=null){
|
{
|
||||||
$expriation=$this->exp;
|
if($exp==null){
|
||||||
|
$expiration = $this->exp;
|
||||||
|
}else{
|
||||||
|
$expiration = $exp;
|
||||||
}
|
}
|
||||||
$this->obj->set($this->prefix.$key,$var,$expiration);
|
$this->obj->set($this->prefix.$key,$var,$expiration);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,10 +33,6 @@ $config["db"] = "bcWe";
|
||||||
$config["prefix"]="bcwe_";
|
$config["prefix"]="bcwe_";
|
||||||
// your Database Sytem
|
// your Database Sytem
|
||||||
$config["db_class"]="mysqli";
|
$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('INSTALLED', FALSE);
|
||||||
define("CHARSET", "UTF-8");
|
define("CHARSET", "UTF-8");
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$module['core']['name']='Core Class';
|
$module['core']['name']='Core Class';
|
||||||
$module['core']['ver']='0.9.9';
|
$module['core']['ver']='1.0.0';
|
||||||
|
|
||||||
class Core{
|
class Core{
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
$module["datacache"]["name"]="Datacache Module";
|
$module["datacache"]["name"]="Datacache Module";
|
||||||
$module["datacache"]["ver"]="0.1.0";
|
$module["datacache"]["ver"]="0.1.0";
|
||||||
/**
|
/**
|
||||||
* Project: astat - simple site engine
|
* Project: BeCast WebEngine - simple site engine
|
||||||
* File: /inc/datacache.class.php
|
* File: /inc/datacache.class.php
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
|
@ -19,10 +19,10 @@ $module["datacache"]["ver"]="0.1.0";
|
||||||
* License along with this library; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*
|
*
|
||||||
* @link http://www.astat.org SVN: $URL$
|
* @link http://www.becast.at
|
||||||
* @copyright 2010 becast.at
|
* @copyright 2009-2025 becast.at
|
||||||
* @author Bernhard Jaud <bernhard at becast dot 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
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
$module["lang"]["name"]="Language Class";
|
||||||
|
$module["lang"]["ver"]="0.1.2";
|
||||||
/**
|
/**
|
||||||
* Project: astat - simple site engine
|
* Project: BeCast WebEngine - simple site engine
|
||||||
* File: /inc/lang.class.php
|
* File: /inc/lang.class.php
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
|
@ -17,15 +19,14 @@
|
||||||
* License along with this library; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*
|
*
|
||||||
* @link http://www.astat.org SVN: $URL: $
|
* @link http://www.becast.at
|
||||||
* @copyright 2025 becast.at
|
* @copyright 2009-2025 becast.at
|
||||||
* @author Bernhard Jaud <bernhard at becast dot 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
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
$module["lang"]["name"]="Language Class";
|
|
||||||
$module["lang"]["ver"]="0.1.1";
|
|
||||||
|
|
||||||
class lang{
|
class lang{
|
||||||
var $langname=array('de'=>'Deutsch','en'=>'English');
|
var $langname=array('de'=>'Deutsch','en'=>'English');
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
$module["session"]["name"]="Sessionmanagement Module";
|
$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
|
* File: /inc/sessions.class.php
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
|
@ -19,10 +19,10 @@ $module["session"]["ver"]="0.9.1";
|
||||||
* License along with this library; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* 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 $
|
* @link http://www.becast.at
|
||||||
* @copyright 2010 becast.at
|
* @copyright 2009-2025 becast.at
|
||||||
* @author Bernhard Jaud <bernhard at becast dot 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
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
If (!defined("in_astat")) {
|
If (!defined(INBCWE)) {
|
||||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||||
}
|
}
|
||||||
$session->page_begin("Contactform", FALSE);
|
$session->page_begin("Contactform", FALSE);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
If (!defined("in_astat")) {
|
If (!defined(INBCWE)) {
|
||||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||||
}
|
}
|
||||||
class plugins_mybbnews{
|
class plugins_mybbnews{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
If (!defined("in_astat")) {
|
If (!defined(INBCWE)) {
|
||||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||||
}
|
}
|
||||||
$addnav["right"]=FALSE;
|
$addnav["right"]=FALSE;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
If (!defined("in_astat")) {
|
If (!defined(INBCWE)) {
|
||||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
If (!defined("in_astat")) {
|
If (!defined(INBCWE)) {
|
||||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
If (!defined("in_BL")) {
|
If (!defined(INBCWE)) {
|
||||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||||
}
|
}
|
||||||
// Anzahl der Themen
|
// Anzahl der Themen
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
If (!defined("in_astat")) {
|
If (!defined(INBCWE)) {
|
||||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
If (!defined("in_astat")) {
|
If (!defined(INBCWE)) {
|
||||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||||
}
|
}
|
||||||
$navtpl->assign('navtitle', "Suche");
|
$navtpl->assign('navtitle', "Suche");
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
If (!defined("in_astat")) {
|
If (!defined(INBCWE)) {
|
||||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
<?php
|
|
||||||
If (!defined("in_astat")) {
|
|
||||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
|
||||||
}
|
|
||||||
include 'thirdparty/twitter/twitter.class.php';
|
|
||||||
//define('MAGPIE_CACHE_DIR', '/var/www/virtual/recensio.org/phptmp/magpie_cache');
|
|
||||||
try{
|
|
||||||
$twitter = new Twitter('uVApPPv2zWXu8dWBwkbLw', 'kNHU7pia5ikY22No8gHU8ucXLd0z3IpnOUn0MA5SvQ', '563736788-UhHJUIJXlSdu3iFPaaqZQDmI9FExJOBW1e7ceZpM', 'FTHmLz1Gwa0pkgH5riN5mui4v3m83BaVVpXju4Bqlc');
|
|
||||||
$channel = $twitter->load(Twitter::ME,5);
|
|
||||||
foreach ($channel as $status){
|
|
||||||
$stat['screenname'] = $status->user->screen_name;
|
|
||||||
$stat['image'] = htmlspecialchars($status->user->profile_image_url);
|
|
||||||
$stat['user'] = htmlspecialchars($status->user->name);
|
|
||||||
$stat['text'] = Twitter::clickable($status);
|
|
||||||
$stat['date'] = date("d.m.Y H:i",strtotime($status->created_at));
|
|
||||||
$stats[]=$stat;
|
|
||||||
}
|
|
||||||
|
|
||||||
}catch(Exception $e){
|
|
||||||
$stats="Twitter down :,(";
|
|
||||||
}
|
|
||||||
|
|
||||||
$navtpl-> assign("status",$stats);
|
|
||||||
|
|
||||||
$navrow .= $navtpl->fetch('nav_twitter.tpl');
|
|
||||||
|
|
||||||
?>
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div id="footer">© 2009 astat-Team | Original Design by <a href="mailto:ray.gerrard@ntlworld.com">Ray Gerrard</a> | mySQL Queries: {$queries}<br />Powered by <a href="http://www.astat.org">astat</a> {$version}</div></div>
|
<div id="footer">© 2009-2025 becast.at | Original Design by Ray Gerrard | mySQL Queries: {$queries}<br />Powered by <a href="https://webengine.becast.at">BeCast WebEngine</a> {$version}</div></div>
|
||||||
<script type="text/javascript" src="{$path}js/fancy-form/mootools.js"></script>
|
<script type="text/javascript" src="{$path}js/fancy-form/mootools.js"></script>
|
||||||
<script type="text/javascript" src="{$path}js/fancy-form/moocheck.js"></script>
|
<script type="text/javascript" src="{$path}js/fancy-form/moocheck.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<!DOCTYPE html>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de_AT">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||||
<meta name="description" content="Project X" />
|
<meta name="description" content="BeCastWebEngine" />
|
||||||
<meta name="keywords" content="framework, developement, cms, elise,projektx,project x, projekt x, projectx" />
|
<meta name="keywords" content="framework, development, cms,BeCastWebEngine,BeCast WebEngine" />
|
||||||
<meta name="author" content="becast.at" />
|
<meta name="author" content="becast.at" />
|
||||||
<link type="text/css" rel="stylesheet" href="{$path}themes/default/style.css" media="screen,projection" />
|
<link type="text/css" rel="stylesheet" href="{$path}themes/default/style.css" media="screen,projection" />
|
||||||
{$meta}
|
{$meta}
|
||||||
|
@ -23,6 +23,7 @@ else return true;
|
||||||
<img src="{$path}themes/default/images/projectx.png" />
|
<img src="{$path}themes/default/images/projectx.png" />
|
||||||
</div>
|
</div>
|
||||||
<div id="container">
|
<div id="container">
|
||||||
|
|
||||||
<div id="menu">
|
<div id="menu">
|
||||||
{$topnavlist}
|
{$topnavlist}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue