Update to latest version

This commit is contained in:
genuineparts 2025-06-24 23:26:25 +02:00
parent 8a89842ec6
commit fe9ecfad73
77 changed files with 1701 additions and 5404 deletions

View file

@ -1,4 +1,4 @@
<?php <?php global $session;
/** /**
* Project: BeCast WebEngine - simple site engine * Project: BeCast WebEngine - simple site engine
* File: /admin/addgroup.apnl.php * File: /admin/addgroup.apnl.php
@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: b6de49df98d4050265bddcd2e10ea51f57c7d06a $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {
@ -53,99 +53,26 @@ class addgroup_panel extends admin_module{
} }
}else{ }else{
$result = $db->query("SELECT * FROM " . $config["prefix"] . "role_values"); $result = $db->query("SELECT * FROM " . $config["prefix"] . "role_values");
$panel->title="Gruppe anlegen"; $panel->title="Gruppe anlegen";
$panel->content='Hier kann man Benutzergruppen anlegen.'; $panel->content='Hier kann man Benutzergruppen anlegen.';
$panel->form(array("action"=>$config["path"]."/admin/index.php?panel=addgroup")); $panel->form(array("action"=>$config["path"]."/admin/index.php?panel=addgroup"));
$panel->content.="<h3>Gruppename:</h3>"; $panel->content.="<h3>Gruppename:</h3>";
$panel->field(array("name"=>"name","typ"=>"text","value"=>$data["name"])); $panel->field(array("name"=>"name","typ"=>"text","value"=>""));
$panel->content.="<br /><br />"; $panel->content.="<br /><br />";
$panel->content.="<table width=\"90%\" cellspacing=\"2\"> $panel->content.="<table style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th><strong>Rechte</strong></th> <th><strong>Rechte</strong></th>
</tr>"; </tr>";
while ($row = $db->fetch_array($result)){ while ($row = $db->fetch_array($result)){
$panel->content.="<tr><td><strong>".$row["text"].":</strong><br />".$this->get_option($row["type"],$row["id"])."</td></tr>"; $panel->content.="<tr><td><strong>".$row["text"].":</strong><br />".$panel->get_option($row["type"],$row["id"])."</td></tr>";
}
$panel->content.="</table><br />";
$panel->field(array("name"=>"send","typ"=>"hidden","value"=>"1"));
$panel->content.="<br />";
$panel->submit();
$panel->formClose();
} }
$panel->content.="</table><br />";
$panel->field(array("name"=>"send","typ"=>"hidden","value"=>"1"));
$panel->content.="<br />";
$panel->submit();
$panel->formClose();
}
}
function get_option($option,$name) {
global $config,$db,$panel,$userinfo,$admin,$root,$firephp;
if($option=="yesno"){
$checked["yes"]="";
$checked["no"]="";
$yn=$panel->radio(array("name"=>$name,"value"=>"1"),NULL,TRUE);
$yn.="Ja";
$yn.=$panel->radio(array("name"=>$name,"value"=>"0"),NULL,TRUE);
$yn.="Nein";
return $yn;
}
if($option=="onoff"){
$checked["on"]="";
$checked["off"]="";
$yn=$panel->radio(array("name"=>$name,"value"=>"1"),NULL,TRUE);
$yn.="An";
$yn.=$panel->radio(array("name"=>$name,"value"=>"0"),NULL,TRUE);
$yn.="Aus";
return $yn;
}
if($option=="text"){
$text=$panel->field(array("name"=>$name,"typ"=>"text"),"",TRUE);
return $text;
}
if(strstr($option,"wysiwyg")){
$string=str_replace("wysiwyg(","",substr($option, 0, -1));
$sarr=explode(";",$string);
foreach($sarr as $str){
$substr=explode("|",$str);
$a_name[]=$substr[0];
$value[]=$substr[1];
}
if(is_array($sarr)){
$text=$panel->textarea(array("name"=>$name, $a_name[0]=>$value[0],$a_name[1]=>$value[1]),"class=\"mceEditor\"",TRUE);
}else{
$text=$panel->textarea(array("name"=>$name),"class=\"mceEditor\"",TRUE);
}
return $text;
}
if(strstr($option,"textarea")){
$string=str_replace("textarea(","",substr($option, 0, -1));
$sarr=explode(";",$string);
foreach($sarr as $str){
$substr=explode("|",$str);
$a_name[]=$substr[0];
$value[]=$substr[1];
}
if(is_array($sarr)){
$text=$panel->textarea(array("name"=>$name, $a_name[0]=>$value[0],$a_name[1]=>$value[1]),"",TRUE);
}else{
$text=$panel->textarea(array("name"=>$name),"",TRUE);
}
return $text;
}
if(strstr($option,"select")){
//$text=$panel->field("text",$name,"value=\"".$config[$name]."\"",TRUE);
$string=str_replace("select(","",substr($option, 0, -1));
$sarr=explode(";",$string);
foreach($sarr as $str){
$substr=explode("|",$str);
$values[$substr[0]]=$substr[1];
}
$select=$panel->select($values,NULL,$name,"",TRUE);
return $select;
}
} }
} }

View file

@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: 220835b018d365f1e1cc18303854a8f657d49831 $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!"); die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");

View file

@ -1,4 +1,4 @@
<?php <?php global $session;
/** /**
* Project: astat - simple site engine * Project: astat - simple site engine
* File: /admin/editusers.apnl.php * File: /admin/editusers.apnl.php
@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core * @package astat 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: 25cfe5d1f82f94b9aaf583a537432b5fbbf49cfd $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!"); die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
@ -40,7 +40,7 @@ class banips_panel extends admin_module{
$db->query("INSERT INTO `" . $config["prefix"] . "banned_ips` (`ip`,`date`,`reason`) VALUES ('".$db->escape($_POST['ip'])."','".time()."','".$db->escape($_POST["reason"])."')"); $db->query("INSERT INTO `" . $config["prefix"] . "banned_ips` (`ip`,`date`,`reason`) VALUES ('".$db->escape($_POST['ip'])."','".time()."','".$db->escape($_POST["reason"])."')");
$panel->admin_message($lang->_('SUCCESS'),$lang->_('DATASAVED'),True,"banips",3); $panel->admin_message($lang->_('SUCCESS'),$lang->_('DATASAVED'),True,"banips",3);
} }
}elseif($_GET["action"]=='delete' && $_GET['id']){ }elseif(isset($_GET['action']) && $_GET["action"]=='delete' && $_GET['id']){
$db->query("DELETE FROM `" . $config["prefix"] . "banned_ips` WHERE `id`='".intval($_GET['id'])."'"); $db->query("DELETE FROM `" . $config["prefix"] . "banned_ips` WHERE `id`='".intval($_GET['id'])."'");
$panel->admin_message("Ban lifted","The ban was lifted.",True,"banips",3); $panel->admin_message("Ban lifted","The ban was lifted.",True,"banips",3);
}else{ }else{
@ -54,27 +54,27 @@ class banips_panel extends admin_module{
$ips[]=$row; $ips[]=$row;
} }
$panel->title=$lang->_('BANNEDIPS'); $panel->title=$lang->_('BANNEDIPS');
$panel->content.="<table class=\"sortable\" width=\"90%\" cellspacing=\"2\"> $panel->content.="<table class=\"sortable\" style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th align=\"center\">".$lang->_('ID')."</th> <th style=\"text-align: center;\">".$lang->_('ID')."</th>
<th class=\"sortable-text\" align=\"center\">".$lang->_('IP')."</th> <th class=\"sortable-text\" style=\"text-align: center;\">".$lang->_('IP')."</th>
<th align=\"center\">".$lang->_('DATE')."</th> <th style=\"text-align: center;\">".$lang->_('DATE')."</th>
<th align=\"center\">".$lang->_('REASON')."</th> <th style=\"text-align: center;\">".$lang->_('REASON')."</th>
<th class=\"nosort\" align=\"center\">".$lang->_('ACTION')."</th> <th class=\"nosort\" style=\"text-align: center;\">".$lang->_('ACTION')."</th>
</tr>"; </tr>";
if(!empty($ips)){ if(!empty($ips)){
foreach($ips as $i){ foreach($ips as $i){
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\">".$i['id']."</td> <td style=\"text-align: center;\">".$i['id']."</td>
<td align=\"center\">".$i['ip']."</td> <td style=\"text-align: center;\">".$i['ip']."</td>
<td align=\"center\">".date('d.m.Y, H:i',$i['date'])."</td> <td style=\"text-align: center;\">".date('d.m.Y, H:i',$i['date'])."</td>
<td align=\"center\">".$i['reason']."</td>"; <td style=\"text-align: center;\">".$i['reason']."</td>";
$panel->content.="<td align=\"center\"><a onclick=\"return confirmLink(this, 'Delete this ban?')\" href=\"".$config["path"]."/admin/index.php?panel=banips&amp;action=delete&amp;id=".$i["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a></td> $panel->content.="<td style=\"text-align: center;\"><a onclick=\"return confirmLink(this, 'Delete this ban?')\" href=\"".$config["path"]."/admin/index.php?panel=banips&amp;action=delete&amp;id=".$i["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a></td>
</tr>"; </tr>";
} }
}else{ }else{
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\" colspan=\"5\">".$lang->_('NOBANNEDIPS')."</td> <td style=\"text-align: center;\" colspan=\"5\">".$lang->_('NOBANNEDIPS')."</td>
</tr>"; </tr>";
} }
$panel->content.="</table><br />"; $panel->content.="</table><br />";

View file

@ -1,4 +1,4 @@
<?php <?php global $session;
/** /**
* Project: BeCast WebEngine - simple site engine * Project: BeCast WebEngine - simple site engine
* File: /admin/config.apnl.php * File: /admin/config.apnl.php
@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: 46136c7b3c8b92ef759a6cae6baa72c7332ee3ff $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!"); die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
@ -60,7 +60,7 @@ class config_panel extends admin_module{
$panel->content.="<h2 class=\"accordion_toggle\">".$key."</h2> $panel->content.="<h2 class=\"accordion_toggle\">".$key."</h2>
<div class=\"accordion_content\"><table width=\"700px\">"; <div class=\"accordion_content\"><table width=\"700px\">";
foreach($val as $v){ foreach($val as $v){
$panel->content.="<tr><td><strong>".$v["title"]."</strong><br /><span style=\"font-size:small;\">".$v["description"]."</span><br />".$this->get_option($v["option"],$v["name"])."</td></tr>"; $panel->content.="<tr><td><strong>".$v["title"]."</strong><br /><span style=\"font-size:small;\">".$v["description"]."</span><br />".$panel->get_option($v["option"],$v["name"],$config[$v["name"]])."</td></tr>";
} }
$panel->content.="</table></div>"; $panel->content.="</table></div>";
@ -74,99 +74,6 @@ class config_panel extends admin_module{
//bottomAccordion.activate($$(\'vertical_container .accordion_toggle\')[0]); //bottomAccordion.activate($$(\'vertical_container .accordion_toggle\')[0]);
</script>'; </script>';
} }
function get_option($option,$name) {
global $config,$db,$panel,$userinfo,$admin,$root,$firephp,$lang;
if($option=="yesno"){
$checked["yes"]="";
$checked["no"]="";
if($config[$name]==1||$config[$name]==True||$config[$name]=="yes"){
$checked["yes"]='checked="checked"';
}else{
$checked["no"]='checked="checked"';
}
$yn=$panel->radio(array("name"=>$name,"value"=>"1"),$checked["yes"],TRUE);
$yn.="Ja";
$yn.=$panel->radio(array("name"=>$name,"value"=>"0"),$checked["no"],TRUE);
$yn.="Nein";
return $yn;
}
if($option=="onoff"){
$checked["on"]="";
$checked["off"]="";
if($config[$name]==1||$config[$name]==True||$config[$name]=="on"){
$checked["on"]='checked="checked"';
}else{
$checked["off"]='checked="checked"';
}
$yn=$panel->radio(array("name"=>$name,"value"=>"1"),$checked["on"],TRUE);
$yn.="An";
$yn.=$panel->radio(array("name"=>$name,"value"=>"0"),$checked["off"],TRUE);
$yn.="Aus";
return $yn;
}
if($option=="language"){
$langs=$lang->getlanguages();
foreach($langs as $lang){
$values[$lang['name']]=$lang['short'];
}
$select=$panel->select($values,$config[$name],$name,"",TRUE);
return $select;
}
if($option=="text"){
$text=$panel->field(array("name"=>$name,"typ"=>"text","value"=>$config[$name]),"",TRUE);
return $text;
}
if(strstr($option,"wysiwyg")){
$string=str_replace("wysiwyg(","",substr($option, 0, -1));
$sarr=explode(";",$string);
foreach($sarr as $str){
$substr=explode("|",$str);
$a_name[]=$substr[0];
$value[]=$substr[1];
}
if(is_array($sarr)){
$text=$panel->textarea(array("name"=>$name,"value"=>$config[$name], $a_name[0]=>$value[0],$a_name[1]=>$value[1]),"class=\"mceEditor\"",TRUE);
}else{
$text=$panel->textarea(array("name"=>$name,"value"=>$config[$name]),"class=\"mceEditor\"",TRUE);
}
return $text;
}
if(strstr($option,"textarea")){
$string=str_replace("textarea(","",substr($option, 0, -1));
$sarr=explode(";",$string);
foreach($sarr as $str){
$substr=explode("|",$str);
$a_name[]=$substr[0];
$value[]=$substr[1];
}
if(is_array($sarr)){
$text=$panel->textarea(array("name"=>$name,"value"=>$config[$name], $a_name[0]=>$value[0],$a_name[1]=>$value[1]),"",TRUE);
}else{
$text=$panel->textarea(array("name"=>$name,"value"=>$config[$name]),"",TRUE);
}
return $text;
}
if(strstr($option,"select")){
//$text=$panel->field("text",$name,"value=\"".$config[$name]."\"",TRUE);
$string=str_replace("select(","",substr($option, 0, -1));
$sarr=explode(";",$string);
foreach($sarr as $str){
$substr=explode("|",$str);
$values[$substr[0]]=$substr[1];
}
$select=$panel->select($values,$config[$name],$name,"",TRUE);
return $select;
}
}
function meta() { function meta() {
global $module,$config,$db,$panel,$userinfo,$admin,$root; global $module,$config,$db,$panel,$userinfo,$admin,$root;
$meta='<script type="text/javascript" src="/thirdparty/tiny/tiny_mce_gzip.js"></script> $meta='<script type="text/javascript" src="/thirdparty/tiny/tiny_mce_gzip.js"></script>

View file

@ -1,4 +1,4 @@
<?php <?php global $session;
/** /**
* Project: astat - simple site engine * Project: astat - simple site engine
* File: /admin/editgroup.apnl.php * File: /admin/editgroup.apnl.php
@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core * @package astat 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: 10c6f8d62584734ff49092f4b041ec253a588da0 $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!"); die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
@ -61,18 +61,18 @@ class editgroup_panel extends admin_module{
$panel->content.="<h3>Gruppename:</h3>"; $panel->content.="<h3>Gruppename:</h3>";
$panel->field(array("name"=>"name","typ"=>"text","value"=>$data["role_name"])); $panel->field(array("name"=>"name","typ"=>"text","value"=>$data["role_name"]));
$panel->content.="<br /><br />"; $panel->content.="<br /><br />";
$panel->content.="<table width=\"90%\" cellspacing=\"2\"> $panel->content.="<table style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th><strong>Rechte</strong></th> <th><strong>Rechte</strong></th>
</tr>"; </tr>";
$result = $db->query("SELECT * FROM " . $config["prefix"] . "role_values"); $drow = array();
$result = $db->query("SELECT * FROM `" . $config["prefix"] . "role_values`");
while ($row = $db->fetch_array($result)){ while ($row = $db->fetch_array($result)){
$rval =$db->fetch_array($db->query("SELECT value FROM `" . $config["prefix"] . "roleset` WHERE role_value_id='".$row["id"]."' AND role_id='".$data["id"]."'")); $rval =$db->fetch_array($db->query("SELECT `value` FROM `" . $config["prefix"] . "roleset` WHERE role_value_id='".$row["id"]."' AND role_id='".$data["id"]."'"));
$row["value"]=$rval["value"]; if(empty($rval["value"])){
$rdata[]=$row; $rval["value"] = 0;
} }
foreach ($rdata as $d){ $panel->content.="<tr><td><strong>".$row["text"].":</strong><br />".$panel->get_option($row["type"],$row["id"],$rval["value"])."</td></tr>";
$panel->content.="<tr><td><strong>".$d["text"].":</strong><br />".$this->get_option($d["type"],$d["id"],$d["value"])."</td></tr>";
} }
$panel->content.="</table><br />"; $panel->content.="</table><br />";
$panel->field(array("name"=>"send","typ"=>"hidden","value"=>"1")); $panel->field(array("name"=>"send","typ"=>"hidden","value"=>"1"));
@ -83,7 +83,7 @@ class editgroup_panel extends admin_module{
$panel->parse_page(); $panel->parse_page();
} }
}elseif($_GET["action"]=="delete" && $_GET["group"]){ }elseif(isset($_GET["action"]) && $_GET["action"]=="delete" && isset($_GET["group"])){
$result=$db->query("SELECT id FROM `" . $config["prefix"] . "role` where `role_name`='User' LIMIT 1"); $result=$db->query("SELECT id FROM `" . $config["prefix"] . "role` where `role_name`='User' LIMIT 1");
$row = $db->fetch_array($result); $row = $db->fetch_array($result);
$db->query("UPDATE `" . $config["prefix"] . "users` SET `role`='".$row["id"]."' WHERE `role`='".intval($_GET["group"])."'"); $db->query("UPDATE `" . $config["prefix"] . "users` SET `role`='".$row["id"]."' WHERE `role`='".intval($_GET["group"])."'");
@ -97,116 +97,34 @@ class editgroup_panel extends admin_module{
$role[]=$row; $role[]=$row;
} }
$panel->title="Vorhandene Rollen"; $panel->title="Vorhandene Rollen";
$panel->content.="<table class=\"sortable\" width=\"90%\" cellspacing=\"2\"> $panel->content.="<table class=\"sortable\" style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th align=\"center\">ID</th> <th style=\"text-align: center;\">ID</th>
<th align=\"center\">Name</th> <th style=\"text-align: center;\">Name</th>
<th class=\"nosort sortcol\" align=\"center\" width=\"18%\">Aktionen</th> <th class=\"nosort sortcol\" style=\"text-align: center; width: 18%\">Aktionen</th>
</tr>"; </tr>";
if(!empty($role)){ if(!empty($role)){
foreach($role as $u){ foreach($role as $u){
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\">".$u["id"]."</td> <td style=\"text-align: center;\">".$u["id"]."</td>
<td align=\"center\">".$u["role_name"]."</td>"; <td style=\"text-align: center;\">".$u["role_name"]."</td>";
if(!$u["special_group"]){ if(!$u["special_group"]){
$panel->content.="<td align=\"center\"><a onclick=\"return confirmLink(this, 'Willst du wirklich die Gruppe ".$u["role_name"]." l&ouml;schen? Alle Mitglieder dieser Gruppe werden der Gruppe User zugeordnet')\" href=\"".$config["path"]."/admin/index.php?panel=editgroup&amp;action=delete&amp;group=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editgroup&amp;editgroup=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td> $panel->content.="<td style=\"text-align: center;\"><a onclick=\"return confirmLink(this, 'Willst du wirklich die Gruppe ".$u["role_name"]." l&ouml;schen? Alle Mitglieder dieser Gruppe werden der Gruppe User zugeordnet')\" href=\"".$config["path"]."/admin/index.php?panel=editgroup&amp;action=delete&amp;group=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editgroup&amp;editgroup=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
</tr>"; </tr>";
}else{ }else{
$panel->content.="<td align=\"center\"><a href=\"".$config["path"]."/admin/index.php?panel=editgroup&amp;editgroup=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td></td> $panel->content.="<td style=\"text-align: center;\"><a href=\"".$config["path"]."/admin/index.php?panel=editgroup&amp;editgroup=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td></td>
</tr>"; </tr>";
} }
} }
}else{ }else{
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\" colspan=\"5\">Keine Rollen vorhanden.</td> <td style=\"text-align: center;\" colspan=\"5\">Keine Rollen vorhanden.</td>
</tr>"; </tr>";
} }
$panel->content.="</table><br />"; $panel->content.="</table><br />";
} }
} }
function get_option($option,$name,$value) {
global $config,$db,$panel,$userinfo,$admin,$root,$firephp;
if($option=="yesno"){
$checked["yes"]="";
$checked["no"]="";
if($value==1||$value==True||$value=="yes"){
$checked["yes"]='checked="checked"';
}else{
$checked["no"]='checked="checked"';
}
$yn=$panel->radio(array("name"=>$name,"value"=>"1"),$checked["yes"],TRUE);
$yn.="Ja";
$yn.=$panel->radio(array("name"=>$name,"value"=>"0"),$checked["no"],TRUE);
$yn.="Nein";
return $yn;
}
if($option=="onoff"){
$checked["on"]="";
$checked["off"]="";
if($value==1||$value==True||$value=="on"){
$checked["on"]='checked="checked"';
}else{
$checked["off"]='checked="checked"';
}
$yn=$panel->radio(array("name"=>$name,"value"=>"1"),$checked["on"],TRUE);
$yn.="An";
$yn.=$panel->radio(array("name"=>$name,"value"=>"0"),$checked["off"],TRUE);
$yn.="Aus";
return $yn;
}
if($option=="text"){
$text=$panel->field(array("name"=>$name,"typ"=>"text","value"=>$value),"",TRUE);
return $text;
}
if(strstr($option,"wysiwyg")){
$string=str_replace("wysiwyg(","",substr($option, 0, -1));
$sarr=explode(";",$string);
foreach($sarr as $str){
$substr=explode("|",$str);
$a_name[]=$substr[0];
$value[]=$substr[1];
}
if(is_array($sarr)){
$text=$panel->textarea(array("name"=>$name,"value"=>$value, $a_name[0]=>$value[0],$a_name[1]=>$value[1]),"class=\"mceEditor\"",TRUE);
}else{
$text=$panel->textarea(array("name"=>$name,"value"=>$value),"class=\"mceEditor\"",TRUE);
}
return $text;
}
if(strstr($option,"textarea")){
$string=str_replace("textarea(","",substr($option, 0, -1));
$sarr=explode(";",$string);
foreach($sarr as $str){
$substr=explode("|",$str);
$a_name[]=$substr[0];
$value[]=$substr[1];
}
if(is_array($sarr)){
$text=$panel->textarea(array("name"=>$name,"value"=>$value, $a_name[0]=>$value[0],$a_name[1]=>$value[1]),"",TRUE);
}else{
$text=$panel->textarea(array("name"=>$name,"value"=>$value),"",TRUE);
}
return $text;
}
if(strstr($option,"select")){
//$text=$panel->field("text",$name,"value=\"".$config[$name]."\"",TRUE);
$string=str_replace("select(","",substr($option, 0, -1));
$sarr=explode(";",$string);
foreach($sarr as $str){
$substr=explode("|",$str);
$values[$substr[0]]=$substr[1];
}
$select=$panel->select($values,$value,$name,"",TRUE);
return $select;
}
}
function meta() { function meta() {
global $module,$config,$db,$panel,$userinfo,$admin,$root; global $module,$config,$db,$panel,$userinfo,$admin,$root;

View file

@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: 9dc39c20490c4f2db08d39ade0b9455db4ba286a $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!"); die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
@ -46,7 +46,7 @@ class editusers_panel extends admin_module{
if($_POST["password"]!=""){ if($_POST["password"]!=""){
$pwd=", `password`='".hash("sha256",$salt.$db->escape($_POST["password"]))."', `loginkey`='".$_POST['key']."',`salt` = '".$salt."'"; $pwd=", `password`='".hash("sha256",$salt.$db->escape($_POST["password"]))."', `loginkey`='".$_POST['key']."',`salt` = '".$salt."'";
} }
$plugin->run_hook('admin_user_before_update',array('data'=>$_POST,'key'=>$key,'user_fid'=>$session->userdata['fuid'])); $plugin->run_hook('admin_user_before_update',array('data'=>$_POST,'user_fid'=>$session->userdata['fuid']));
$db->query("UPDATE `" . $config["prefix"] . "users` SET `username`='".$db->escape($_POST["name"])."',`realname`='".$db->escape($_POST["realname"])."',`email`='".$db->escape($_POST["email"])."',`from`='".$db->escape($_POST["from"])."',`gender`='".$db->escape($_POST["gender"])."',`bio`='".$db->escape($_POST["bio"])."',`homepage`='".$db->escape($_POST["homepage"])."',`role`='".$db->escape($_POST["role"])."',`active`='".$db->escape($_POST["active"])."',".$pwd." WHERE `uid`='".intval($_POST["uid"])."'"); $db->query("UPDATE `" . $config["prefix"] . "users` SET `username`='".$db->escape($_POST["name"])."',`realname`='".$db->escape($_POST["realname"])."',`email`='".$db->escape($_POST["email"])."',`from`='".$db->escape($_POST["from"])."',`gender`='".$db->escape($_POST["gender"])."',`bio`='".$db->escape($_POST["bio"])."',`homepage`='".$db->escape($_POST["homepage"])."',`role`='".$db->escape($_POST["role"])."',`active`='".$db->escape($_POST["active"])."',".$pwd." WHERE `uid`='".intval($_POST["uid"])."'");
$_POST['user_fid']=$session->userdata['fuid']; $_POST['user_fid']=$session->userdata['fuid'];
$plugin->run_hook('admin_user_after_update',array('data'=>$_POST)); $plugin->run_hook('admin_user_after_update',array('data'=>$_POST));
@ -108,15 +108,15 @@ class editusers_panel extends admin_module{
$user[]=$row; $user[]=$row;
} }
$panel->title=$lang->_('USERS'); $panel->title=$lang->_('USERS');
$panel->content.="<table id=\"users\" width=\"90%\" cellspacing=\"2\"> $panel->content.="<table id=\"users\" style=\"width: 90%; border-spacing: 2px;\">
<thead> <thead>
<tr> <tr>
<th style=\"text-align='center';\">".$lang->_('ID')."</th> <th style=\"text-align: center;\">".$lang->_('ID')."</th>
<th style=\"text-align='center';\">".$lang->_('USERNAME')."</th> <th style=\"text-align: center;\">".$lang->_('USERNAME')."</th>
<th style=\"text-align='center';\">".$lang->_('REALNAME')."</th> <th style=\"text-align: center;\">".$lang->_('REALNAME')."</th>
<th style=\"text-align='center';\">".$lang->_('ROLE')."</th> <th style=\"text-align: center;\">".$lang->_('ROLE')."</th>
<th style=\"text-align='center';\">".$lang->_('STATUS')."</th> <th style=\"text-align: center;\">".$lang->_('STATUS')."</th>
<th style=\"text-align='center';\">".$lang->_('ACTION')."</th> <th style=\"text-align: center;\">".$lang->_('ACTION')."</th>
</tr></thead><tbody>"; </tr></thead><tbody>";
if(!empty($user)){ if(!empty($user)){
foreach($user as $u){ foreach($user as $u){
@ -131,22 +131,22 @@ class editusers_panel extends admin_module{
$u['activestyle']='style="font-style:italic;"'; $u['activestyle']='style="font-style:italic;"';
} }
$panel->content.="<tr ".$u['activestyle']."> $panel->content.="<tr ".$u['activestyle'].">
<td style=\"text-align='center';\">".$u["uid"]."</td> <td style=\"text-align: center;\">".$u["uid"]."</td>
<td style=\"text-align='center';\">".$u["username"]."</td> <td style=\"text-align: center;\">".$u["username"]."</td>
<td style=\"text-align='center';\">".$u["realname"]."</td> <td style=\"text-align: center;\">".$u["realname"]."</td>
<td style=\"text-align='center';\">".$u["role_name"]."</td> <td style=\"text-align: center;\">".$u["role_name"]."</td>
<td style=\"text-align='center';\">".$u['activetext']."</td>"; <td style=\"text-align: center;\">".$u['activetext']."</td>";
if($u["uid"]==$session->userdata["uid"]){ if($u["uid"]==$session->userdata["uid"]){
$panel->content.="<td style=\"text-align='center';\"><a onclick=\"return confirmLink(this,'".$lang->_('BADIDEA')."')\" href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;action=delete&amp;user=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;edituser=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td> $panel->content.="<td style=\"text-align: center;\"><a onclick=\"return confirmLink(this,'".$lang->_('BADIDEA')."')\" href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;action=delete&amp;user=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;edituser=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
</tr>"; </tr>";
}else{ }else{
$panel->content.="<td style=\"text-align='center';\"><a onclick=\"return confirmLink(this, '".sprintf($lang->_('DELETEUSER'),$u["username"])."')\" href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;action=delete&amp;user=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;edituser=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td> $panel->content.="<td style=\"text-align: center;\"><a onclick=\"return confirmLink(this, '".sprintf($lang->_('DELETEUSER'),$u["username"])."')\" href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;action=delete&amp;user=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;edituser=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
</tr>"; </tr>";
} }
} }
}else{ }else{
$panel->content.="<tr> $panel->content.="<tr>
<td style=\"text-align='center';\" colspan=\"5\">".$lang->_('NOUSERS')."</td> <td style=\"text-align: center;\" colspan=\"5\">".$lang->_('NOUSERS')."</td>
</tr>"; </tr>";
} }
$panel->content.="</tbody></table><br />"; $panel->content.="</tbody></table><br />";

View file

@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BeCast Webengine core * @package BeCast Webengine 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: 28fe87cea02728845f7d402ec06e0268a2b4d472 $
*/ */
ERROR_REPORTING(E_ALL ^E_NOTICE); ERROR_REPORTING(E_ALL ^E_NOTICE);
$basepath=""; $basepath="";
@ -80,6 +80,9 @@ if(isset($session->userdata['uid']) && $session->userdata['uid']!=0 && ($sessio
$result = $db->query("SHOW TABLE STATUS"); $result = $db->query("SHOW TABLE STATUS");
while ($row = $db->fetch_array($result)) while ($row = $db->fetch_array($result))
{ {
if(empty($row['Rows'])){
$row['Rows'] = 0;
}
$total_rows += $row['Rows']; $total_rows += $row['Rows'];
$total_data += $row['Data_length']; $total_data += $row['Data_length'];
$total_index += $row['Index_length']; $total_index += $row['Index_length'];

View file

@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: e4eaafcfd11039c76025c274425ece9809767876 $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {
@ -65,13 +65,13 @@ class module_panel extends admin_module{
$panel->title="Modulverwaltung"; $panel->title="Modulverwaltung";
$panel->content.="<h2>Installierte Module</h2><br /> $panel->content.="<h2>Installierte Module</h2><br />
<table width=\"90%\" cellspacing=\"2\"> <table style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th style=\"text-align='center';\">Modul</th> <th style=\"text-align: center;\">Modul</th>
<th style=\"text-align='center';\">Version</th> <th style=\"text-align: center;\">Version</th>
<th style=\"text-align='center';\">Autor</th> <th style=\"text-align: center;\">Autor</th>
<th style=\"text-align='center';\">Homepage</th> <th style=\"text-align: center;\">Homepage</th>
<th style=\"text-align='center';\">Aktion</th> <th style=\"text-align: center;\">Aktion</th>
</tr>"; </tr>";
if(!empty($core->mod_)){ if(!empty($core->mod_)){
foreach($core->mod_ as $mod){ foreach($core->mod_ as $mod){
@ -88,11 +88,11 @@ class module_panel extends admin_module{
$depends.='<br /><span style="font-size: xx-small;">h&auml;ngt ab von: '.$deps; $depends.='<br /><span style="font-size: xx-small;">h&auml;ngt ab von: '.$deps;
} }
$panel->content.="<tr> $panel->content.="<tr>
<td style=\"text-align='center';\">".$mod["name"].$depends."</td> <td style=\"text-align: center;\">".$mod["name"].$depends."</td>
<td style=\"text-align='center';\">".$mod["version"]."</td> <td style=\"text-align: center;\">".$mod["version"]."</td>
<td style=\"text-align='center';\">".$mod["author"]."</td> <td style=\"text-align: center;\">".$mod["author"]."</td>
<td style=\"text-align='center';\"><a href=\"".$mod["url"]."\">".$mod["url"]."</a></td> <td style=\"text-align: center;\"><a href=\"".$mod["url"]."\">".$mod["url"]."</a></td>
<td style=\"text-align='center';\"><a onclick=\"return confirmLink(this, 'Willst du wirklich das Modul ".$mod["name"]." deinstallieren? Alle Daten diese Plugins werden gel&ouml;scht!')\" href=\"".$config["path"]."/admin/index.php?panel=module&amp;action=uninstall&amp;module=".$mod["file"]."\">Deinstallieren</a></td> <td style=\"text-align: center;\"><a onclick=\"return confirmLink(this, 'Willst du wirklich das Modul ".$mod["name"]." deinstallieren? Alle Daten diese Plugins werden gel&ouml;scht!')\" href=\"".$config["path"]."/admin/index.php?panel=module&amp;action=uninstall&amp;module=".$mod["file"]."\">Deinstallieren</a></td>
</tr>"; </tr>";
unset($deps); unset($deps);
unset($depends); unset($depends);
@ -100,19 +100,19 @@ class module_panel extends admin_module{
} }
}else{ }else{
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\" colspan=\"5\">Keine Module verf&uuml;gbar.</td> <td style=\"text-align: center;\" colspan=\"5\">Keine Module verf&uuml;gbar.</td>
</tr>"; </tr>";
} }
$panel->content.="</table><br />"; $panel->content.="</table><br />";
$panel->content.="<h2>Nicht Installierte Module</h2><br />"; $panel->content.="<h2>Nicht Installierte Module</h2><br />";
$panel->content.="<table width=\"90%\" cellspacing=\"2\"> $panel->content.="<table style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th style=\"text-align='center';\">Modul</th> <th style=\"text-align: center;\">Modul</th>
<th style=\"text-align='center';\">Version</th> <th style=\"text-align: center;\">Version</th>
<th style=\"text-align='center';\">Autor</th> <th style=\"text-align: center;\">Autor</th>
<th style=\"text-align='center';\">Homepage</th> <th style=\"text-align: center;\">Homepage</th>
<th style=\"text-align='center';\">Aktion</th> <th style=\"text-align: center;\">Aktion</th>
</tr>"; </tr>";
$modules=$this->avaiable_modules(); $modules=$this->avaiable_modules();
@ -131,11 +131,11 @@ class module_panel extends admin_module{
$depends.='<br /><span style="font-size: xx-small;">h&auml;ngt ab von: '.$deps; $depends.='<br /><span style="font-size: xx-small;">h&auml;ngt ab von: '.$deps;
} }
$panel->content.="<tr> $panel->content.="<tr>
<td style=\"text-align='center';\">".$mod["name"].$depends."</td> <td style=\"text-align: center;\">".$mod["name"].$depends."</td>
<td style=\"text-align='center';\">".$mod["version"]."</td> <td style=\"text-align: center;\">".$mod["version"]."</td>
<td style=\"text-align='center';\">".$mod["author"]."</td> <td style=\"text-align: center;\">".$mod["author"]."</td>
<td style=\"text-align='center';\"><a href=\"".$mod["url"]."\">".$mod["url"]."</a></td> <td style=\"text-align: center;\"><a href=\"".$mod["url"]."\">".$mod["url"]."</a></td>
<td style=\"text-align='center';\"><a href=\"".$config["path"]."/admin/index.php?panel=module&amp;action=install&amp;module=".$mod["file"]."\">Installieren</a></td> <td style=\"text-align: center;\"><a href=\"".$config["path"]."/admin/index.php?panel=module&amp;action=install&amp;module=".$mod["file"]."\">Installieren</a></td>
</tr>"; </tr>";
unset($deps); unset($deps);
unset($depends); unset($depends);
@ -143,7 +143,7 @@ class module_panel extends admin_module{
} }
}else{ }else{
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\" colspan=\"5\">Keine Module verf&uuml;gbar.</td> <td style=\"text-align: center;\" colspan=\"5\">Keine Module verf&uuml;gbar.</td>
</tr>"; </tr>";
} }
$panel->content.="</table>"; $panel->content.="</table>";

View file

@ -1,4 +1,4 @@
<?php <?php global $session;
/** /**
* Project: BeCast WebEngine - simple site engine * Project: BeCast WebEngine - simple site engine
* File: /admin/navigation.apnl.php * File: /admin/navigation.apnl.php
@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BeCast WebEngine core * @package BeCast WebEngine 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: 3b8272c8cbeb69ce9d3bda8405887ab373a19d9e $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!"); die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");

View file

@ -1,4 +1,4 @@
<?php <?php global $session;
/** /**
* Project: BeCast WebEngine - simple site engine * Project: BeCast WebEngine - simple site engine
* File: /admin/versions.apnl.php * File: /admin/versions.apnl.php
@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: 1eb16074139417e5c0ba8cee93003e66221035d4 $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!"); die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
@ -45,104 +45,101 @@ class versions_panel extends admin_module{
$dir_objects[] = $file_object; $dir_objects[] = $file_object;
} }
$url="http://www.astat.org/versions.php"; $url="https://webengine.becast.at/index.php?task=versioncheck";
$file = @fopen($url,"r"); $out = xml2array($url);
if($file != false){ if(!empty($out)){
$data = @fread($file,"4048");
$xml=new xml();
$out = $xml->parse($data, NULL);
$i=0; $i=0;
$max=count($out["mod"]); $max=count($out['release']["mod"]);
while($i<=$max){ while($i<=$max){
$versions[$i]["name"]=$out["mod"][$i]; $versions[$i]["name"]=$out['release']["mod"][$i]["name"];
$versions[$i]["ver"]=$out["ver"][$i]; $versions[$i]["ver"]=$out['release']["mod"][$i]["ver"];
$versions[$i]["file"]=$out['release']["mod"][$i]["file"];
$i++; $i++;
} }
$vers=$core->ver_major.".".$core->ver_minor.".".$core->ver_rev; $vers=$core->ver_major.".".$core->ver_minor.".".$core->ver_rev;
$panel->title="Moduleversionen"; $panel->title="Moduleversionen";
$panel->content.="<table width=\"80%\" cellspacing=\"2\"> $panel->content.="<table style=\"width: 80%;\">
<tr> <tr>
<th align=\"center\">Modul</th> <th style=\"text-align: center;\">Modul</th>
<th align=\"center\">Version</th> <th style=\"text-align: center;\">Version</th>
<th align=\"center\">Update</th> <th style=\"text-align: center;\">Update</th>
</tr>"; </tr>";
if($out["relase"]["version"]>$vers){ if($out["release"]["version"]>$vers){
$panel->content.="<tr><td colspan=\"3\">Diese Version ist nicht mehr aktuell.<br />Besuche <a href=\"http://www.astat.org\">die Projektseite</a> f&uuml;r ein Update</td></tr>"; $panel->content.="<tr><td colspan=\"3\">Diese Version ist nicht mehr aktuell.<br />Besuche <a href=\"https://webengine.becast.at\">die Projektseite</a> f&uuml;r ein Update</td></tr>";
}else{ }else{
foreach($module as $mod){
foreach($module as $mod){ $panel->content.="<tr>
$panel->content.="<tr> <td style=\"text-align: center;\">".$mod["name"]."</td>
<td align=\"center\">".$mod["name"]."</td> <td style=\"text-align: center;\">".$mod["ver"]."</td>";
<td align=\"center\">".$mod["ver"]."</td>";
foreach($versions as $v){
if($v["name"]==$mod["name"]){
if($mod["ver"]<$v["ver"]){
$panel->content.="<td align=\"center\"><a href=\"http://projectx.becast.at/get_file.php?file=".urlencode($v["name"])."\">Neue Version verf&uuml;gbar!</a></td>";
}elseif($mod["ver"]==$v["ver"]){
$panel->content.="<td align=\"center\">Aktuell</td>";
}else{
$panel->content.="<td align=\"center\">Modified file?</td>";
}
}
}
$panel->content.="</tr>";
}
foreach($core->mod_ as $mod){
$panel->content.="<tr>
<td align=\"center\"><a href=\"".$mod["url"]."\">".$mod["name"]."<a></td>
<td align=\"center\">".$mod["version"]."</td>";
foreach($versions as $v){ foreach($versions as $v){
if($v["name"]==$mod["name"]){ if($v["name"]==$mod["name"]){
if($mod["version"]<$v["ver"]){ if($mod["ver"]<$v["ver"]){
$panel->content.="<td align=\"center\"><a href=\"http://projectx.becast.at/get_file.php?file=".urlencode($v["name"])."\">Neue Version verf&uuml;gbar!</a></td>"; $panel->content.="<td style=\"text-align: center;\"><a href=\"https://code.ehwurscht.at/genuineparts/BeCastWebEngine/src/branch/main/inc/".urlencode($v["file"])."\">Neue Version verf&uuml;gbar!</a></td>";
}elseif($mod["version"]==$v["ver"]){ }elseif($mod["ver"]==$v["ver"]){
$panel->content.="<td align=\"center\">Aktuell</td>"; $panel->content.="<td style=\"text-align: center;\">Aktuell</td>";
}else{ }else{
$panel->content.="<td align=\"center\">Modified file?</td>"; $panel->content.="<td style=\"text-align: center;\">Modified file?</td>";
}
} }
} }
$panel->content.="</tr>"; }
} $panel->content.="</tr>";
}
foreach($core->mod_ as $mod){
$panel->content.="<tr>
<td style=\"text-align: center;\"><a href=\"".$mod["url"]."\">".$mod["name"]."<a></td>
<td style=\"text-align: center;\">".$mod["version"]."</td>";
foreach($versions as $v){
if($v["name"]==$mod["name"]){
if($mod["version"]<$v["ver"]){
$panel->content.="<td style=\"text-align: center;\"><a href=\"http://projectx.becast.at/get_file.php?file=".urlencode($v["name"])."\">Neue Version verf&uuml;gbar!</a></td>";
}elseif($mod["version"]==$v["ver"]){
$panel->content.="<td style=\"text-align: center;\">Aktuell</td>";
}else{
$panel->content.="<td style=\"text-align: center;\">Modified file?</td>";
}
}
}
$panel->content.="</tr>";
} }
$panel->content.="</table><br />";
$panel->parse_page();
}else{
$panel->title="Moduleversionen";
$panel->content.="Die Versionpr&uuml;fung ist fehlgeschlagen.";
$panel->content.="<table width=\"80%\" cellspacing=\"2\">
<tr>
<th align=\"center\">Modul</th>
<th align=\"center\">Version</th>
</tr>";
foreach($module as $mod){
$panel->content.="<tr>
<td align=\"center\">".$mod["name"]."</td>
<td align=\"center\">".$mod["ver"]."</td>";
$panel->content.="</tr>";
}
$panel->content.="</table><br />";
$panel->parse_page();
}
$panel->title="Datei Infos";
$panel->content.="<table width=\"80%\" cellspacing=\"2\">
<tr>
<th align=\"center\">Datei</th>
<th align=\"center\">Gr&ouml;&szlig;e</th>
<th align=\"center\">zuletzt Ge&auml;ndert</th>
</tr>";
foreach($dir_objects as $files){
$panel->content.="<tr>
<td align=\"center\">".$files["name"]."</td>
<td align=\"center\">".$files["size"]."</td>
<td align=\"center\">".$files["time"]."</td>
</tr>";
} }
$panel->content.="</table><br />";
$panel->parse_page();
}else{
$panel->title="Moduleversionen";
$panel->content.="Die Versionpr&uuml;fung ist fehlgeschlagen.";
$panel->content.="<table style=\"width: 80%;\">
<tr>
<th style=\"text-align: center;\">Modul</th>
<th style=\"text-align: center;\">Version</th>
</tr>";
$panel->content.="</table>";
foreach($module as $mod){
$panel->content.="<tr>
<td style=\"text-align: center;\">".$mod["name"]."</td>
<td style=\"text-align: center;\">".$mod["ver"]."</td>";
$panel->content.="</tr>";
}
$panel->content.="</table><br />";
$panel->parse_page();
}
$panel->title="Datei Infos";
$panel->content.="<table style=\"width: 80%;\">
<tr>
<th style=\"text-align: center;\">Datei</th>
<th style=\"text-align: center;\">Gr&ouml;&szlig;e</th>
<th style=\"text-align: center;\">zuletzt Ge&auml;ndert</th>
</tr>";
foreach($dir_objects as $files){
$panel->content.="<tr>
<td style=\"text-align: center;\">".$files["name"]."</td>
<td style=\"text-align: center;\">".$files["size"]."</td>
<td style=\"text-align: center;\">".$files["time"]."</td>
</tr>";
}
$panel->content.="</table>";
} }
function byteConvert( $bytes ) { function byteConvert( $bytes ) {
@ -180,315 +177,142 @@ class versions_panel extends admin_module{
} }
class Xml { function xml2array($url, $get_attributes = 1, $priority = 'tag')
{
/** $contents = "";
* Xml parser container. if (!function_exists('xml_parser_create'))
* {
* @var resource parser return array ();
*/
var $parser;
/**
* Parse result.
*
* @var array pOut
*/
var $pOut = array();
/**
* Contain the overlap tag temporarily .
*
* @var array track
*/
var $track = array();
/**
* Current tag level.
*
* @var string tmpLevel
*/
var $tmpLevel = '';
/**
* Attribut of current tag.
*
* @var array tmpAttrLevel
*/
var $tmpAttrLevel = array();
/**
* Write result.
*
* @var string wOut
*/
var $wOut = '';
/**
* parse
* Set the parser Xml and theses options.
* Xml file could be a string, a file, or curl.
* When the source is loaded, we run the parse.
* After, we clean all the memory and variables,
* and return the result in an array.
*
* @access public
* @param src string Source
* @param typeof string Source type : NULL, FILE, CURL.
* @param encoding string Encoding type.
* @return array
*/
function parse ( $src, $typeof = 'FILE', $encoding = 'UTF-8' ) {
// ini;
// (re)set array;
$this->pOut = array();
$this->parser = xml_parser_create();
xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($this->parser, XML_OPTION_TARGET_ENCODING, $encoding);
xml_set_object($this->parser, $this);
xml_set_element_handler($this->parser, 'startHandler', 'endHandler');
xml_set_character_data_handler($this->parser, 'contentHandler');
if(empty($src))
trigger_error('Source could not be empty.', E_USER_ERROR);
// format source;
if($typeof == NULL)
$data = $src;
elseif($typeof == 'FILE') {
$fop = fopen($src, 'r');
$data = null;
while(!feof($fop))
$data .= fread($fop, 1024);
fclose($fop);
} }
elseif($typeof == 'CURL') { $parser = xml_parser_create('');
$curl = curl_init(); if (!($fp = @ fopen($url, 'rb')))
curl_setopt($curl, CURLOPT_URL, $src); {
curl_setopt($curl, CURLOPT_HEADER, 0); return array ();
$data = curl_exec($curl);
curl_close($curl);
} }
else while (!feof($fp))
return trigger_error('Xml parser need data.', E_USER_ERROR); {
$contents .= fread($fp, 8192);
// parse $data;
$parse = xml_parse($this->parser, $data);
if(!$parse)
return trigger_error('XML Error : %s at line %d.', E_USER_ERROR,
array(xml_error_string(xml_get_error_code($this->parser)),
xml_get_current_line_number($this->parser)));
// destroy parser;
xml_parser_free($this->parser);
// unset extra vars;
unset($data,
$this->track,
$this->tmpLevel);
// remove global tag and return the result;
return $this->pOut[0][key($this->pOut[0])];
}
/**
* startHandler
* Manage the open tag, and these attributs by callback.
* The purpose is to create a pointer : {{int ptr}}.
* If the pointer exists, we have a multi-tag situation.
* Tag name is stocked like : '<tag>'
* Attributs is stocked like : '<tag>-ATTR'
* Return true but built $this->pOut.
*
* @access private
* @param parser resource Parser resource.
* @param tag string Tag name.
* @param attr array Attribut.
* @return bool
*/
function startHandler ( $parser, $tag, $attr ) {
// built $this->track;
$this->track[] = $tag;
// place pointer to the end;
end($this->track);
// temp level;
$this->tmpLevel = key($this->track);
// built attrLevel into $this->tmpAttrLevel
if(isset($this->tmpAttrLevel[$this->tmpLevel]['attrLevel']))
$this->tmpAttrLevel[$this->tmpLevel]['attrLevel']++;
// built $this->pOut;
if(!isset($this->pOut[key($this->track)][$tag])) {
$this->pOut[key($this->track)][$tag] = '{{'.key($this->track).'}}';
if(!isset($this->tmpAttrLevel[$this->tmpLevel]['attrLevel']))
$this->tmpAttrLevel[$this->tmpLevel]['attrLevel'] = 0;
} }
fclose($fp);
// built attributs; xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, "UTF-8");
if(!empty($attr)) { xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
$this->tmpAttrLevel[$this->tmpLevel][] = $this->tmpAttrLevel[$this->tmpLevel]['attrLevel']; xml_parse_into_struct($parser, trim($contents), $xml_values);
end($this->tmpAttrLevel[$this->tmpLevel]); xml_parser_free($parser);
if (!$xml_values)
// it's the first attribut; return; //Hmm...
if(!isset($this->pOut[key($this->track)][$tag.'-ATTR'])) $xml_array = array ();
$this->pOut[key($this->track)][$tag.'-ATTR'] = $attr; $parents = array ();
$opened_tags = array ();
// or it's not the first; $arr = array ();
else { $current = & $xml_array;
// so it's the second; $repeated_tag_index = array ();
if(!prev($this->tmpAttrLevel[$this->tmpLevel])) { foreach ($xml_values as $data)
$this->pOut[key($this->track)][$tag.'-ATTR'] = array( {
current($this->tmpAttrLevel[$this->tmpLevel]) => $this->pOut[key($this->track)][$tag.'-ATTR'], unset ($attributes, $value);
next($this->tmpAttrLevel[$this->tmpLevel]) => $attr extract($data);
); $result = array ();
} $attributes_data = array ();
// or one other; if (isset ($value))
{
if ($priority == 'tag')
$result = $value;
else else
$this->pOut[key($this->track)][$tag.'-ATTR'][$this->tmpAttrLevel[$this->tmpLevel]['attrLevel']] = $attr; $result['value'] = $value;
} }
} if (isset ($attributes) and $get_attributes)
{
return true; foreach ($attributes as $attr => $val)
} {
if ($priority == 'tag')
$attributes_data[$attr] = $val;
/**
* contentHandler
* Detect the pointer, or the multi-tag by callback.
* If we have a pointer, the method replaces this pointer by the content.
* Else we have a multi-tag, the method add a element to this array.
* Return true but built $this->pOut.
*
* @access private
* @param parser resource Parser resource.
* @param contentHandler string Tag content.
* @return bool
*/
function contentHandler ( $parser, $contentHandler ) {
// remove all spaces;
if(!preg_match('#^\\\\s*$#', $contentHandler)) {
// $contentHandler is a string;
if(is_string($this->pOut[key($this->track)][current($this->track)])) {
// then $contentHandler is a pointer : {{int ptr}} case 1;
if(preg_match('#{{([0-9]+)}}#', $this->pOut[key($this->track)][current($this->track)]))
$this->pOut[key($this->track)][current($this->track)] = $contentHandler;
// or then $contentHandler is a multi-tag content case 2;
else {
$this->pOut[key($this->track)][current($this->track)] = array(
0 => $this->pOut[key($this->track)][current($this->track)],
1 => $contentHandler
);
}
}
// or $contentHandler is an array;
else {
// then $contentHandler is the multi-tag array case 1;
if(isset($this->pOut[key($this->track)][current($this->track)][0]))
$this->pOut[key($this->track)][current($this->track)][] = $contentHandler;
// or then $contentHandler is a node-tag case 2;
else
$this->pOut[key($this->track)][current($this->track)] = array(
0 => $this->pOut[key($this->track)][current($this->track)],
1 => $contentHandler
);
}
}
return true;
}
/**
* endHandler
* Detect the last pointer by callback.
* Move the last tags block up.
* And reset some temp variables.
* Return true but built $this->pOut.
*
* @access private
* @param parser resource Parser resource.
* @param tag string Tag name.
* @return bool
*/
function endHandler ( $parser, $tag ) {
// if level--;
if(key($this->track) == $this->tmpLevel-1) {
// search up tag;
// use array_keys if an empty tag exists (taking the last tag);
// if it's a normal framaset;
$keyBack = array_keys($this->pOut[key($this->track)], '{{'.key($this->track).'}}');
$count = count($keyBack);
if($count != 0) {
$keyBack = $keyBack[$count-1];
// move this level up;
$this->pOut[key($this->track)][$keyBack] = $this->pOut[key($this->track)+1];
}
// if we have a multi-tag framaset ($count == 0);
else {
// if place is set;
if(isset($this->pOut[key($this->track)][current($this->track)][0])) {
// if it's a string, we built an array;
if(is_string($this->pOut[key($this->track)][current($this->track)]))
$this->pOut[key($this->track)][current($this->track)] = array(
0 => $this->pOut[key($this->track)][current($this->track)],
1 => $this->pOut[key($this->track)+1]
);
// else add an index into the array;
else else
$this->pOut[key($this->track)][current($this->track)][] = $this->pOut[key($this->track)+1]; $result['attr'][$attr] = $val; //Set all the attributes in a array called 'attr'
} }
// else set the place;
else
$this->pOut[key($this->track)][current($this->track)] = array(
0 => $this->pOut[key($this->track)][current($this->track)],
1 => $this->pOut[key($this->track)+1]
);
} }
if ($type == "open")
// kick $this->pOut level out; {
array_pop($this->pOut); $parent[$level -1] = & $current;
end($this->pOut); if (!is_array($current) or (!in_array($tag, array_keys($current))))
{
$current[$tag] = $result;
if ($attributes_data)
$current[$tag . '_attr'] = $attributes_data;
$repeated_tag_index[$tag . '_' . $level] = 1;
$current = & $current[$tag];
}
else
{
if (isset ($current[$tag][0]))
{
$current[$tag][$repeated_tag_index[$tag . '_' . $level]] = $result;
$repeated_tag_index[$tag . '_' . $level]++;
}
else
{
$current[$tag] = array (
$current[$tag],
$result
);
$repeated_tag_index[$tag . '_' . $level] = 2;
if (isset ($current[$tag . '_attr']))
{
$current[$tag]['0_attr'] = $current[$tag . '_attr'];
unset ($current[$tag . '_attr']);
}
}
$last_item_index = $repeated_tag_index[$tag . '_' . $level] - 1;
$current = & $current[$tag][$last_item_index];
}
}
elseif ($type == "complete")
{
if (!isset ($current[$tag]))
{
$current[$tag] = $result;
$repeated_tag_index[$tag . '_' . $level] = 1;
if ($priority == 'tag' and $attributes_data)
$current[$tag . '_attr'] = $attributes_data;
}
else
{
if (isset ($current[$tag][0]) and is_array($current[$tag]))
{
$current[$tag][$repeated_tag_index[$tag . '_' . $level]] = $result;
if ($priority == 'tag' and $get_attributes and $attributes_data)
{
$current[$tag][$repeated_tag_index[$tag . '_' . $level] . '_attr'] = $attributes_data;
}
$repeated_tag_index[$tag . '_' . $level]++;
}
else
{
$current[$tag] = array (
$current[$tag],
$result
);
$repeated_tag_index[$tag . '_' . $level] = 1;
if ($priority == 'tag' and $get_attributes)
{
if (isset ($current[$tag . '_attr']))
{
$current[$tag]['0_attr'] = $current[$tag . '_attr'];
unset ($current[$tag . '_attr']);
}
if ($attributes_data)
{
$current[$tag][$repeated_tag_index[$tag . '_' . $level] . '_attr'] = $attributes_data;
}
}
$repeated_tag_index[$tag . '_' . $level]++; //0 and 1 index is already taken
}
}
}
elseif ($type == 'close')
{
$current = & $parent[$level -1];
}
} }
return ($xml_array);
// re-temp level;
$this->tmpLevel = key($this->track);
while(isset($this->tmpAttrLevel[$this->tmpLevel+1]))
array_pop($this->tmpAttrLevel);
// kick $this->track level out;
array_pop($this->track);
end($this->track);
return true;
} }
}
?>

View file

@ -1,190 +0,0 @@
<?php
/**
* Project: astat - simple site engine
* File: /core/database/mysql.class.php
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* 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/core/database/mysql.class.php $
* @copyright 2025 becast.at
* @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: mysql.class.php 104 2010-02-20 19:16:12Z genuineparts $
*/
$module["db"]["name"]="Database Class (mysql)";
$module["db"]["ver"]="1.0.1";
class db {
var $host="";
var $user="root";
var $password="";
var $db="becast";
var $encoding;
var $logging;
var $abfragen=0;
var $exception;
private $conid=FALSE;
public const ASSOC = 1;
public const NUM = 2;
public const BOTH = 3;
function __construct($host,$user,$password,$db,$encoding="utf8",$logging=false,$exception=false) {
global $log,$config;
$this->host=$host;
$this->user=$user;
$this->password=$password;
$this->db=$db;
$this->logging=$logging;
$this->exception=$exception;
if($this->logging==FALSE && DEBUG!=FALSE){
$this->logger=new logger("file",dirname(dirname(dirname(__FILE__))).'/logs/mysql_debug.log',5);
}elseif($this->logging){
$this->logger=new logger("file",dirname(dirname(dirname(__FILE__))).'/logs/mysql.log');
}
$this->encoding=$encoding;
$this->conid;
if($this->logging)
$this->logger->write("mySQL Klasse instanziert", 5);
if(!$this->conid){
if($this->logging)
$this->logger->write("Connection zu mySQL Server besteht nicht.", 5,__LINE__,__FILE__);
$this->conid=$this->connect($this->host,$this->user,$this->password,$this->db,$this->encoding);
}else{
if($this->logging)
$this->logger->write("Connection zu mySQL Server besteht. ID ".$this->conid, 5,__LINE__,__FILE__);
}
if($this->encoding)
$this->query("SET NAMES '".$this->encoding."'");
}
function __destruct() {
$this->disconnect();
}
function connect($host, $user, $password, $db, $encoding){
$conn = @mysql_connect($host, $user, $password);
if($this->logging)
$this->logger->write("Connect to Mysql Server", 5,__LINE__,__FILE__);
if(!$conn){
if($this->exception){
throw new Exception('mySQLi Connect failed');
}else{
trigger_error("mySQL Connect failed",E_USER_ERROR);
if($this->logging)
$this->logger->write("Connect Failed ". $this->error(), 5,__LINE__,__FILE__);
die();
}
}else{
if($this->logging)
$this->logger->write("Selecting Database ".$db, 5,__LINE__,__FILE__);
}
$conn2 = @mysql_select_db($db,$conn);
if($this->logging)
$this->logger->write("Connect to Mysql Server", 5,__LINE__,__FILE__);
if(!$conn2){
include('templates/general_error.tpl');
if($this->logging)
$this->logger->write("Select failed ". $this->error(), 5,__LINE__,__FILE__);
die();
}else{
if($this->logging)
$this->logger->write("Database ".$db." selected", 5,__LINE__,__FILE__);
}
return $conn;
}
function disconnect(){
if($this->logging)
$this->logger->write("Closing Mysql Connection.", 5,__LINE__,__FILE__);
@mysql_close($this->conid);
}
function query($query){
global $abfragen;
if($this->logging)
$this->logger->write($query." ". $this->conid, 5,__LINE__,__FILE__);
$this->abfragen++;
$res = mysql_query($query, $this->conid);
return $res;
}
function querys(){
return $this->abfragen;
}
function num_rows($result){
$rows = mysql_num_rows($result);
return $rows;
}
function fetch_row($result){
$row = mysql_fetch_row($result);
return $row;
}
function fetch_array($result){
$row = array();
$row = mysql_fetch_array($result, MYSQL_ASSOC);
return $row;
}
function escape($string){
$return = mysql_real_escape_string($string);
return $return;
}
function escape_binary($string){
return "X'".$this->escape(bin2hex($string))."'";
}
function fetch_object($result){
$row = mysql_fetch_object($result);
return $row;
}
function error(){
$error = mysql_error($this->conid);
return $error;
}
function errno(){
$errno = mysql_errno($this->conid);
return $errno ;
}
function free_result($result){
mysql_free_result($result);
}
function last_id(){
$id = mysql_insert_id($this->conid);
return $id;
}
}
?>

View file

@ -1,6 +1,6 @@
<?php <?php
/** /**
* Project: astat - simple site engine * Project: BeCast WebEngine - simple site engine
* File: /core/database/mysqli.class.php * File: /core/database/mysqli.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,16 +17,16 @@
* 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/core/database/mysqli.class.php $ * @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: mysqli.class.php 126 2010-02-21 21:07:52Z genuineparts $ * @version $Id: 04fd2c27ac07acf18e32d57d6fa972322831dfac $
*/ */
$module["db"]["name"]="Database Class (mysqli)"; $module["db"]["name"]="Database Class (mysqli)";
$module["db"]["ver"]="1.0.1"; $module["db"]["ver"]="1.0.2";
class db { class db {
var $mysqli; var $mysqli;
var $host=""; var $host="";
@ -119,31 +119,23 @@ class db {
function querys(){ function querys(){
return $this->abfragen; return $this->abfragen;
} }
function num_rows($result){ function num_rows($result){
$rows = $result->num_rows; return $result->num_rows;
return $rows; }
}
function fetch_row($result){ function fetch_row($result){
$row = $result->fetch_row(); return $result->fetch_row();
return $row; }
}
function fetch_array($result){ function fetch_array($result){
return $result->fetch_array(MYSQLI_ASSOC);
$row = array(); }
$row = $result->fetch_array(MYSQLI_ASSOC);
return $row;
}
function fetch_array_num($result){ function fetch_array_num($result){
return $result->fetch_array(MYSQLI_NUM);
$row = array(); }
$row = $result->fetch_array(MYSQLI_NUM );
return $row;
}
function escape($string){ function escape($string){
$return = $this->mysqli->real_escape_string($string); $return = $this->mysqli->real_escape_string($string);

View file

@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: 646f8f2e01e54ae7ca58752e01a9cd58299d9a4c $
*/ */
define("INBCWE", true); define("INBCWE", true);

View file

@ -1,61 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ERROR 400 - Bad Request!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex" />
<style type="text/css"><!--
body {
color: #444444;
background-color: #EEEEEE;
font-family: 'Trebuchet MS', sans-serif;
font-size: 80%;
}
h1 {}
h2 { font-size: 1.2em; }
#page{
background-color: #FFFFFF;
width: 60%;
margin: 24px auto;
padding: 12px;
}
#header {
padding: 6px ;
text-align: center;
}
.status3xx { background-color: #475076; color: #FFFFFF; }
.status4xx { background-color: #C55042; color: #FFFFFF; }
.status5xx { background-color: #F2E81A; color: #000000; }
#content {
padding: 4px 0 24px 0;
}
#footer {
color: #666666;
background: #f9f9f9;
padding: 10px 20px;
border-top: 5px #efefef solid;
font-size: 0.8em;
text-align: center;
}
#footer a {
color: #999999;
}
--></style>
</head>
<body>
<div id="page">
<div id="header" class="status4xx">
<h1>ERROR 400 - Bad Request!</h1>
</div>
<div id="content">
<h2>The following error occurred:</h2>
<p>You have used invalid syntax.</p>
<P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p>
</div>
<div id="footer">
<p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p>
</div>
</div>
</body>
</html>

View file

@ -1,61 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ERROR 401 - Unauthorized!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex" />
<style type="text/css"><!--
body {
color: #444444;
background-color: #EEEEEE;
font-family: 'Trebuchet MS', sans-serif;
font-size: 80%;
}
h1 {}
h2 { font-size: 1.2em; }
#page{
background-color: #FFFFFF;
width: 60%;
margin: 24px auto;
padding: 12px;
}
#header {
padding: 6px ;
text-align: center;
}
.status3xx { background-color: #475076; color: #FFFFFF; }
.status4xx { background-color: #C55042; color: #FFFFFF; }
.status5xx { background-color: #F2E81A; color: #000000; }
#content {
padding: 4px 0 24px 0;
}
#footer {
color: #666666;
background: #f9f9f9;
padding: 10px 20px;
border-top: 5px #efefef solid;
font-size: 0.8em;
text-align: center;
}
#footer a {
color: #999999;
}
--></style>
</head>
<body>
<div id="page">
<div id="header" class="status4xx">
<h1>ERROR 401 - Unauthorized!</h1>
</div>
<div id="content">
<h2>The following error occurred:</h2>
<p>The URL requested requires authorisation.</p>
<P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p>
</div>
<div id="footer">
<p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p>
</div>
</div>
</body>
</html>

View file

@ -1,61 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ERROR 403 - Forbidden!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex" />
<style type="text/css"><!--
body {
color: #444444;
background-color: #EEEEEE;
font-family: 'Trebuchet MS', sans-serif;
font-size: 80%;
}
h1 {}
h2 { font-size: 1.2em; }
#page{
background-color: #FFFFFF;
width: 60%;
margin: 24px auto;
padding: 12px;
}
#header {
padding: 6px ;
text-align: center;
}
.status3xx { background-color: #475076; color: #FFFFFF; }
.status4xx { background-color: #C55042; color: #FFFFFF; }
.status5xx { background-color: #F2E81A; color: #000000; }
#content {
padding: 4px 0 24px 0;
}
#footer {
color: #666666;
background: #f9f9f9;
padding: 10px 20px;
border-top: 5px #efefef solid;
font-size: 0.8em;
text-align: center;
}
#footer a {
color: #999999;
}
--></style>
</head>
<body>
<div id="page">
<div id="header" class="status4xx">
<h1>ERROR 403 - Forbidden!</h1>
</div>
<div id="content">
<h2>The following error occurred:</h2>
<p>You are not permitted to access the requested URL.</p>
<P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p>
</div>
<div id="footer">
<p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p>
</div>
</div>
</body>
</html>

View file

@ -1,61 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ERROR 404 - Not Found!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex" />
<style type="text/css"><!--
body {
color: #444444;
background-color: #EEEEEE;
font-family: 'Trebuchet MS', sans-serif;
font-size: 80%;
}
h1 {}
h2 { font-size: 1.2em; }
#page{
background-color: #FFFFFF;
width: 60%;
margin: 24px auto;
padding: 12px;
}
#header {
padding: 6px ;
text-align: center;
}
.status3xx { background-color: #475076; color: #FFFFFF; }
.status4xx { background-color: #C55042; color: #FFFFFF; }
.status5xx { background-color: #F2E81A; color: #000000; }
#content {
padding: 4px 0 24px 0;
}
#footer {
color: #666666;
background: #f9f9f9;
padding: 10px 20px;
border-top: 5px #efefef solid;
font-size: 0.8em;
text-align: center;
}
#footer a {
color: #999999;
}
--></style>
</head>
<body>
<div id="page">
<div id="header" class="status4xx">
<h1>ERROR 404 - Not Found!</h1>
</div>
<div id="content">
<h2>The following error occurred:</h2>
<p>The requested URL was not found on this server.</p>
<P>Please check the URL or contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p>
</div>
<div id="footer">
<p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p>
</div>
</div>
</body>
</html>

View file

@ -1,61 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ERROR 405 - Method Not Allowed!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex" />
<style type="text/css"><!--
body {
color: #444444;
background-color: #EEEEEE;
font-family: 'Trebuchet MS', sans-serif;
font-size: 80%;
}
h1 {}
h2 { font-size: 1.2em; }
#page{
background-color: #FFFFFF;
width: 60%;
margin: 24px auto;
padding: 12px;
}
#header {
padding: 6px ;
text-align: center;
}
.status3xx { background-color: #475076; color: #FFFFFF; }
.status4xx { background-color: #C55042; color: #FFFFFF; }
.status5xx { background-color: #F2E81A; color: #000000; }
#content {
padding: 4px 0 24px 0;
}
#footer {
color: #666666;
background: #f9f9f9;
padding: 10px 20px;
border-top: 5px #efefef solid;
font-size: 0.8em;
text-align: center;
}
#footer a {
color: #999999;
}
--></style>
</head>
<body>
<div id="page">
<div id="header" class="status4xx">
<h1>ERROR 405 - Method Not Allowed!</h1>
</div>
<div id="content">
<h2>The following error occurred:</h2>
<p>The method used is not permitted.</p>
<P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p>
</div>
<div id="footer">
<p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p>
</div>
</div>
</body>
</html>

View file

@ -1,61 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ERROR 500 - Internal Server Error!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex" />
<style type="text/css"><!--
body {
color: #444444;
background-color: #EEEEEE;
font-family: 'Trebuchet MS', sans-serif;
font-size: 80%;
}
h1 {}
h2 { font-size: 1.2em; }
#page{
background-color: #FFFFFF;
width: 60%;
margin: 24px auto;
padding: 12px;
}
#header {
padding: 6px ;
text-align: center;
}
.status3xx { background-color: #475076; color: #FFFFFF; }
.status4xx { background-color: #C55042; color: #FFFFFF; }
.status5xx { background-color: #F2E81A; color: #000000; }
#content {
padding: 4px 0 24px 0;
}
#footer {
color: #666666;
background: #f9f9f9;
padding: 10px 20px;
border-top: 5px #efefef solid;
font-size: 0.8em;
text-align: center;
}
#footer a {
color: #999999;
}
--></style>
</head>
<body>
<div id="page">
<div id="header" class="status5xx">
<h1>ERROR 500 - Internal Server Error!</h1>
</div>
<div id="content">
<h2>The following error occurred:</h2>
<p>The requested URL caused an internal server error.</p>
<P>If you get this message repeatedly please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p>
</div>
<div id="footer">
<p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p>
</div>
</div>
</body>
</html>

View file

@ -1,61 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ERROR 502 - Bad Gateway!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex" />
<style type="text/css"><!--
body {
color: #444444;
background-color: #EEEEEE;
font-family: 'Trebuchet MS', sans-serif;
font-size: 80%;
}
h1 {}
h2 { font-size: 1.2em; }
#page{
background-color: #FFFFFF;
width: 60%;
margin: 24px auto;
padding: 12px;
}
#header {
padding: 6px ;
text-align: center;
}
.status3xx { background-color: #475076; color: #FFFFFF; }
.status4xx { background-color: #C55042; color: #FFFFFF; }
.status5xx { background-color: #F2E81A; color: #000000; }
#content {
padding: 4px 0 24px 0;
}
#footer {
color: #666666;
background: #f9f9f9;
padding: 10px 20px;
border-top: 5px #efefef solid;
font-size: 0.8em;
text-align: center;
}
#footer a {
color: #999999;
}
--></style>
</head>
<body>
<div id="page">
<div id="header" class="status5xx">
<h1>ERROR 502 - Bad Gateway!</h1>
</div>
<div id="content">
<h2>The following error occurred:</h2>
<p>This server received an invalid response from an upstream server it accessed to fulfill the request.</p>
<P>If you get this message repeatedly please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p>
</div>
<div id="footer">
<p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p>
</div>
</div>
</body>
</html>

View file

@ -1,61 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ERROR 503 - Service Unavailable!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex" />
<style type="text/css"><!--
body {
color: #444444;
background-color: #EEEEEE;
font-family: 'Trebuchet MS', sans-serif;
font-size: 80%;
}
h1 {}
h2 { font-size: 1.2em; }
#page{
background-color: #FFFFFF;
width: 60%;
margin: 24px auto;
padding: 12px;
}
#header {
padding: 6px ;
text-align: center;
}
.status3xx { background-color: #475076; color: #FFFFFF; }
.status4xx { background-color: #C55042; color: #FFFFFF; }
.status5xx { background-color: #F2E81A; color: #000000; }
#content {
padding: 4px 0 24px 0;
}
#footer {
color: #666666;
background: #f9f9f9;
padding: 10px 20px;
border-top: 5px #efefef solid;
font-size: 0.8em;
text-align: center;
}
#footer a {
color: #999999;
}
--></style>
</head>
<body>
<div id="page">
<div id="header" class="status5xx">
<h1>ERROR 503 - Service Unavailable!</h1>
</div>
<div id="content">
<h2>The following error occurred:</h2>
<p>The Service is not available at the moment due to a temporary overloading or maintenance of the server. Please try again later.</p>
<P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p>
</div>
<div id="footer">
<p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p>
</div>
</div>
</body>
</html>

View file

@ -62,7 +62,7 @@ function get_user_list() {
$ch = curl_init(); $ch = curl_init();
// setze die URL und andere Optionen // setze die URL und andere Optionen
curl_setopt($ch, CURLOPT_URL, "https://chatsrv.austriachat.net/info"); curl_setopt($ch, CURLOPT_URL, "https://chat.funch.at/info");
curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
@ -103,7 +103,6 @@ function get_user_list() {
} }
function chat_online(){ function chat_online(){
$online=get_user_list(); $online=get_user_list();
if($online){ if($online){
$rooms=array_keys($online); $rooms=array_keys($online);
$i=0; $i=0;
@ -124,7 +123,7 @@ function chat_online(){
} }
$data["usercount"]++; $data["usercount"]++;
$data[$i]["users"].='<a href="https://austriachat.net/my/'.$user.'" target="_blank"><span style="color:#'.$online[$room]["u"][$user].'">'.$user.'</span></a>'; $data[$i]["users"].='<a href="https://funch.at/my/'.$user.'" target="_blank"><span style="color:#'.$online[$room]["u"][$user].'">'.$user.'</span></a>';
} }
$i++; $i++;

View file

@ -31,12 +31,12 @@ function forumsnav_info()
* compatibility: A CSV list of MyBB versions supported. Ex, "121,123", "12*". Wildcards supported. * compatibility: A CSV list of MyBB versions supported. Ex, "121,123", "12*". Wildcards supported.
*/ */
return array( return array(
"name" => "Forum Nav", "name" => "Forum Nav",
"description" => "Nav of forums in the header", "description" => "Nav of forums in the header",
"website" => "http://funch.at", "website" => "http://austriachat.net",
"author" => "genuineparts", "author" => "genuineparts",
"authorsite" => "http://funch.at", "authorsite" => "http://austriachat.net",
"version" => "1.3", "version" => "1.2",
"guid" => "", "guid" => "",
"compatibility" => "*" "compatibility" => "*"
); );
@ -45,7 +45,7 @@ function forumnav()
{ {
global $forumsnav,$mybb, $db; global $forumsnav,$mybb, $db;
$sql="SELECT * FROM `".$db->table_prefix."forums` WHERE `type`='f' AND active != 0 AND `pid` != 13 ORDER BY `pid`,`disporder`"; $sql="SELECT * FROM `".TABLE_PREFIX."forums` WHERE `type`='f' AND active != 0 ORDER BY `pid`,`disporder`";
$result=$db->query($sql); $result=$db->query($sql);
while($row=$db->fetch_array($result)){ while($row=$db->fetch_array($result)){
$forum .= '<li><a href="/forum/forum-'.$row['fid'].'.html">'.$row['name'].'</a></li>'; $forum .= '<li><a href="/forum/forum-'.$row['fid'].'.html">'.$row['name'].'</a></li>';
@ -53,5 +53,59 @@ $sql="SELECT * FROM `".$db->table_prefix."forums` WHERE `type`='f' AND active !=
$forumsnav=$forum; $forumsnav=$forum;
} }
/**
* ADDITIONAL PLUGIN INSTALL/UNINSTALL ROUTINES
*
* _install():
* Called whenever a plugin is installed by clicking the "Install" button in the plugin manager.
* If no install routine exists, the install button is not shown and it assumed any work will be
* performed in the _activate() routine.
*
* function hello_install()
* {
* }
*
* _is_installed():
* Called on the plugin management page to establish if a plugin is already installed or not.
* This should return TRUE if the plugin is installed (by checking tables, fields etc) or FALSE
* if the plugin is not installed.
*
* function hello_is_installed()
* {
* global $db;
* if($db->table_exists("hello_world"))
* {
* return true;
* }
* return false;
* }
*
* _uninstall():
* Called whenever a plugin is to be uninstalled. This should remove ALL traces of the plugin
* from the installation (tables etc). If it does not exist, uninstall button is not shown.
*
* function hello_uninstall()
* {
* }
*
* _activate():
* Called whenever a plugin is activated via the Admin CP. This should essentially make a plugin
* "visible" by adding templates/template changes, language changes etc.
*
* function hello_activate()
* {
* }
*
* _deactivate():
* Called whenever a plugin is deactivated. This should essentially "hide" the plugin from view
* by removing templates/template changes etc. It should not, however, remove any information
* such as tables, fields etc - that should be handled by an _uninstall routine. When a plugin is
* uninstalled, this routine will also be called before _uninstall() if the plugin is active.
*
* function hello_deactivate()
* {
* }
*/
?> ?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

View file

@ -24,7 +24,7 @@ $module["cache"]["ver"]="0.9.10";
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: b601fdb3b3b6a18250440a6e5c09b910a45629c0 $
*/ */
/* /*
Already defined by PHP. I'll leave it here for Info Already defined by PHP. I'll leave it here for Info

View file

@ -22,11 +22,11 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: 421f3a896dfbf7885cd381975a57520bb1a9e7e5 $
*/ */
$module['core']['name']='Core Class'; $module['core']['name']='Core Class';
$module['core']['ver']='1.0.0'; $module['core']['ver']='1.1.0';
class Core{ class Core{
@ -184,11 +184,6 @@ class Core{
$nav_content=preg_replace("/\{logged_in\}(.*?)\{\/logged_in\}/si","",$nav_content); $nav_content=preg_replace("/\{logged_in\}(.*?)\{\/logged_in\}/si","",$nav_content);
$nav_content=preg_replace("/\{logged_out\}(.*?)\{\/logged_out\}/si","\\1",$nav_content); $nav_content=preg_replace("/\{logged_out\}(.*?)\{\/logged_out\}/si","\\1",$nav_content);
} }
if($session->userdata['allow_grimdark']!=0){
$nav_content=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","\\1",$nav_content);
}else{
$nav_content=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","",$nav_content);
}
if(trim($nav_content)!=''){ if(trim($nav_content)!=''){
$navtpl->assign('navtitle', $nav_title); $navtpl->assign('navtitle', $nav_title);
@ -301,6 +296,7 @@ class Core{
* *
*/ */
function get_navbits(){ function get_navbits(){
$navs = "";
foreach($this->navbits as $key => $nav){ foreach($this->navbits as $key => $nav){
if(isset($this->navbits[$key+1])){ if(isset($this->navbits[$key+1])){
if($nav['url']==''){ if($nav['url']==''){
@ -316,7 +312,7 @@ class Core{
} }
} }
if(!$navs){ if(empty($navs)){
$navs=$bit; $navs=$bit;
}else{ }else{
$navs.=' / '.$bit; $navs.=' / '.$bit;
@ -442,11 +438,6 @@ class Core{
$row['content']=preg_replace("/\{logged_in\}(.*?)\{\/logged_in\}/si","",$row['content']); $row['content']=preg_replace("/\{logged_in\}(.*?)\{\/logged_in\}/si","",$row['content']);
$row['content']=preg_replace("/\{logged_out\}(.*?)\{\/logged_out\}/si","\\1",$row['content']); $row['content']=preg_replace("/\{logged_out\}(.*?)\{\/logged_out\}/si","\\1",$row['content']);
} }
if($session->userdata['allow_grimdark']!=0){
$row['content']=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","\\1",$row['content']);
}else{
$row['content']=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","",$row['content']);
}
$content.=$row['content']; $content.=$row['content'];
} }
} }
@ -523,10 +514,14 @@ class Core{
* @return void * @return void
* *
*/ */
function make_page($content, $minimal=FALSE,$minimal_tpl='minimal_index.tpl',$header_tpl='header.tpl',$footer_tpl='footer.tpl', $headers=array()){
function make_page($content, $minimal=FALSE,$minimal_tpl='minimal_index.tpl',$header_tpl='header.tpl',$footer_tpl='footer.tpl'){
global $config, $session, $start, $tpl, $db, $meta, $footer, $mod, $plugin,$plugin_content; global $config, $session, $start, $tpl, $db, $meta, $footer, $mod, $plugin,$plugin_content;
$plugin->run_hook('frontpage_start',array(&$tpl)); $plugin->run_hook('frontpage_start',array(&$tpl));
if(!empty($headers)){
foreach($headers as $header){
header($header['name'].": ".$header['value']);
}
}
if($config['p3p_active']==1){ if($config['p3p_active']==1){
header('P3P: CP="'.$config['p3p_string'].'"'); header('P3P: CP="'.$config['p3p_string'].'"');
} }

View file

@ -24,7 +24,7 @@ $module["datacache"]["ver"]="0.1.0";
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: ff4a3d2970d54373cf47e666f65314bf598c80d8 $
*/ */
class datacache { class datacache {

View file

@ -24,7 +24,7 @@ $module["functions"]["ver"]="1.0.1";
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: 03a0bb3ba3c616ebb75bfcaa4a10268a9f2574d8 $
*/ */
class functions { class functions {

View file

@ -24,7 +24,7 @@ $module["lang"]["ver"]="0.1.2";
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: 8929a005669603f570c7f7df5153236c9a460e56 $
*/ */

View file

@ -22,11 +22,11 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: 76d888c0933789da0c58b5cb3f1da854a9626f43 $
*/ */
$module["panel"]["name"]="Panel Class"; $module["panel"]["name"]="Panel Class";
$module["panel"]["ver"]="0.3.6"; $module["panel"]["ver"]="0.3.8";
class panel { class panel {
var string $sidebar=""; var string $sidebar="";
var string $page=""; var string $page="";
@ -132,6 +132,7 @@ class panel {
return $form; return $form;
} }
} }
function formClose ($return=FALSE) function formClose ($return=FALSE)
{ {
@ -156,7 +157,7 @@ class panel {
function radio ($args=array(),$extra="",$return=FALSE) function radio ($args=array(),$extra="",$return=FALSE)
{ {
$name = $args["name"] ? $args["name"] : 'radiobutton'; $name = $args["name"] ?? 'radiobutton';
$value = $args["value"]; $value = $args["value"];
if($value!=""){ if($value!=""){
$extra .= ' value="'.$value.'"'; $extra .= ' value="'.$value.'"';
@ -191,9 +192,9 @@ class panel {
function field ($args=array(),$extra="",$return=FALSE) function field ($args=array(),$extra="",$return=FALSE)
{ {
$typ = $args["typ"] ? $args["typ"] : 'text'; $typ = $args["typ"] ?? 'text';
$name = $args["name"] ? $args["name"] : 'textfield'; $name = $args["name"] ?? 'textfield';
$value = $args["value"] ? $args["value"] : ''; $value = $args["value"] ?? '';
$fld = '<input type="' .$typ. '" name="' .$name. '" value="' .$value. '"' .$extra. ' />'; // html: form field $fld = '<input type="' .$typ. '" name="' .$name. '" value="' .$value. '"' .$extra. ' />'; // html: form field
if(!$return){ if(!$return){
$this->content .= $fld; $this->content .= $fld;
@ -212,6 +213,101 @@ class panel {
} }
} }
function get_option($option,$name,$value="") {
global $lang;
if($option=="yesno"){
$checked["yes"]="";
$checked["no"]="";
if($value==1||$value==True||$value=="yes"){
$checked["yes"]='checked="checked"';
}else{
$checked["no"]='checked="checked"';
}
$yn=$this->radio(array("name"=>$name,"value"=>"1"),$checked["yes"],TRUE);
$yn.="Ja";
$yn.=$this->radio(array("name"=>$name,"value"=>"0"),$checked["no"],TRUE);
$yn.="Nein";
return $yn;
}
if($option=="onoff"){
$checked["on"]="";
$checked["off"]="";
if($value==1||$value==True||$value=="on"){
$checked["on"]='checked="checked"';
}else{
$checked["off"]='checked="checked"';
}
$yn=$this->radio(array("name"=>$name,"value"=>"1"),$checked["on"],TRUE);
$yn.="An";
$yn.=$this->radio(array("name"=>$name,"value"=>"0"),$checked["off"],TRUE);
$yn.="Aus";
return $yn;
}
if($option=="text"){
$text=$this->field(array("name"=>$name,"typ"=>"text","value"=>$value),"",TRUE);
return $text;
}
if(str_contains($option, "wysiwyg")){
$string=str_replace("wysiwyg(","",substr($option, 0, -1));
$sarr=explode(";",$string);
foreach($sarr as $str){
$substr=explode("|",$str);
$a_name[]=$substr[0];
$value[]=$substr[1];
}
if(is_array($sarr)){
$text=$this->textarea(array("name"=>$name,"value"=>$value, $a_name[0]=>$value[0],$a_name[1]=>$value[1]),"class=\"mceEditor\"",TRUE);
}else{
$text=$this->textarea(array("name"=>$name,"value"=>$value),"class=\"mceEditor\"",TRUE);
}
return $text;
}
if(str_contains($option, "textarea")){
$string=str_replace("textarea(","",substr($option, 0, -1));
$sarr=explode(";",$string);
if(count($sarr)>1) {
foreach ($sarr as $str) {
$substr = explode("|", $str);
$a_name[] = $substr[0];
$value[] = $substr[1];
}
$text=$this->textarea(array("name"=>$name,"value"=>$value, $a_name[0]=>$value[0],$a_name[1]=>$value[1]),"",TRUE);
}else{
$text=$this->textarea(array("name"=>$name,"value"=>$value),"",TRUE);
}
return $text;
}
if($option=="language"){
$values = array();
$langs=$lang->getlanguages();
foreach($langs as $lang){
$values[$lang['name']]=$lang['short'];
}
return $this->select($values,$value,$name,"",TRUE);
}
if(str_contains($option, "select")){
$string=str_replace("select(","",substr($option, 0, -1));
$sarr=explode(";",$string);
$values=array();
if(count($sarr)>1) {
foreach ($sarr as $str) {
$substr = explode("|", $str);
$values[$substr[0]] = $substr[1];
}
}
return $this->select($values,$value,$name,"",TRUE);
}
}
/* /*
$args[value] used for default text (as in "field" function) $args[value] used for default text (as in "field" function)
*/ */

View file

@ -24,7 +24,7 @@ $module["session"]["ver"]="0.9.2";
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: 443eb9470db48f9529ee24146530d1742a019fb4 $
*/ */
class session { class session {

1
logs/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.log

View file

@ -0,0 +1,142 @@
<?php
/**
* Project: astat - simple site engine
* File: /modules/news/add.apnl.php
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* 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: file:///var/local/svn/astat/trunk/modules/news/admin/add.apnl.php $
* @copyright 2009 becast.at
* @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: add.apnl.php 96 2010-02-17 21:56:41Z genuineparts $
*/
If (!defined("in_BL_ADMIN")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
}
$session->page_begin("add News", True);
class add_news_panel extends admin_module{
function output(){
global $config, $db,$panel, $session;
$fail=FALSE;
if(isset($_POST['send'])&& $_POST['send']==1){
if(isset($_POST['text'])&& $_POST['text']!=""||isset($_POST['title'])&& $_POST['title']!=""){
$title=$db->escape($_POST['title']);
$db->query("INSERT INTO `" . $config["prefix"] . "news` (`text`,`date`,`author`,`category`,`title`,`active`) VALUES ('".$db->escape($_POST["text"])."','".time()."','".$session->userdata["uid"]."','".intval($_POST["category"])."','".$title."','".$_POST["active"]."')");
$panel->admin_message("Danke", "Die News wurden erfolgreich eingetragen!.",TRUE,"add_news");
}else{
$fail="<span style=\"text-align: center; color: red;\">Du musst alle Felder ausf&uuml;llen!</span>";
}
}elseif(!isset($_POST['send']) || $fail){
$panel->title="News schreiben";
$panel->form(array("action"=>$config["path"]."/admin/index.php?panel=add_news"));
if($fail){
$panel->content.=$fail;
}
$panel->content.="<h3>Titel:</h3>";
$panel->field(array("name"=>"title","typ"=>"text","value"=>$_POST["title"]));
$resultc=$db->query("SELECT `id`,`name` FROM `" . $config["prefix"] . "news_category` WHERE `active`='true'");
$karray["Keine"]="";
while($row=$db->fetch_array($resultc)){
$karray[$row["name"]]=$row["id"];
}
$panel->content.="<h3>Kategorie:</h3>";
$panel->select($karray,$_POST["category"],"category");
$panel->content.="<br />";
$panel->content.="<h3>Text:</h3>";
$panel->textarea(array("name"=>"text","value"=>$_POST["text"],"rows"=>"30","cols"=>"80"),"class=\"mceEditor\"");
$panel->content.="<h3>Aktiv:</h3>";
$panel->select(array("Nein"=>"false","Ja"=>"true"),$_POST["active"],"active");
$panel->content.="<br />";
$panel->field(array("name"=>"send","typ"=>"hidden","value"=>"1"));
$panel->content.="<br />";
$panel->submit();
$panel->formClose();
}
}
function meta(){
global $config;
$meta="<script type=\"text/javascript\" src=\"".$config["path"]."/js/jquery/jquery.min.js\"></script>
<script type=\"text/javascript\">
$(document).ready(function()
{
$(\"#url\").blur(function()
{
//remove all the class add the messagebox classes and start fading
$(\"#msgbox\").removeClass().addClass('messagebox').text('Warten...').fadeIn(\"slow\");
//check the username exists or not from ajax
$.post(\"ajax.php\",{ call:'url',url:$(this).val() } ,function(data)
{
if(data==1) //if username not avaiable
{
$(\"#msgbox\").fadeTo(200,0.1,function() //start fading the messagebox
{
//add message and change the class of the box and start fading
$(this).html('Url vergeben').addClass('messageboxerror').fadeTo(900,1);
});
}
else
{
$(\"#msgbox\").fadeTo(200,0.1,function() //start fading the messagebox
{
//add message and change the class of the box and start fading
$(this).html('').removeClass().fadeTo(900,1);
});
}
});
});
});
</script>";
$meta.='<script type="text/javascript" src="'.$config["path"].'/thirdparty/tiny/tiny_mce_gzip.js"></script>
<script type="text/javascript">
tinyMCE_GZ.init({
theme : "advanced",
mode : "textareas",
language : "de",
plugins : "table,advhr,advimage,advlink,insertdatetime,searchreplace",
disk_cache : true,
debug : false
});
</script>
<script type="text/javascript" src="'.$config["path"].'/thirdparty/tiny/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
theme : "advanced",
mode : "textareas",
language : "de",
plugins : "table,advhr,advimage,advlink,insertdatetime,searchreplace",
theme_advanced_disable : "styleselect,formatselect ",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "seperator,forecolor,removeformat,advhr",
theme_advanced_buttons3 : "tablecontrols,seperator",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "center",
remove_linebreaks : false,
convert_urls : false,
editor_selector : "mceEditor",
editor_deselector : "mceNoEditor"
});
</script>';
return $meta;
}
}
?>

View file

@ -0,0 +1,81 @@
<?php
/**
* Project: astat - simple site engine
* File: /modules/news/addcategory.apnl.php
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* 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: file:///var/local/svn/astat/trunk/modules/news/admin/addcategory.apnl.php $
* @copyright 2009 becast.at
* @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: addcategory.apnl.php 96 2010-02-17 21:56:41Z genuineparts $
*/
If (!defined("in_BL_ADMIN")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
}
$session->page_begin("add news Category", True);
class addcategory_news_panel extends admin_module{
function output(){
global $config, $db,$panel, $root, $session, $core;
$fail=FALSE;
if(isset($_POST['send'])&& $_POST['send']==1){
if(isset($_POST['name'])&& $_POST['name']!=""){
$userfile_name = $_FILES['picture']['name'];
$userfile_tmp = $_FILES['picture']['tmp_name'];
$userfile_size = $_FILES['picture']['size'];
$userfile_type = $_FILES['picture']['type'];
$filedir = $root.'/newsimages/';
$size = 120;
if (isset($_FILES['picture']['name']) && $_FILES['picture']['name']!=""){
$prod_img = $filedir.$userfile_name;
$ret=$core->upload_file($prod_img, $userfile_tmp, $size, $size, TRUE, TRUE);
if($ret!==TRUE){
$panel->admin_message("Fehler", "Das Bild konnte nicht hochgeladen wrden <br /> Der Fehler war: ". $ret,TRUE,"addcategory_news");
}
}
$name=$db->escape($_POST['name']);
$active=$db->escape($_POST['active']);
$db->query("INSERT INTO `" . $config["prefix"]. "news_category` (`name`,`picture`,`active`) VALUES ('".$name."','".$userfile_name."','".$active."')");
$panel->admin_message("Danke", "Die Kategorie wurde erfolgreich eingetragen!.",TRUE,"addcategory_news");
}else{
$fail="<span style=\"text-align: center; color: red;\">Der Kategoriename muss angegeben werden!</span>";
}
}elseif(!isset($_POST['send']) || $fail){
$panel->title="Kategorie hinzuf&uuml;gen";
$panel->form(array("action"=>$config["path"]."/admin/index.php?panel=addcategory_news"),FALSE,"enctype=\"multipart/form-data\"");
if($fail){
$panel->content.=$fail;
}
$panel->content.="<h3>Kategoriename:</h3>";
$panel->field(array("name"=>"name","typ"=>"text","value"=>$_POST["name"]));
$panel->content.="<h3>Kategoriebild:</h3>";
$panel->field(array("name"=>"picture","typ"=>"file","value"=>$_POST["picture"]));
$panel->content.="<br />";
$panel->content.="<h3>Aktiv:</h3>";
$panel->select(array("Nein"=>"false","Ja"=>"true"),$_POST["active"],"active");
$panel->content.="<br />";
$panel->field(array("name"=>"send","typ"=>"hidden","value"=>"1"));
$panel->content.="<br />";
$panel->submit();
$panel->formClose();
}
}
}
?>

View file

@ -0,0 +1,227 @@
<?php
/**
* Project: astat - simple site engine
* File: /modules/news/edit.apnl.php
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* 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: file:///var/local/svn/astat/trunk/modules/news/admin/edit.apnl.php $
* @copyright 2009 becast.at
* @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: edit.apnl.php 96 2010-02-17 21:56:41Z genuineparts $
*/
If (!defined('in_BL_ADMIN')) {
die('Dieses Script kann nicht ausserhalb des Frameworks laufen!');
}
$session->page_begin('edit News', True);
class edit_news_panel extends admin_module{
function output(){
global $config, $db,$panel, $session, $admin;
$fail=FALSE;
if(isset($_POST['send'])&& $_POST['send']==1){
if(isset($_POST['id'])&& $_POST['id']!=''||isset($_POST['text'])&& $_POST['text']!=''||isset($_POST['title'])&& $_POST['title']!=''){
$id=intval($_POST['id']);
$title=$db->escape($_POST['title']);
$db->query("UPDATE `" . $config['prefix'] . "news` SET `text`='".$db->escape($_POST['text'])."',`category`='".intval($_POST['category'])."',`title`='".$title."',`active`='".$_POST['active']."' WHERE `id`='".$id."'");
$panel->admin_message('Danke', 'News erfolgreich ge&auml;ndert!',TRUE,'edit_news');
}else{
$fail='<span style="text-align: center; color: red;">Du musst alle Felder ausf&uuml;llen!</span>';
}
}elseif(isset($_GET['id'])&& $_GET['id']!=''){
if($_GET['action']=='edit'){
$result = $db->query("SELECT * FROM " . $config['prefix'] . "news WHERE id='".intval($_GET['id'])."'");
$_POST=$db->fetch_array($result);
/*$resultna=$db->query("SELECT id,name FROM " . $config["prefix"] . "menue");
while($rowa=$db->fetch_array($resultna)){
$resultn = $db->query("SELECT m_id FROM " . $config["prefix"] . "article_menue WHERE a_id='".intval($_GET['id'])."' and m_id='".$rowa["id"]."'");
if($db->num_rows($resultn) >= 1){
$rowa["checked"]="checked=\"checked\"";
}
$navs[]=$rowa;
}*/
$panel->title='News editieren';
$panel->form(array('action'=>$config['path'].'/admin/index.php?panel=edit_news'));
if($fail){
$panel->content.=$fail;
}
$panel->content.='<h3>Titel:</h3>';
$panel->field(array('name'=>'title','typ'=>'text','value'=>$_POST['title']));
$panel->content.='<h3>Kategorie:</h3>';
$resultc=$db->query("SELECT `id`,`name` FROM `" . $config['prefix'] . "news_category` WHERE `active`='true'");
$karray['Keine']='';
while($row=$db->fetch_array($resultc)){
$karray[$row['name']]=$row['id'];
}
$panel->select($karray,$_POST['category'],'category');
$panel->content.='<h3>Text:</h3>';
$panel->textarea(array('name'=>'text','value'=>$_POST['text'],'rows'=>'30','cols'=>'80'),'class="mceEditor"');
$panel->content.='<h3>Aktiv:</h3>';
$panel->select(array('Nein'=>'false','Ja'=>'true'),$_POST['active'],'active');
$panel->content.='<br />';
$panel->field(array('name'=>'send','typ'=>'hidden','value'=>'1'));
$panel->field(array('name'=>'id','typ'=>'hidden','value'=>$_GET['id']));
$panel->content.='<br />';
$panel->submit();
$panel->formClose();
}elseif($_GET['action']=='delete' && $_GET['id']){
$db->query("DELETE FROM `" . $config['prefix'] . "news` WHERE `id`='".intval($_GET['id'])."'");
$panel->admin_message('News gel&ouml;scht!','Die News wurden erfolgreich gel&ouml;scht.',True,'edit_news',3);
}
}else{
$result = $db->query("SELECT a.`title`,a.`id`,a.`active`,a.`date`,c.`name`,u.`username` FROM `" . $config['prefix'] . "news` a LEFT JOIN `" . $config['prefix'] . "news_category` c ON a.`category`=c.`id` LEFT JOIN `" . $config['prefix'] . "users` u on a.`author`=u.`uid`") or die($db->error());
while($row=$db->fetch_array($result, MYSQL_ASSOC)){
$row['dates']=date('d.m.Y',$row['date']);
$news[]=$row;
}
$panel->title='Vorhandene Artikel';
$panel->content.='<table class="sortable" width="90%" cellspacing="2">
<tr>
<th align="center">ID</th>
<th align="center">Name</th>
<th align="center">Kategorien</th>
<th align="center">Aktiv</th>
<th align="center">User</th>
<th class="nosort sortcol" align="center" width="18%">Aktionen</th>
</tr>';
if(!empty($news)){
foreach($news as $u){
if($u['active']=='true'){
$u['a']='Ja';
}else{
$u['a']='Nein';
}
$panel->content.='<tr>
<td align="center">'.$u['id'].'</td>
<td align="center">'.$u['title'].'</td>
<td align="center">'.$u['name'].'</td>
<td align="center">'.$u['a'].'</td>
<td align="center">'.$u['username'].'</td>';
$panel->content.='<td align="center"><a onclick="return confirmLink(this, "Willst du wirklich den News '.$u['title'].' l&ouml;schen? ")" href="'.$config['path'].'/admin/index.php?panel=edit_news&amp;action=delete&amp;id='.$u['id'].'"><img src="'.$config['path'].'/admin/images/icons/delete.png" /></a> <a href="'.$config['path'].'/admin/index.php?panel=edit_news&amp;action=edit&amp;id='.$u['id'].'"><img src="'.$config['path'].'/admin/images/icons/wrench.png" /></a></td>
</tr>';
}
}else{
$panel->content.='<tr>
<td align="center" colspan="7">Keine News vorhanden.</td>
</tr>';
}
$panel->content.='</table><br />';
}
}
function meta(){
global $config;
$meta="<script type=\"text/javascript\" src=\"".$config["path"]."/js/jquery/jquery.min.js\"></script>
<script type=\"text/javascript\">
$(document).ready(function()
{
$(\"#url\").blur(function()
{
//remove all the class add the messagebox classes and start fading
$(\"#msgbox\").removeClass().addClass('messagebox').text('Warten...').fadeIn(\"slow\");
//check the username exists or not from ajax
$.post(\"ajax.php\",{ call:'url',url:$(this).val() } ,function(data)
{
if(data==1) //if username not avaiable
{
$(\"#msgbox\").fadeTo(200,0.1,function() //start fading the messagebox
{
//add message and change the class of the box and start fading
$(this).html('Url vergeben').addClass('messageboxerror').fadeTo(900,1);
});
}
else
{
$(\"#msgbox\").fadeTo(200,0.1,function() //start fading the messagebox
{
//add message and change the class of the box and start fading
$(this).html('').removeClass().fadeTo(900,1);
});
}
});
});
});
</script>";
$meta.='<script type="text/javascript" src="'.$config["path"].'/js/scriptaculous/prototype.js"></script>
<script src="'.$config["path"].'/js/fastinit.js" type="text/javascript">
</script>
<script src="'.$config["path"].'/js/tablesort.js" type="text/javascript">
</script>';
$meta.='<script type="text/javascript">
function confirmLink(theLink, text)
{
// Confirmation is not required in the configuration file
// or browser is Opera (crappy js implementation)
if (typeof(window.opera) != \'undefined\') {
return true;
}
var is_confirmed = confirm(text);
if (is_confirmed) {
if ( typeof(theLink.href) != \'undefined\' ) {
theLink.href += \'&is_js_confirmed=1\';
} else if ( typeof(theLink.form) != \'undefined\' ) {
theLink.form.action += \'?is_js_confirmed=1\';
}
}
return is_confirmed;
}
</script>';
$meta.='<script type="text/javascript" src="/thirdparty/tiny/tiny_mce_gzip.js"></script>
<script type="text/javascript">
tinyMCE_GZ.init({
theme : "advanced",
mode : "textareas",
language : "de",
plugins : "table,advhr,advimage,advlink,insertdatetime,searchreplace",
disk_cache : true,
debug : false
});
</script>
<script type="text/javascript" src="/thirdparty/tiny/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
theme : "advanced",
mode : "textareas",
language : "de",
plugins : "table,advhr,advimage,advlink,insertdatetime,searchreplace",
theme_advanced_disable : "styleselect,formatselect ",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "seperator,forecolor,removeformat,advhr",
theme_advanced_buttons3 : "tablecontrols,seperator",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "center",
remove_linebreaks : false,
convert_urls : false,
editor_selector : "mceEditor",
editor_deselector : "mceNoEditor"
});
</script>';
return $meta;
}
}
?>

View file

@ -0,0 +1,190 @@
<?php
/**
* Project: astat - simple site engine
* File: /modules/news/editcategory.apnl.php
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* 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: file:///var/local/svn/astat/trunk/modules/news/admin/editcategory.apnl.php $
* @copyright 2009 becast.at
* @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: editcategory.apnl.php 96 2010-02-17 21:56:41Z genuineparts $
*/
If (!defined("in_BL_ADMIN")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
}
$session->page_begin("edit news category", True);
class editcategory_news_panel extends admin_module{
function output(){
global $config, $db,$panel, $session, $root, $core, $admin;
$fail=FALSE;
if(isset($_POST['send'])&& $_POST['send']==1){
if(isset($_POST['name'])&& $_POST['name']!=""){
$userfile_name = $_FILES['picture']['name'];
$userfile_tmp = $_FILES['picture']['tmp_name'];
$userfile_size = $_FILES['picture']['size'];
$userfile_type = $_FILES['picture']['type'];
$filedir = $root.'/newsimages/';
$size = 120;
if (isset($_FILES['picture']['name']) && $_FILES['picture']['name']!=""){
$prod_img = $filedir.$userfile_name;
$ret=$core->upload_file($prod_img, $userfile_tmp, $size, $size, TRUE, TRUE);
if($ret!==TRUE){
$panel->admin_message("Fehler", "Das Bild konnte nicht hochgeladen wrden <br /> Der Fehler war: ". $ret,TRUE,"editcategory_news");
}
$result=$db->query("SELECT `picture` FROM `" . $config["prefix"]. "news_category` WHERE `id`='".intval($_POST["id"])."' LIMIT 1");
$file=$db->fetch_array($result);
@unlink($filedir.$file['picture']);
$db->query("UPDATE `" . $config["prefix"]. "news_category` SET `picture`='".$userfile_name."' WHERE `id`='".intval($_POST["id"])."'");
}elseif($_POST["delimg"]==1){
$result=$db->query("SELECT `picture` FROM `" . $config["prefix"]. "news_category` WHERE `id`='".intval($_POST["id"])."' LIMIT 1");
$file=$db->fetch_array($result);
@unlink($filedir.$file['picture']);
$db->query("UPDATE `" . $config["prefix"]. "news_category` SET `picture`='' WHERE `id`='".intval($_POST["id"])."'");
}
$name=$db->escape($_POST['name']);
$active=$db->escape($_POST['active']);
$db->query("UPDATE `" . $config["prefix"]. "news_category` SET `name`='".$name."', `active`='".$active."' WHERE `id`='".intval($_POST["id"])."'") or die($db->error());
$panel->admin_message("Danke", "Die Kategorie wurde erfolgreich editiert!.",TRUE,"editcategory_news");
}else{
$fail="<span style=\"text-align: center; color: red;\">Der Kategoriename muss angegeben werden!</span>";
}
}elseif(isset($_GET['id'])&& $_GET['id']!=""){
if($_GET['action']=="edit"){
$result = $db->query("SELECT * FROM `" . $config["prefix"] . "news_category` WHERE `id`='".intval($_GET['id'])."'");
$_POST=$db->fetch_array($result);
/*$resultna=$db->query("SELECT id,name FROM " . $config["prefix"] . "menue");
while($rowa=$db->fetch_array($resultna)){
$resultn = $db->query("SELECT m_id FROM " . $config["prefix"] . "article_menue WHERE a_id='".intval($_GET['id'])."' and m_id='".$rowa["id"]."'");
if($db->num_rows($resultn) >= 1){
$rowa["checked"]="checked=\"checked\"";
}
$navs[]=$rowa;
}*/
$panel->title="Kategorie editieren";
$panel->form(array("action"=>$config["path"]."/admin/index.php?panel=editcategory_news"),FALSE,"enctype=\"multipart/form-data\"");
if($fail){
$panel->content.=$fail;
}
$panel->content.="<h3>Kategoriename:</h3>";
$panel->field(array("name"=>"name","typ"=>"text","value"=>$_POST["name"]));
if($_POST["picture"]!=""){
$panel->content.="<h3>aktuelles Kategoriebild:</h3>";
$panel->content.="<img src=\"".$config["path"]."/newsimages/".$_POST["picture"]."\" alt=\"Kategoriebild\" />";
$panel->content.="<br />";
$panel->checkbox(array("name"=>"delimg","value"=>"1"));
$panel->content.=" Bild l&ouml;schen?";
$panel->content.="<br />";
}
$panel->content.="<h3>neues Kategoriebild:</h3>";
$panel->field(array("name"=>"picture","typ"=>"file"));
$panel->content.="<br />";
$panel->content.="<h3>Aktiv:</h3>";
$panel->select(array("Nein"=>"false","Ja"=>"true"),$_POST["active"],"active");
$panel->content.="<br />";
$panel->field(array("name"=>"send","typ"=>"hidden","value"=>"1"));
$panel->field(array("name"=>"id","typ"=>"hidden","value"=>$_GET['id']));
$panel->content.="<br />";
$panel->submit();
$panel->formClose();
$panel->parse_page();
}elseif($_GET["action"]=="delete" && $_GET["id"]){
$result=$db->query("SELECT `picture` FROM `" . $config["prefix"] . "news_category` where `id`='".intval($_GET["id"])."'");
$row = $db->fetch_array($result);
@unlink($root.'/catimages/'.$row["picture"]);
$db->query("DELETE FROM `" . $config["prefix"] . "news_category` WHERE `id`='".intval($_GET["id"])."'");
$panel->admin_message("Kategorie gel&ouml;scht!","Die Kategorie wurde erfolgreich gel&ouml;scht.",True,"editcategory_news",3);
}
}else{
$result = $db->query("SELECT * FROM `" . $config["prefix"] . "news_category`");
while($row=$db->fetch_array($result, MYSQL_ASSOC)){
$articles[]=$row;
}
$panel->title="Vorhandene Kategorien";
$panel->content.="<table class=\"sortable\" width=\"90%\" cellspacing=\"2\">
<tr>
<th align=\"center\">ID</th>
<th align=\"center\">Name</th>
<th align=\"center\">Bild</th>
<th align=\"center\">Aktiv</th>
<th class=\"nosort sortcol\" align=\"center\" width=\"18%\">Aktionen</th>
</tr>";
if(!empty($articles)){
foreach($articles as $u){
$panel->content.="<tr>
<td align=\"center\">".$u["id"]."</td>
<td align=\"center\">".$u["name"]."</td>
<td align=\"center\">".$u["picture"]."</td>";
if($u["active"]=="true"){
$panel->content.="<td align=\"center\">Ja</td>";
}else{
$panel->content.="<td align=\"center\">Nein</td>";
}
$panel->content.="<td align=\"center\"><a onclick=\"return confirmLink(this, 'Willst du wirklich die Kategorie ".$u["categoryname"]." l&ouml;schen? ')\" href=\"".$config["path"]."/admin/index.php?panel=editcategory_news&amp;action=delete&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editcategory_news&amp;action=edit&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
</tr>";
}
}else{
$panel->content.="<tr>
<td align=\"center\" colspan=\"5\">Keine Kategorien vorhanden.</td>
</tr>";
}
$panel->content.="</table><br />";
}
}
function meta(){
$meta.='<script type="text/javascript" src="'.$config["path"].'/js/scriptaculous/prototype.js"></script>
<script src="'.$config["path"].'/js/fastinit.js" type="text/javascript">
</script>
<script src="'.$config["path"].'/js/tablesort.js" type="text/javascript">
</script>';
$meta.='<script type="text/javascript">
function confirmLink(theLink, text)
{
// Confirmation is not required in the configuration file
// or browser is Opera (crappy js implementation)
if (typeof(window.opera) != \'undefined\') {
return true;
}
var is_confirmed = confirm(text);
if (is_confirmed) {
if ( typeof(theLink.href) != \'undefined\' ) {
theLink.href += \'&is_js_confirmed=1\';
} else if ( typeof(theLink.form) != \'undefined\' ) {
theLink.form.action += \'?is_js_confirmed=1\';
}
}
return is_confirmed;
}
</script>';
return $meta;
}
}
?>

View file

@ -3,7 +3,7 @@
class module_ajaxpm extends admin_module{ class module_ajaxpm extends admin_module{
function admin_panels(){ function admin_panels(){
return array(); return "";
} }
function get_info(){ function get_info(){

View file

@ -11,7 +11,7 @@ class module_contact extends admin_module{
$info["file"]="contact"; $info["file"]="contact";
$info["author"]="BeCast"; $info["author"]="BeCast";
$info["version"]="1.0.1"; $info["version"]="1.0.1";
$info["url"]="http://www.becast.at"; $info["url"]="https://www.becast.at";
return $info; return $info;
} }
@ -26,7 +26,7 @@ class module_contact extends admin_module{
);"); );");
$cid=$db->last_id(); $cid=$db->last_id();
$db->query("INSERT INTO `" . $config["prefix"] . "config` (`name`, `value`, `title`, `description`, `option`, `category`) VALUES $db->query("INSERT INTO `" . $config["prefix"] . "config` (`name`, `value`, `title`, `description`, `option`, `category`) VALUES
('contact_email', 'contact@example.com', 'E-Mailadresse', 'Die E-Mailadresse(n) an die Kontaktanfragen gesendet werden sollen (meherer Adressen mit Komma trennen).', 'text', ".$cid."), ('contact_email', 'contact@example.com', 'E-Mailadresse', 'Die E-Mailadresse(n) an die Kontaktanfragen gesendet werden sollen (mehrere Adressen mit Komma trennen).', 'text', ".$cid."),
('contact_captcha', '1', 'Captcha verwenden?', 'Soll bei der Kontaktaufnahme ein Captcha angezeigt werden?', 'yesno', ".$cid.");"); ('contact_captcha', '1', 'Captcha verwenden?', 'Soll bei der Kontaktaufnahme ein Captcha angezeigt werden?', 'yesno', ".$cid.");");
return TRUE; return TRUE;
} }

View file

@ -1,4 +1,4 @@
<?php <?php global $session;
/** /**
* Project: astat - simple site engine * Project: astat - simple site engine
* File: /modules/contact/contact.output.php * File: /modules/contact/contact.output.php
@ -21,7 +21,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core * @package astat 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: 1c1aad35216bcebbefdb0b9e052dfd98790dd4f5 $
*/ */
If (!defined("INBCWE")) { If (!defined("INBCWE")) {

View file

@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: a77f484c5af9480fe4eb2692627e2328278573ea $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!"); die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");

View file

@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core * @package astat 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: addcategory.apnl.php 96 2010-02-17 21:56:41Z genuineparts $ * @version $Id: bc487c72e70ee89c97e2348303049f9a0c268b90 $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {

View file

@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BeCast WebEngine core * @package BeCast WebEngine 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: edit.apnl.php 96 2010-02-17 21:56:41Z genuineparts $ * @version $Id: e570239bc108247b89c17cf3fd52cf8826a900d8 $
*/ */
If (!defined('IN_BCWE_ADMIN')) { If (!defined('IN_BCWE_ADMIN')) {
die('Dieses Script kann nicht ausserhalb des Frameworks laufen!'); die('Dieses Script kann nicht ausserhalb des Frameworks laufen!');
@ -95,14 +95,14 @@ class edit_news_panel extends admin_module{
$news[]=$row; $news[]=$row;
} }
$panel->title='Vorhandene Artikel'; $panel->title='Vorhandene Artikel';
$panel->content.='<table class="sortable" width="90%" cellspacing="2"> $panel->content.='<table class="sortable" style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th align="center">ID</th> <th style=\"text-align: center;\">ID</th>
<th align="center">Name</th> <th style=\"text-align: center;\">Name</th>
<th align="center">Kategorien</th> <th style=\"text-align: center;\">Kategorien</th>
<th align="center">Aktiv</th> <th style=\"text-align: center;\">Aktiv</th>
<th align="center">User</th> <th style=\"text-align: center;\">User</th>
<th class="nosort sortcol" align="center" width="18%">Aktionen</th> <th class="nosort sortcol" style=\"text-align: center; width: 18%\">Aktionen</th>
</tr>'; </tr>';
if(!empty($news)){ if(!empty($news)){
foreach($news as $u){ foreach($news as $u){
@ -112,17 +112,17 @@ class edit_news_panel extends admin_module{
$u['a']='Nein'; $u['a']='Nein';
} }
$panel->content.='<tr> $panel->content.='<tr>
<td align="center">'.$u['id'].'</td> <td style=\"text-align: center;\">'.$u['id'].'</td>
<td align="center">'.$u['title'].'</td> <td style=\"text-align: center;\">'.$u['title'].'</td>
<td align="center">'.$u['name'].'</td> <td style=\"text-align: center;\">'.$u['name'].'</td>
<td align="center">'.$u['a'].'</td> <td style=\"text-align: center;\">'.$u['a'].'</td>
<td align="center">'.$u['username'].'</td>'; <td style=\"text-align: center;\">'.$u['username'].'</td>';
$panel->content.='<td align="center"><a onclick="return confirmLink(this, "Willst du wirklich den News '.$u['title'].' l&ouml;schen? ")" href="'.$config['path'].'/admin/index.php?panel=edit_news&amp;action=delete&amp;id='.$u['id'].'"><img src="'.$config['path'].'/admin/images/icons/delete.png" /></a> <a href="'.$config['path'].'/admin/index.php?panel=edit_news&amp;action=edit&amp;id='.$u['id'].'"><img src="'.$config['path'].'/admin/images/icons/wrench.png" /></a></td> $panel->content.='<td style=\"text-align: center;\"><a onclick="return confirmLink(this, "Willst du wirklich den News '.$u['title'].' l&ouml;schen? ")" href="'.$config['path'].'/admin/index.php?panel=edit_news&amp;action=delete&amp;id='.$u['id'].'"><img src="'.$config['path'].'/admin/images/icons/delete.png" /></a> <a href="'.$config['path'].'/admin/index.php?panel=edit_news&amp;action=edit&amp;id='.$u['id'].'"><img src="'.$config['path'].'/admin/images/icons/wrench.png" /></a></td>
</tr>'; </tr>';
} }
}else{ }else{
$panel->content.='<tr> $panel->content.='<tr>
<td align="center" colspan="7">Keine News vorhanden.</td> <td style=\"text-align: center;\" colspan="7">Keine News vorhanden.</td>
</tr>'; </tr>';
} }
$panel->content.='</table><br />'; $panel->content.='</table><br />';

View file

@ -1,4 +1,4 @@
<?php <?php global $session;
/** /**
* Project: BeCast WebEngine - simple site engine * Project: BeCast WebEngine - simple site engine
* File: /modules/news/editcategory.apnl.php * File: /modules/news/editcategory.apnl.php
@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BeCast WebEngine core * @package BeCast WebEngine 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: editcategory.apnl.php 96 2010-02-17 21:56:41Z genuineparts $ * @version $Id: ef38cf94caf9812acfbf9f594045a1ca24c42eae $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {
@ -125,31 +125,31 @@ class editcategory_news_panel extends admin_module{
$articles[]=$row; $articles[]=$row;
} }
$panel->title="Vorhandene Kategorien"; $panel->title="Vorhandene Kategorien";
$panel->content.="<table class=\"sortable\" width=\"90%\" cellspacing=\"2\"> $panel->content.="<table class=\"sortable\" style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th align=\"center\">ID</th> <th style=\"text-align: center;\">ID</th>
<th align=\"center\">Name</th> <th style=\"text-align: center;\">Name</th>
<th align=\"center\">Bild</th> <th style=\"text-align: center;\">Bild</th>
<th align=\"center\">Aktiv</th> <th style=\"text-align: center;\">Aktiv</th>
<th class=\"nosort sortcol\" align=\"center\" width=\"18%\">Aktionen</th> <th class=\"nosort sortcol\" style=\"text-align: center; width: 18%\">Aktionen</th>
</tr>"; </tr>";
if(!empty($articles)){ if(!empty($articles)){
foreach($articles as $u){ foreach($articles as $u){
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\">".$u["id"]."</td> <td style=\"text-align: center;\">".$u["id"]."</td>
<td align=\"center\">".$u["name"]."</td> <td style=\"text-align: center;\">".$u["name"]."</td>
<td align=\"center\">".$u["picture"]."</td>"; <td style=\"text-align: center;\">".$u["picture"]."</td>";
if($u["active"]=="true"){ if($u["active"]=="true"){
$panel->content.="<td align=\"center\">Ja</td>"; $panel->content.="<td style=\"text-align: center;\">Ja</td>";
}else{ }else{
$panel->content.="<td align=\"center\">Nein</td>"; $panel->content.="<td style=\"text-align: center;\">Nein</td>";
} }
$panel->content.="<td align=\"center\"><a onclick=\"return confirmLink(this, 'Willst du wirklich die Kategorie ".$u["categoryname"]." l&ouml;schen? ')\" href=\"".$config["path"]."/admin/index.php?panel=editcategory_news&amp;action=delete&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editcategory_news&amp;action=edit&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td> $panel->content.="<td style=\"text-align: center;\"><a onclick=\"return confirmLink(this, 'Willst du wirklich die Kategorie ".$u["categoryname"]." l&ouml;schen? ')\" href=\"".$config["path"]."/admin/index.php?panel=editcategory_news&amp;action=delete&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editcategory_news&amp;action=edit&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
</tr>"; </tr>";
} }
}else{ }else{
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\" colspan=\"5\">Keine Kategorien vorhanden.</td> <td style=\"text-align: center;\" colspan=\"5\">Keine Kategorien vorhanden.</td>
</tr>"; </tr>";
} }
$panel->content.="</table><br />"; $panel->content.="</table><br />";

View file

@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core * @package astat 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: b9eeb0fd7ab78feed4582e33dd2604a26281a58f $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!"); die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");

View file

@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core * @package astat 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: ca7c3b985bdb214ce7622dc7397419774c03bace $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {

View file

@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core * @package astat 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: 3ab99ecb3291e81fff1273ceb58bd035ae66feb6 $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!"); die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
@ -85,7 +85,7 @@ class edit_text_panel extends admin_module{
$panel->select($karray,$_POST["menue"],"menue"); $panel->select($karray,$_POST["menue"],"menue");
$panel->content.="<br />"; $panel->content.="<br />";
$panel->content.="<h3>Kategorien:</h3> $panel->content.="<h3>Kategorien:</h3>
<table width=\"100%\"> <table style='width: 100%'>
<tr>"; <tr>";
$resultn = $db->query("SELECT `c_id` FROM `" . $config["prefix"] . "article_category` WHERE `a_id`='".intval($_GET['id'])."'"); $resultn = $db->query("SELECT `c_id` FROM `" . $config["prefix"] . "article_category` WHERE `a_id`='".intval($_GET['id'])."'");
while($rowa=$db->fetch_array($resultn)){ while($rowa=$db->fetch_array($resultn)){
@ -125,15 +125,15 @@ class edit_text_panel extends admin_module{
$panel->formClose(); $panel->formClose();
}elseif($_GET["action"]=="delete" && $_GET["id"]){ }elseif($_GET["action"]=="delete" && $_GET["id"]){
$db->query("DELETE FROM `" . $config["prefix"] . "article` WHERE `id`='".intval($_GET["id"])."'"); $db->query("DELETE FROM `" . $config["prefix"] . "article` WHERE `id`='".intval($_GET["id"])."'");
$db->query("DELETE FROM `" . $config["prefix"] . "article_menue` where `a_id`='".$id."'"); $db->query("DELETE FROM `" . $config["prefix"] . "article_menue` where `a_id`='".intval($_GET["id"])."'");
$panel->admin_message("Artikel gel&ouml;scht!","Der Artikel wurde erfolgreich gel&ouml;scht.",True,"edit_text",3); $panel->admin_message("Artikel gel&ouml;scht!","Der Artikel wurde erfolgreich gel&ouml;scht.",True,"edit_text",3);
} }
}else{ }else{
$result = $db->query("SELECT a.title,a.id,a.active,a.date,a.url,u.username FROM `" . $config["prefix"] . "article` a LEFT JOIN `" . $config["prefix"] . "users` u on a.`author`=u.`uid`"); $result = $db->query("SELECT a.title,a.id,a.active,a.date,a.url,u.username FROM `" . $config["prefix"] . "article` a LEFT JOIN `" . $config["prefix"] . "users` u on a.`author`=u.`uid`");
while($row=$db->fetch_array($result, $db->ASSOC)){ while($row=$db->fetch_array($result)){
$cresult=$db->query("SELECT a.`categoryname` FROM `" . $config["prefix"] . "article_categories` a LEFT JOIN `" . $config["prefix"] . "article_category` c on a.`id`=c.`c_id` WHERE c.`a_id`='".$row["id"]."'"); $cresult=$db->query("SELECT a.`categoryname` FROM `" . $config["prefix"] . "article_categories` a LEFT JOIN `" . $config["prefix"] . "article_category` c on a.`id`=c.`c_id` WHERE c.`a_id`='".$row["id"]."'");
while($crow=$db->fetch_array($cresult, $db->ASSOC)){ while($crow=$db->fetch_array($cresult)){
if(!$row["categoryname"]){ if(!$row["categoryname"]){
$row["categoryname"]=$crow["categoryname"]; $row["categoryname"]=$crow["categoryname"];
}else{ }else{
@ -144,15 +144,15 @@ class edit_text_panel extends admin_module{
$articles[]=$row; $articles[]=$row;
} }
$panel->title="Vorhandene Artikel"; $panel->title="Vorhandene Artikel";
$panel->content.="<table class=\"sortable\" width=\"90%\" cellspacing=\"2\"> $panel->content.="<table class=\"sortable\" style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th align=\"center\">ID</th> <th style=\"text-align: center;\">ID</th>
<th align=\"center\">Name</th> <th style=\"text-align: center;\">Name</th>
<th align=\"center\">URL</th> <th style=\"text-align: center;\">URL</th>
<th align=\"center\">Kategorien</th> <th style=\"text-align: center;\">Kategorien</th>
<th align=\"center\">Aktiv</th> <th style=\"text-align: center;\">Aktiv</th>
<th align=\"center\">User</th> <th style=\"text-align: center;\">User</th>
<th class=\"nosort sortcol\" align=\"center\" width=\"18%\">Aktionen</th> <th class=\"nosort sortcol\" style=\"text-align: center; width: 18%\">Aktionen</th>
</tr>"; </tr>";
if(!empty($articles)){ if(!empty($articles)){
foreach($articles as $u){ foreach($articles as $u){
@ -162,18 +162,18 @@ class edit_text_panel extends admin_module{
$u["a"]="Nein"; $u["a"]="Nein";
} }
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\">".$u["id"]."</td> <td style=\"text-align: center;\">".$u["id"]."</td>
<td align=\"center\">".$u["title"]."</td> <td style=\"text-align: center;\">".$u["title"]."</td>
<td align=\"center\">".$u["url"]."</td> <td style=\"text-align: center;\">".$u["url"]."</td>
<td align=\"center\">".$u["categoryname"]."</td> <td style=\"text-align: center;\">".$u["categoryname"]."</td>
<td align=\"center\">".$u["a"]."</td> <td style=\"text-align: center;\">".$u["a"]."</td>
<td align=\"center\">".$u["username"]."</td>"; <td style=\"text-align: center;\">".$u["username"]."</td>";
$panel->content.="<td align=\"center\"><a onclick=\"return confirmLink(this, 'Willst du wirklich den Artikel ".$u["title"]." l&ouml;schen? ')\" href=\"".$config["path"]."/admin/index.php?panel=edit_text&amp;action=delete&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=edit_text&amp;action=edit&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td> $panel->content.="<td style=\"text-align: center;\"><a onclick=\"return confirmLink(this, 'Willst du wirklich den Artikel ".$u["title"]." l&ouml;schen? ')\" href=\"".$config["path"]."/admin/index.php?panel=edit_text&amp;action=delete&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=edit_text&amp;action=edit&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
</tr>"; </tr>";
} }
}else{ }else{
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\" colspan=\"7\">Keine Artikel vorhanden.</td> <td style=\"text-align: center;\" colspan=\"7\">Keine Artikel vorhanden.</td>
</tr>"; </tr>";
} }
$panel->content.="</table><br />"; $panel->content.="</table><br />";

View file

@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BeCast WebEngine core * @package BeCast WebEngine 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: 0a547989ebfde4dba7c560bb10b1e925117c26a9 $
*/ */
If (!defined("IN_BCWE_ADMIN")) { If (!defined("IN_BCWE_ADMIN")) {
@ -125,31 +125,31 @@ class editcategory_text_panel extends admin_module{
$articles[]=$row; $articles[]=$row;
} }
$panel->title="Vorhandene Kategorien"; $panel->title="Vorhandene Kategorien";
$panel->content.="<table class=\"sortable\" width=\"90%\" cellspacing=\"2\"> $panel->content.="<table class=\"sortable\" style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th align=\"center\">ID</th> <th style=\"text-align: center;\">ID</th>
<th align=\"center\">Name</th> <th style=\"text-align: center;\">Name</th>
<th align=\"center\">Bild</th> <th style=\"text-align: center;\">Bild</th>
<th align=\"center\">Aktiv</th> <th style=\"text-align: center;\">Aktiv</th>
<th class=\"nosort sortcol\" align=\"center\" width=\"18%\">Aktionen</th> <th class=\"nosort sortcol\" style=\"text-align: center; width: 18%\">Aktionen</th>
</tr>"; </tr>";
if(!empty($articles)){ if(!empty($articles)){
foreach($articles as $u){ foreach($articles as $u){
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\">".$u["id"]."</td> <td style=\"text-align: center;\">".$u["id"]."</td>
<td align=\"center\">".$u["categoryname"]."</td> <td style=\"text-align: center;\">".$u["categoryname"]."</td>
<td align=\"center\">".$u["picture"]."</td>"; <td style=\"text-align: center;\">".$u["picture"]."</td>";
if($u["active"]=="true"){ if($u["active"]=="true"){
$panel->content.="<td align=\"center\">Ja</td>"; $panel->content.="<td style=\"text-align: center;\">Ja</td>";
}else{ }else{
$panel->content.="<td align=\"center\">Nein</td>"; $panel->content.="<td style=\"text-align: center;\">Nein</td>";
} }
$panel->content.="<td align=\"center\"><a onclick=\"return confirmLink(this, 'Willst du wirklich die Kategorie ".$u["categoryname"]." l&ouml;schen? ')\" href=\"".$config["path"]."/admin/index.php?panel=editcategory_text&amp;action=delete&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editcategory_text&amp;action=edit&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td> $panel->content.="<td style=\"text-align: center;\"><a onclick=\"return confirmLink(this, 'Willst du wirklich die Kategorie ".$u["categoryname"]." l&ouml;schen? ')\" href=\"".$config["path"]."/admin/index.php?panel=editcategory_text&amp;action=delete&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editcategory_text&amp;action=edit&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
</tr>"; </tr>";
} }
}else{ }else{
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\" colspan=\"5\">Keine Kategorien vorhanden.</td> <td style=\"text-align: center;\" colspan=\"5\">Keine Kategorien vorhanden.</td>
</tr>"; </tr>";
} }
$panel->content.="</table><br />"; $panel->content.="</table><br />";
@ -157,7 +157,8 @@ class editcategory_text_panel extends admin_module{
} }
function meta(){ function meta(){
$meta.='<script type="text/javascript" src="'.$config["path"].'/js/scriptaculous/prototype.js"></script> global $config;
$meta ='<script type="text/javascript" src="'.$config["path"].'/js/scriptaculous/prototype.js"></script>
<script src="'.$config["path"].'/js/fastinit.js" type="text/javascript"> <script src="'.$config["path"].'/js/fastinit.js" type="text/javascript">
</script> </script>
<script src="'.$config["path"].'/js/tablesort.js" type="text/javascript"> <script src="'.$config["path"].'/js/tablesort.js" type="text/javascript">

View file

@ -1,4 +1,5 @@
<?php <?php
global $session;
If (!defined("INBCWE")) { If (!defined("INBCWE")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!"); die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
} }
@ -15,7 +16,7 @@ class text extends ajax_module{
if(isset($_POST['url'])&& $_POST['url']!=""){ if(isset($_POST['url'])&& $_POST['url']!=""){
$url=$db->escape($_POST['url']); $url=$db->escape($_POST['url']);
$result = $db->query("SELECT count(`id`) as `count` FROM `" . $config["prefix"] . "article` WHERE `url`='".$url."'"); $result = $db->query("SELECT count(`id`) as `count` FROM `" . $config["prefix"] . "article` WHERE `url`='".$url."'");
$row = $db->fetch_array($result, MYSQL_ASSOC); $row = $db->fetch_array($result);
if($row["count"]==0){ if($row["count"]==0){
echo 0; echo 0;
}else{ }else{
@ -26,4 +27,3 @@ class text extends ajax_module{
} }
} }
?>

View file

@ -1,4 +1,4 @@
<?php <?php global $session;
/** /**
* Project: BeCast WebEngine - simple site engine * Project: BeCast WebEngine - simple site engine
* File: /modules/text/text.output.php * File: /modules/text/text.output.php
@ -21,7 +21,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package BcWe 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: e0a301bfd94c80b882fbaf8db054bff98be63ca5 $
*/ */
If (!defined("INBCWE")) { If (!defined("INBCWE")) {
@ -32,42 +32,43 @@ $session->page_begin("Text Module", FALSE);
class text extends module{ class text extends module{
function output(){ function output()
global $module,$config,$db,$log,$core,$error; {
$textid=0; global $module, $config, $db, $log, $core, $error;
$url=""; $textid = 0;
if(Isset($this->get["textid"]) || Isset($this->post["textid"])){ $url = "";
if(Isset($this->get["textid"])){ if (isset($this->get["textid"]) || isset($this->post["textid"])) {
$textid = intval($this->get["textid"]); if (isset($this->get["textid"])) {
}else{ $textid = intval($this->get["textid"]);
$textid = intval($this->post["textid"]); } else {
$textid = intval($this->post["textid"]);
} }
$result = $db->query("SELECT a.`id` a.`text`, a.`title`, u.`username`, eu.`username` as edituser, a.`date`, a.`edittime`, a.`eid` FROM `" . $config["prefix"] . "article` a LEFT JOIN `".$config["prefix"]."users` eu on a.`eid` = eu.`uid` LEFT JOIN `".$config["prefix"]."users` u on a.`author` = u.`uid` WHERE a.`id`='".$textid."' AND a.`active`='true'") or die($db->error()); $result = $db->query("SELECT a.`id` a.`text`, a.`title`, u.`username`, eu.`username` as edituser, a.`date`, a.`edittime`, a.`eid` FROM `" . $config["prefix"] . "article` a LEFT JOIN `" . $config["prefix"] . "users` eu on a.`eid` = eu.`uid` LEFT JOIN `" . $config["prefix"] . "users` u on a.`author` = u.`uid` WHERE a.`id`='" . $textid . "' AND a.`active`='true'") or die($db->error());
}elseif(Isset($this->get["url"]) || Isset($this->post["url"])){ } elseif (isset($this->get["url"]) || isset($this->post["url"])) {
If(Isset($this->get["url"])){ if (isset($this->get["url"])) {
$url=preg_replace( '/\.html($|\?)/i', "$1", $this->get["url"] ); $url = preg_replace('/\.html($|\?)/i', "$1", $this->get["url"]);
}else{ } else {
$url=preg_replace( '/\.html($|\?)/i', "$1", $db->escape_string($this->post["url"])); $url = preg_replace('/\.html($|\?)/i', "$1", $db->escape_string($this->post["url"]));
} }
$result = $db->query("SELECT a.`id`, a.`text`, a.`title`, u.`username`, eu.`username` as edituser, a.`date`, a.`edittime`, a.`eid` FROM `" . $config["prefix"] . "article` a LEFT JOIN `".$config["prefix"]."users` eu on a.`eid` = eu.`uid` LEFT JOIN `".$config["prefix"]."users` u on a.`author` = u.`uid` WHERE a.url='".$url."' AND a.`active`='true'"); $result = $db->query("SELECT a.`id`, a.`text`, a.`title`, u.`username`, eu.`username` as edituser, a.`date`, a.`edittime`, a.`eid` FROM `" . $config["prefix"] . "article` a LEFT JOIN `" . $config["prefix"] . "users` eu on a.`eid` = eu.`uid` LEFT JOIN `" . $config["prefix"] . "users` u on a.`author` = u.`uid` WHERE a.url='" . $url . "' AND a.`active`='true'");
}else{ } else {
return $error->http_error("404"); return $error->http_error("404");
} }
$fid=""; $fid = "";
$fid.=$textid; $fid .= $textid;
$fid.=$url; $fid .= $url;
if($db->num_rows($result) > 0){ if ($db->num_rows($result) > 0) {
if(!$this->tpl->isCached('textview.tpl',"textview".$fid)) { if (!$this->tpl->isCached('textview.tpl', "textview" . $fid)) {
$row = $db->fetch_array($result); $row = $db->fetch_array($result);
$cresult = $db->query("SELECT * FROM `" . $config["prefix"] . "article_categorys` c LEFT JOIN `" . $config["prefix"] . "article_category` s ON c.`id`=s.`c_id` WHERE s.`a_id`='".$row["id"]."'"); $cresult = $db->query("SELECT * FROM `" . $config["prefix"] . "article_categories` c LEFT JOIN `" . $config["prefix"] . "article_category` s ON c.`id`=s.`c_id` WHERE s.`a_id`='" . $row["id"] . "'");
while($c=$db->fetch_array($cresult)){ while ($c = $db->fetch_array($cresult)) {
if(!$cat){ if (!$cat) {
$cat=$c["categoryname"]; $cat = $c["categoryname"];
}else{ } else {
$cat.=", ".$c["categoryname"]; $cat .= ", " . $c["categoryname"];
} }
} }
@ -77,15 +78,13 @@ class text extends module{
$this->tpl->assign('cat', $cat); $this->tpl->assign('cat', $cat);
$this->tpl->assign('editdate', $editdate); $this->tpl->assign('editdate', $editdate);
$this->tpl->assign('date', $date); $this->tpl->assign('date', $date);
} }
$this->titleaddon=$row['title'].' - '; $this->titleaddon = $row['title'] . ' - ';
$core->add_navbit($row['title']); $core->add_navbit($row['title']);
return $this->tpl->fetch('textview.tpl',"textview".$fid); return $this->tpl->fetch('textview.tpl', "textview" . $fid);
}else{ } else {
return $error->http_error("404"); return $error->http_error("404");
} }
} }
} }
?>

View file

@ -1,4 +0,0 @@
AuthType Basic
AuthName "Members Only"
AuthUserFile /var/www/clients/client7/web50/web/stats/.htpasswd_stats
require valid-user

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

View file

@ -1,97 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Generated by The Webalizer Ver. 2.23-08 -->
<!-- -->
<!-- Copyright 1997-2013 Bradford L. Barrett -->
<!-- -->
<!-- Distributed under the GNU GPL Version 2 -->
<!-- Full text may be found at: -->
<!-- http://www.webalizer.org -->
<!-- -->
<!-- Give the power back to the programmers -->
<!-- Support the Free Software Foundation -->
<!-- (http://www.fsf.org) -->
<!-- -->
<!-- *** Generated: 08-Jul-2016 00:30 CEST *** -->
<HTML lang="en">
<HEAD>
<TITLE>Usage statistics for archer.agency - Summary by Month</TITLE>
</HEAD>
<BODY BGCOLOR="#E8E8E8" TEXT="#000000" LINK="#0000FF" VLINK="#FF0000">
<H2>Usage statistics for archer.agency</H2>
<SMALL><STRONG>
Summary by Month<BR>
Generated 08-Jul-2016 00:30 CEST<BR>
</STRONG></SMALL>
<CENTER>
<HR>
<P>
<IMG SRC="usage.png" ALT="Usage summary for archer.agency" HEIGHT=256 WIDTH=512><P>
<TABLE WIDTH=600 BORDER=2 CELLSPACING=1 CELLPADDING=1>
<TR><TH HEIGHT=4></TH></TR>
<TR><TH COLSPAN=11 BGCOLOR="#C0C0C0" ALIGN=center>Summary by Month</TH></TR>
<TR><TH HEIGHT=4></TH></TR>
<TR><TH ALIGN=left ROWSPAN=2 BGCOLOR="#C0C0C0"><FONT SIZE="-1">Month</FONT></TH>
<TH ALIGN=center COLSPAN=4 BGCOLOR="#C0C0C0"><FONT SIZE="-1">Daily Avg</FONT></TH>
<TH ALIGN=center COLSPAN=6 BGCOLOR="#C0C0C0"><FONT SIZE="-1">Monthly Totals</FONT></TH></TR>
<TR><TH ALIGN=center BGCOLOR="#00805c"><FONT SIZE="-1">Hits</FONT></TH>
<TH ALIGN=center BGCOLOR="#0040ff"><FONT SIZE="-1">Files</FONT></TH>
<TH ALIGN=center BGCOLOR="#00e0ff"><FONT SIZE="-1">Pages</FONT></TH>
<TH ALIGN=center BGCOLOR="#ffff00"><FONT SIZE="-1">Visits</FONT></TH>
<TH ALIGN=center BGCOLOR="#ff8000"><FONT SIZE="-1">Sites</FONT></TH>
<TH ALIGN=center BGCOLOR="#ff0000"><FONT SIZE="-1">kB F</FONT></TH>
<TH ALIGN=center BGCOLOR="#ffff00"><FONT SIZE="-1">Visits</FONT></TH>
<TH ALIGN=center BGCOLOR="#00e0ff"><FONT SIZE="-1">Pages</FONT></TH>
<TH ALIGN=center BGCOLOR="#0040ff"><FONT SIZE="-1">Files</FONT></TH>
<TH ALIGN=center BGCOLOR="#00805c"><FONT SIZE="-1">Hits</FONT></TH></TR>
<TR><TH HEIGHT=4></TH></TR>
<TR><TD NOWRAP><A HREF="usage_201607.html"><FONT SIZE="-1">Jul 2016</FONT></A></TD>
<TD ALIGN=right><FONT SIZE="-1">127</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">108</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">54</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">2</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">16</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">3750</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">19</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">381</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">762</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">893</FONT></TD></TR>
<TR><TD NOWRAP><A HREF="usage_201606.html"><FONT SIZE="-1">Jun 2016</FONT></A></TD>
<TD ALIGN=right><FONT SIZE="-1">6</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">4</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">4</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">2</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">36</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">645</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">38</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">59</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">67</FONT></TD>
<TD ALIGN=right><FONT SIZE="-1">90</FONT></TD></TR>
<TR><TH HEIGHT=4></TH></TR>
<TR><TH BGCOLOR="#C0C0C0" COLSPAN=6 ALIGN=left><FONT SIZE="-1">Totals</FONT></TH>
<TH BGCOLOR="#C0C0C0" ALIGN=right><FONT SIZE="-1">4395</FONT></TH>
<TH BGCOLOR="#C0C0C0" ALIGN=right><FONT SIZE="-1">57</FONT></TH>
<TH BGCOLOR="#C0C0C0" ALIGN=right><FONT SIZE="-1">440</FONT></TH>
<TH BGCOLOR="#C0C0C0" ALIGN=right><FONT SIZE="-1">829</FONT></TH>
<TH BGCOLOR="#C0C0C0" ALIGN=right><FONT SIZE="-1">983</FONT></TH></TR>
<TR><TH HEIGHT=4></TH></TR>
</TABLE>
</CENTER>
<P>
<HR>
<TABLE WIDTH="100%" CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR>
<TD ALIGN=left VALIGN=top>
<SMALL>Generated by
<A HREF="http://www.webalizer.org/"><STRONG>Webalizer Version 2.23</STRONG></A>
</SMALL>
</TD>
</TR>
</TABLE>
<!-- Webalizer Version 2.23-08 (Mod: 26-Aug-2013) -->
</BODY>
</HTML>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,432 +0,0 @@
# Webalizer V2.23-08 Incremental Data - 07/07/2016 22:43:56
2016 7 7 22 43 56
893 762 16 99 18 12 3840177 381 19 0 0 0
4 50 427 1 7
8 7 187443 4 5 4 0 0
11 7 193699 5 7 5 0 0
3 2 3678 1 2 1 0 0
4 3 4783 2 3 2 0 0
3 2 3678 1 2 1 0 0
5 4 95008 2 3 2 0 0
859 737 3351888 4 359 4 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
1 1 1142 1 0 0
3 3 92435 2 0 0
2 0 4122 2 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
2 2 91330 1 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
2 2 91330 1 0 0
9 6 100783 5 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
5 4 95008 3 0 0
126 107 656984 35 0 0
92 92 143980 91 0 0
427 343 1572631 151 0 0
173 151 910488 38 0 0
51 51 79944 51 0 0
0 0 0 0 0 0
0
0
0
762
0
0
0
0
0
0
0
4
0
0
111
0
0
0
0
0
1
13
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0
0
0
0
0
# -urls-
/admin/images/icons/page_add.png
1 1 0 1080 0 0 0 0
/favicon-16x16.png
1 3 0 5494 0 0 0 0
/thirdparty/tiny/langs/de.js
0 1 0 2424 0 0 0 0
/themes/default/images/icons/user.png
1 2 0 1290 0 0 0 0
/js/jquery/jquery.min.js
0 11 0 368878 0 0 0 0
/admin/images/icons/house.png
1 1 0 1285 0 0 0 0
/thirdparty/tiny/plugins/searchreplace/editor_plugin.js
0 1 0 928 0 0 0 0
/login.php
0 13 0 28405 0 0 0 0
/themes/coppertopia/js/superfish-1.4.8/js/supersubs.js
0 11 0 21041 0 0 0 0
/ajax.php
0 271 0 196502 0 0 0 0
/img/logo.png
1 10 0 85310 0 0 0 0
/themes/coppertopia/img/footer.png
1 10 0 2815 0 0 0 0
/themes/ponytopia/images/derpy.png
1 2 0 107368 0 0 0 0
/themes/coppertopia/js/modernizr-2.5.3.min.js
0 11 0 71233 0 0 0 0
/themes/default/images/icons/cog_edit.png
1 2 0 1414 0 0 0 0
/admin/images/icons/arrow_down.png
1 1 0 720 0 0 0 0
/thirdparty/tiny/plugins/advimage/editor_plugin.js
0 1 0 881 0 0 0 0
/js/odo/odometer.min.js
0 11 0 43022 0 0 0 0
/favicon-32x32.png
1 3 0 11455 0 0 0 0
/admin/images/icons/tag_blue_edit.png
1 1 0 1227 0 0 0 0
/admin/images/icons/bricks.png
1 1 0 1166 0 0 0 0
/admin/images/icons/newspaper_go.png
1 1 0 1258 0 0 0 0
/logout.php
0 1 0 3716 0 0 0 0
/themes/coppertopia/img/social-right-corner.png
1 10 0 2767 0 0 0 0
/admin/images/icons/shield_go.png
1 1 0 1116 0 0 0 0
/.well-known/acme-challenge/VMWq65Km_2C9eydC0h2ts5J_CehknNgJ9HW8dDcFqAU
0 1 0 335 0 0 0 0
/themes/coppertopia/img/social-bg.png
1 10 0 3068 0 0 0 0
/themes/coppertopia/img/corner-2.png
1 10 0 4355 0 0 0 0
/themes/coppertopia/js/poshytip-1.1/src/jquery.poshytip.min.js
0 11 0 40151 0 0 0 0
/js/scriptaculous/accordion.js
0 1 0 2808 0 0 0 0
/admin/images/icons/newspaper_add.png
1 1 0 1229 0 0 0 0
/themes/coppertopia/js/jquery-1.7.1.min.js
0 11 0 368788 0 0 0 0
/themes/coppertopia/css/tweet.css
0 11 0 8495 0 0 0 0
/favicon.ico
0 2 0 30832 0 0 0 0
/themes/coppertopia/css/superfish.css
0 11 0 8160 0 0 0 0
/themes/coppertopia/css/isotope.css
0 11 0 7181 0 0 0 0
/admin/images/icons/connect.png
1 1 0 1089 0 0 0 0
/admin/images/icons/wrench.png
1 1 0 951 0 0 0 0
/themes/coppertopia/img/ribbon.png
1 10 0 12440 0 0 0 0
/admin/images/icons/book_edit.png
1 1 0 1154 0 0 0 0
/thirdparty/tiny/tiny_mce.js
0 1 0 48572 0 0 0 0
/admin/admin.css
0 1 0 1798 0 0 0 0
/admin/
0 12 0 29932 0 0 0 0
/themes/coppertopia/img/corner-1.png
1 10 0 4277 0 0 0 0
/themes/coppertopia/img/corner-3.png
1 10 0 4514 0 0 0 0
/admin/images/icons/disconnect.png
1 1 0 1137 0 0 0 0
/themes/coppertopia/css/style.css
0 11 0 37909 0 0 0 0
/themes/coppertopia/img/social-left-corner.png
1 10 0 2728 0 0 0 0
/themes/coppertopia/js/poshytip-1.1/src/tip-yellow/tip-yellow.css
0 11 0 10668 0 0 0 0
/themes/coppertopia/fonts/mensch-webfont.ttf
0 3 0 50317 0 0 0 0
/favicon-96x96.png
1 3 0 50352 0 0 0 0
/admin/images/icons/layout.png
1 1 0 821 0 0 0 0
/js/scriptaculous/prototype.js
0 1 0 30914 0 0 0 0
/thirdparty/tiny/plugins/table/editor_plugin.js
0 1 0 5602 0 0 0 0
/js/scriptaculous/effects.js
0 1 0 9415 0 0 0 0
/themes/coppertopia/js/jquery.isotope.min.js
0 11 0 58675 0 0 0 0
/themes/coppertopia/js/superfish-1.4.8/js/superfish.js
0 11 0 20667 0 0 0 0
/thirdparty/tiny/plugins/advhr/editor_plugin.js
0 1 0 903 0 0 0 0
/favicon-160x160.png
1 3 0 106265 0 0 0 0
/thirdparty/tiny/themes/advanced/langs/de.js
0 1 0 1469 0 0 0 0
/themes/coppertopia/css/lessframework.css
0 11 0 22182 0 0 0 0
/admin/images/icons/user_edit.png
1 1 0 1174 0 0 0 0
/themes/coppertopia/js/superfish-1.4.8/js/hoverIntent.js
0 11 0 17488 0 0 0 0
/admin/images/icons/user_add.png
1 1 0 1087 0 0 0 0
/img/social/Google+.png
1 10 0 8153 0 0 0 0
/thirdparty/tiny/plugins/insertdatetime/editor_plugin.js
0 1 0 1169 0 0 0 0
/admin/images/icons/table_multiple.png
1 1 0 953 0 0 0 0
/themes/coppertopia/css/comments.css
0 11 0 21723 0 0 0 0
/themes/coppertopia/css/elements.css
0 11 0 28920 0 0 0 0
/themes/coppertopia/img/corner-4.png
1 10 0 4187 0 0 0 0
/
0 71 0 119300 18 4 0 0
/admin/images/icons/group_add.png
1 1 0 1148 0 0 0 0
/img/social/Twitter.png
1 10 0 17421 0 0 0 0
/themes/coppertopia/js/jquery.nivo.slider.js
0 11 0 58400 0 0 0 0
/themes/ponytopia/images/muffin.png
1 2 0 62774 0 0 0 0
/admin/images/icons/group_edit.png
1 1 0 1126 0 0 0 0
/js/odo/odometer-theme-minmal.css
0 11 0 11326 0 0 0 0
/themes/coppertopia/img/header.png
1 10 0 3029 0 0 0 0
/themes/coppertopia/css/nivo-slider.css
0 11 0 18137 0 0 0 0
/themes/coppertopia/css/reset.css
0 11 0 10613 0 0 0 0
/thirdparty/tiny/themes/advanced/editor_template.js
0 1 0 7740 0 0 0 0
/admin/images/icons/arrow_left.png
1 1 0 686 0 0 0 0
/admin/images/icons/page_edit.png
1 1 0 1148 0 0 0 0
/favicon-196x196.png
1 3 0 145262 0 0 0 0
/thirdparty/tiny/plugins/advlink/editor_plugin.js
0 1 0 1114 0 0 0 0
/themes/coppertopia/js/custom.js
0 11 0 25662 0 0 0 0
/themes/coppertopia/img/current.png
1 10 0 14727 0 0 0 0
/themes/coppertopia/js/tabs.js
0 11 0 27996 0 0 0 0
/themes/coppertopia/css/widgets.css
0 11 0 8985 0 0 0 0
/themes/coppertopia/js/css3-mediaqueries.js
0 11 0 59522 0 0 0 0
/.well-known/acme-challenge/LB2FtKmw5P2AMqMaFNdTe-k2LjMpwFyGbhPgUxCr_hQ
0 1 0 335 0 0 0 0
/thirdparty/tiny/tiny_mce_gzip.php
0 1 0 54332 0 0 0 0
/themes/default/images/icons/door_out.png
1 2 0 1237 0 0 0 0
/admin/images/icons/server_edit.png
1 1 0 1090 0 0 0 0
/thirdparty/tiny/tiny_mce_gzip.js
0 1 0 1684 0 0 0 0
/themes/coppertopia/img/bg.png
1 10 0 264452 0 0 0 0
/agency.png
1 9 0 814730 0 0 0 0
/apple-touch-icon-57x57.png
1 1 0 8218 0 0 0 0
/admin/images/icons/tag_blue_add.png
1 1 0 1150 0 0 0 0
# End Of Table - urls
# -sites- (monthly)
54.158.115.217
0 2 2 91330 1 1467768645 0 0
/
199.87.154.255
0 1 1 1105 1 1467338167 0 0
/
64.79.100.35
0 6 4 7356 2 1467841451 0 0
/
50.112.49.74
0 2 2 91330 1 1467369331 0 0
/
52.38.178.58
0 2 2 91330 1 1467440402 0 0
/
66.133.109.36
0 2 2 670 0 0 0 0
-
64.79.100.44
0 3 2 3678 1 1467482047 0 0
/
109.204.146.138
0 3 2 93427 1 1467459593 0 0
/
54.227.212.124
0 1 1 1142 1 1467418551 0 0
/
194.96.41.221
0 853 733 3258786 2 1467931436 0 0
/ajax.php
188.163.107.175
0 2 0 4122 1 1467425367 0 0
-
52.34.197.47
0 2 2 91330 1 1467401962 0 0
/
64.79.100.12
0 5 2 4780 2 1467926397 0 0
/
85.31.101.98
0 1 1 1105 1 1467670118 0 0
/
67.217.35.147
0 2 2 91330 1 1467913631 0 0
/
64.79.100.42
0 6 4 7356 2 1467718561 0 0
/
# End Of Table - sites (monthly)
# -sites- (daily)
66.133.109.36
0 2 2 670 0 0 0 0
-
194.96.41.221
0 853 733 3258786 2 1467931436 0 0
/ajax.php
64.79.100.12
0 2 0 1102 1 1467926397 0 0
/
67.217.35.147
0 2 2 91330 1 1467913631 0 0
/
# End Of Table - sites (daily)
# -referrers-
https://archer.agency/logout.php
1 2
https://archer.agency/themes/coppertopia/css/style.css
1 37
http://archer.agency/admin/
1 43
http://archer.agency/administrator/
1 1
- (Direct Request)
0 90
https://archer.agency/index.php
1 108
http://archer.agency/
1 8
http://archer.agency/index.php
1 349
http://www.archer.agency/
1 1
https://archer.agency/login.php
1 2
http://www.archer.agency
1 7
http://archer.agency/themes/coppertopia/css/style.css
1 152
https://archer.agency/
1 1
https://archer.agency/admin/index.php
1 48
https://archer.agency/admin/admin.css
1 2
http://www.archer.agency/robots.txt
1 7
http://archer.agency/blog//administrator/
1 1
http://archer.agency/login.php
1 34
# End Of Table - referrers
# -agents-
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
0 14
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
0 477
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36
0 2
Mozilla/5.0 (compatible; Let's Encrypt validation server; +https://www.letsencrypt.org)
0 2
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB6 (.NET CLR 3.5.30729)
0 1
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
0 3
Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.0.1-development Safari/538.1
0 2
Mozilla
0 6
Python-urllib/2.7
0 2
Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.0 Safari/534.34
0 6
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) splash Safari/538.1
0 2
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0 FirePHP/0.7.4
0 376
# End Of Table - agents
# -search strings-
# End Of Table - search strings
# -usernames-
# End Of Table - usernames

View file

@ -1,121 +0,0 @@
# Webalizer V2.23-08 History Data - 08/Jul/2016 00:30:01 (120 month)
7 2016 893 762 16 3750 1 7 381 19 0 0
6 2016 90 67 36 645 17 30 59 38 0 0
5 2016 0 0 0 0 0 0 0 0 0 0
4 2016 0 0 0 0 0 0 0 0 0 0
3 2016 0 0 0 0 0 0 0 0 0 0
2 2016 0 0 0 0 0 0 0 0 0 0
1 2016 0 0 0 0 0 0 0 0 0 0
12 2015 0 0 0 0 0 0 0 0 0 0
11 2015 0 0 0 0 0 0 0 0 0 0
10 2015 0 0 0 0 0 0 0 0 0 0
9 2015 0 0 0 0 0 0 0 0 0 0
8 2015 0 0 0 0 0 0 0 0 0 0
7 2015 0 0 0 0 0 0 0 0 0 0
6 2015 0 0 0 0 0 0 0 0 0 0
5 2015 0 0 0 0 0 0 0 0 0 0
4 2015 0 0 0 0 0 0 0 0 0 0
3 2015 0 0 0 0 0 0 0 0 0 0
2 2015 0 0 0 0 0 0 0 0 0 0
1 2015 0 0 0 0 0 0 0 0 0 0
12 2014 0 0 0 0 0 0 0 0 0 0
11 2014 0 0 0 0 0 0 0 0 0 0
10 2014 0 0 0 0 0 0 0 0 0 0
9 2014 0 0 0 0 0 0 0 0 0 0
8 2014 0 0 0 0 0 0 0 0 0 0
7 2014 0 0 0 0 0 0 0 0 0 0
6 2014 0 0 0 0 0 0 0 0 0 0
5 2014 0 0 0 0 0 0 0 0 0 0
4 2014 0 0 0 0 0 0 0 0 0 0
3 2014 0 0 0 0 0 0 0 0 0 0
2 2014 0 0 0 0 0 0 0 0 0 0
1 2014 0 0 0 0 0 0 0 0 0 0
12 2013 0 0 0 0 0 0 0 0 0 0
11 2013 0 0 0 0 0 0 0 0 0 0
10 2013 0 0 0 0 0 0 0 0 0 0
9 2013 0 0 0 0 0 0 0 0 0 0
8 2013 0 0 0 0 0 0 0 0 0 0
7 2013 0 0 0 0 0 0 0 0 0 0
6 2013 0 0 0 0 0 0 0 0 0 0
5 2013 0 0 0 0 0 0 0 0 0 0
4 2013 0 0 0 0 0 0 0 0 0 0
3 2013 0 0 0 0 0 0 0 0 0 0
2 2013 0 0 0 0 0 0 0 0 0 0
1 2013 0 0 0 0 0 0 0 0 0 0
12 2012 0 0 0 0 0 0 0 0 0 0
11 2012 0 0 0 0 0 0 0 0 0 0
10 2012 0 0 0 0 0 0 0 0 0 0
9 2012 0 0 0 0 0 0 0 0 0 0
8 2012 0 0 0 0 0 0 0 0 0 0
7 2012 0 0 0 0 0 0 0 0 0 0
6 2012 0 0 0 0 0 0 0 0 0 0
5 2012 0 0 0 0 0 0 0 0 0 0
4 2012 0 0 0 0 0 0 0 0 0 0
3 2012 0 0 0 0 0 0 0 0 0 0
2 2012 0 0 0 0 0 0 0 0 0 0
1 2012 0 0 0 0 0 0 0 0 0 0
12 2011 0 0 0 0 0 0 0 0 0 0
11 2011 0 0 0 0 0 0 0 0 0 0
10 2011 0 0 0 0 0 0 0 0 0 0
9 2011 0 0 0 0 0 0 0 0 0 0
8 2011 0 0 0 0 0 0 0 0 0 0
7 2011 0 0 0 0 0 0 0 0 0 0
6 2011 0 0 0 0 0 0 0 0 0 0
5 2011 0 0 0 0 0 0 0 0 0 0
4 2011 0 0 0 0 0 0 0 0 0 0
3 2011 0 0 0 0 0 0 0 0 0 0
2 2011 0 0 0 0 0 0 0 0 0 0
1 2011 0 0 0 0 0 0 0 0 0 0
12 2010 0 0 0 0 0 0 0 0 0 0
11 2010 0 0 0 0 0 0 0 0 0 0
10 2010 0 0 0 0 0 0 0 0 0 0
9 2010 0 0 0 0 0 0 0 0 0 0
8 2010 0 0 0 0 0 0 0 0 0 0
7 2010 0 0 0 0 0 0 0 0 0 0
6 2010 0 0 0 0 0 0 0 0 0 0
5 2010 0 0 0 0 0 0 0 0 0 0
4 2010 0 0 0 0 0 0 0 0 0 0
3 2010 0 0 0 0 0 0 0 0 0 0
2 2010 0 0 0 0 0 0 0 0 0 0
1 2010 0 0 0 0 0 0 0 0 0 0
12 2009 0 0 0 0 0 0 0 0 0 0
11 2009 0 0 0 0 0 0 0 0 0 0
10 2009 0 0 0 0 0 0 0 0 0 0
9 2009 0 0 0 0 0 0 0 0 0 0
8 2009 0 0 0 0 0 0 0 0 0 0
7 2009 0 0 0 0 0 0 0 0 0 0
6 2009 0 0 0 0 0 0 0 0 0 0
5 2009 0 0 0 0 0 0 0 0 0 0
4 2009 0 0 0 0 0 0 0 0 0 0
3 2009 0 0 0 0 0 0 0 0 0 0
2 2009 0 0 0 0 0 0 0 0 0 0
1 2009 0 0 0 0 0 0 0 0 0 0
12 2008 0 0 0 0 0 0 0 0 0 0
11 2008 0 0 0 0 0 0 0 0 0 0
10 2008 0 0 0 0 0 0 0 0 0 0
9 2008 0 0 0 0 0 0 0 0 0 0
8 2008 0 0 0 0 0 0 0 0 0 0
7 2008 0 0 0 0 0 0 0 0 0 0
6 2008 0 0 0 0 0 0 0 0 0 0
5 2008 0 0 0 0 0 0 0 0 0 0
4 2008 0 0 0 0 0 0 0 0 0 0
3 2008 0 0 0 0 0 0 0 0 0 0
2 2008 0 0 0 0 0 0 0 0 0 0
1 2008 0 0 0 0 0 0 0 0 0 0
12 2007 0 0 0 0 0 0 0 0 0 0
11 2007 0 0 0 0 0 0 0 0 0 0
10 2007 0 0 0 0 0 0 0 0 0 0
9 2007 0 0 0 0 0 0 0 0 0 0
8 2007 0 0 0 0 0 0 0 0 0 0
7 2007 0 0 0 0 0 0 0 0 0 0
6 2007 0 0 0 0 0 0 0 0 0 0
5 2007 0 0 0 0 0 0 0 0 0 0
4 2007 0 0 0 0 0 0 0 0 0 0
3 2007 0 0 0 0 0 0 0 0 0 0
2 2007 0 0 0 0 0 0 0 0 0 0
1 2007 0 0 0 0 0 0 0 0 0 0
12 2006 0 0 0 0 0 0 0 0 0 0
11 2006 0 0 0 0 0 0 0 0 0 0
10 2006 0 0 0 0 0 0 0 0 0 0
9 2006 0 0 0 0 0 0 0 0 0 0
8 2006 0 0 0 0 0 0 0 0 0 0

View file

@ -1,13 +0,0 @@
#Weather
WeatherSeasonWinter|SourceUser=It is Winter! Make sure you are dressed for the occasion or you might catch a cold!
WeatherSeasonSummer|SourceUser=Summertime! Enjoy summer activities!
WeatherSeasonFall|SourceUser=Brace yourself, winter is coming! However as of now only the leaves have changed color and the nights start to get frosty.
WeatherSeasonSpring|SourceUser=Birds are singing and the last snow is melting away. The days get longer and warmer as more People then usual seem to roam the parks. Seems Spring is in the air.
txtWeather|SourceUser=<span class="info"><%WeatherSeason%><br />Current Weather: <%WeatherText%> </span><br/>
txtWeatherChange|SourceRoom=<span class="info">%(<%OldWeather%><br/>)%<%WeatherInfo%></span><br/>
txtParasErrorNoWeather|SourceUser=<span class="info">You need to specify a Weather!</span><br/>
txtParasErrorWeatherNoExist|SourceUser=<span class="info">This Weather doesn't exist!</span><br/>
txtWeatherNotAllowed|SourceUser=<span class="info">This Char is not allowed to change the Weather!</span><br/>
txtWeatherSubmit|SourceUser=<span class="info">The Weatherchange was submitted, please wait until it takes effect.</span><br/>
txtWeatherAlreadySet|SourceUser=<span class="info">This weather is already set.</span><br/>
txtlocalWeather|SourceUser=<span class="info">Current Weather: <%WeatherText%> </span><br/>

View file

@ -1,13 +0,0 @@
#Weather
WeatherSeasonWinter|SourceUser=It is Winter! Make sure you are dressed for the occasion or you might catch a cold!
WeatherSeasonSummer|SourceUser=Summertime! Enjoy summer activities!
WeatherSeasonFall|SourceUser=Brace yourself, winter is coming! However as of now only the leaves have changed color and the nights start to get frosty.
WeatherSeasonSpring|SourceUser=Birds are singing and the last snow is melting away. The days get longer and warmer as more People then usual seem to roam the parks. Seems Spring is in the air.
txtWeather|SourceUser=<span class="info"><%WeatherSeason%><br />Current Weather: <%WeatherText%> </span><br/>
txtWeatherChange|SourceRoom=<span class="info">%(<%OldWeather%><br/>)%<%WeatherInfo%></span><br/>
txtParasErrorNoWeather|SourceUser=<span class="info">You need to specify a Weather!</span><br/>
txtParasErrorWeatherNoExist|SourceUser=<span class="info">This Weather doesn't exist!</span><br/>
txtWeatherNotAllowed|SourceUser=<span class="info">This Char is not allowed to change the Weather!</span><br/>
txtWeatherSubmit|SourceUser=<span class="info">The Weatherchange was submitted, please wait until it takes effect.</span><br/>
txtWeatherAlreadySet|SourceUser=<span class="info">This weather is already set.</span><br/>
txtlocalWeather|SourceUser=<span class="info">Current Weather: <%WeatherText%> </span><br/>

View file

@ -1,4 +1,4 @@
<!doctype html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>FunCh.at - Deine Chatcommunity</title> <title>FunCh.at - Deine Chatcommunity</title>

View file

@ -14,6 +14,11 @@
src: url("/themes/funchat/font/Inter-Italic-VariableFont_opsz,wght.ttf"); src: url("/themes/funchat/font/Inter-Italic-VariableFont_opsz,wght.ttf");
} }
@font-face {
font-family: Chewy;
src: url("/themes/funchat/font/Chewy-Regular.ttf");
}
html { html {
overflow-y: scroll; overflow-y: scroll;
} }
@ -111,6 +116,13 @@ div.wrapper h6 {
font-size: 20px; font-size: 20px;
font-weight: normal; font-weight: normal;
line-height: normal; line-height: normal;
font-family: Chewy;
}
div.wrapper h1 {
font-size: 30px;
}
div.wrapper h2 {
font-size: 25px;
} }
.col1 { .col1 {
color: #666666; color: #666666;
@ -580,3 +592,4 @@ div.wrapper h6 {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }

View file

@ -1,12 +1,14 @@
<div class="menuitem_blue"><div class="menuitem_text">{$navtitle}</div></div> <div class="subnav">
<form class="loginform" action="{$path}login.php" method="post"> <h5>{$navtitle}</h5>
<strong><img src="{$path}themes/default/images/icons/user.png" /> Username:<br /></strong> <form class="loginform" action="{$path}login.php" method="post">
<input type="text" name="username" size="15" maxlength="25" /><br /> <strong><img class="mimg" src="{$path}themes/default/images/icons/user.png" /> Username:<br /></strong>
<strong><img src="{$path}themes/default/images/icons/key.png" /> Passwort:</strong><br /> <input type="text" name="username" size="15" maxlength="25" /><br />
<input type="password" name="password" size="15" maxlength="25" /><br /> <strong><img class="mimg" src="{$path}themes/default/images/icons/key.png" /> Passwort:</strong><br />
<label><input type="checkbox" name="remember" /> <strong>Eingeloggt bleiben</strong></label><br /> <input type="password" name="password" size="15" maxlength="25" /><br />
<input type="submit" class="button" name="submit" value="Login" /> <label><input type="checkbox" name="remember" /> <strong>Eingeloggt bleiben</strong></label><br />
<input type="hidden" name="action" value="do_login" /> <input type="submit" class="button" id="go" name="submit" value="Login" />
<input type="hidden" name="url" value="{$path}index.php" /><br /><a href="{$path}lostpw.php">Passwort vergessen?</a><br /> <input type="hidden" name="action" value="do_login" />
<a href="{$path}register.php">Registrieren</a><br /> <input type="hidden" name="url" value="{$path}index.php" /><br /><a href="{$path}lostpw.php">Passwort vergessen?</a><br />
</form> <a href="{$path}register.php">Registrieren</a><br />
</form>
</div>

View file

@ -22,7 +22,7 @@
* @author Bernhard Jaud <bernhard at becast dot at> * @author Bernhard Jaud <bernhard at becast dot at>
* @package astat core * @package astat 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: usercp.php 100 2010-02-20 14:42:30Z genuineparts $ * @version $Id: 1d95225f51779025d8fd4c4571c7ac76dfe8cd63 $
*/ */
/** /**