This commit is contained in:
genuineparts 2025-06-03 08:44:01 +02:00
commit 9a8c01fc4f
395 changed files with 29082 additions and 31922 deletions

View file

@ -4,6 +4,8 @@ If (!defined("in_astat")) {
}
$session->page_begin("PM Module", FALSE);
use Smarty\Smarty;
class ajaxpm extends ajax_module{
function ajax(){
@ -11,15 +13,17 @@ class ajaxpm extends ajax_module{
if($session->userdata['uid']!=0){
$this->tpl= new Smarty();
$root = $_SERVER['DOCUMENT_ROOT'] . $config["path"];
$this->tpl->compile_dir = $root . '/core/template/templates_c';
$this->tpl->cache_dir = $root . '/core/template/cache';
$this->tpl->config_dir = $root . '/core/template/config';
$this->tpl->caching = $config["caching"];
$this->tpl->setCompileDir($root . '/core/template/templates_c');
$this->tpl->setCacheDir($root . '/core/template/cache');
$this->tpl->setConfigDir($root . '/core/template/config');
If($config["caching"]==1){
$this->tpl->setCaching(Smarty::CACHING_LIFETIME_SAVED);
}
$this->tpl->assign("path",$config["path"]."/");
if(isset($config["theme"]) && is_dir($root . '/modules/ajaxpm/templates/'.$config["theme"])){
$this->tpl-> template_dir = $root . '/modules/ajaxpm/templates/'.$config["theme"];
$this->tpl-> setTemplateDir($root . '/modules/ajaxpm/templates/'.$config["theme"]);
}else{
$this->tpl-> template_dir = $root . '/modules/ajaxpm/templates/default';
$this->tpl-> setTemplateDir($root . '/modules/ajaxpm/templates/default');
}
$mybb=$cache->read('mybbconfig');
$result = $db->query("SELECT `unreadpms` as `count` FROM `" . $mybb["prefix"] . "users` WHERE `uid`='".$session->userdata['fuid']."'");

View file

@ -9,9 +9,9 @@ class module_ajaxpm extends admin_module{
function get_info(){
$info["name"]="AJAX PM Notice";
$info["file"]="ajaxpm";
$info["author"]="astat";
$info["version"]="1.0.0";
$info["url"]="http://www.astat.org";
$info["author"]="BeCast";
$info["version"]="1.0.1";
$info["url"]="http://www.becast.at";
return $info;
}

View file

@ -1,92 +0,0 @@
<?php
class module_captcha extends admin_module{
function admin_panels(){
$panels=array(array("manage_captcha","Captcha verwalten","manage_captcha"));
return $panels;
}
function get_info(){
$info["name"]="Captcha Management";
$info["file"]="captcha";
$info["author"]="BeCast";
$info["version"]="1.0.0";
$info["url"]="http://www.becast.at";
return $info;
}
function install(){
global $config, $db;
$db->query("CREATE TABLE IF NOT EXISTS `" . $config["prefix"] . "article` (
`id` int(11) NOT NULL auto_increment,
`text` text NOT NULL,
`date` int(11) NOT NULL default '0',
`author` int(11) NOT NULL default '0',
`eid` int(11) NOT NULL,
`edittime` int(11) NOT NULL,
`menue` int(11) NOT NULL default '0',
`title` varchar(80) NOT NULL default '',
`url` varchar(120) NOT NULL,
`rightnavi` enum('false','true') NOT NULL,
`active` enum('true','false') NOT NULL,
PRIMARY KEY (`id`),
KEY `author` (`author`),
KEY `menue` (`menue`),
KEY `eid` (`eid`)
) ENGINE=MyISAM");
$db->query("CREATE TABLE IF NOT EXISTS `" . $config["prefix"] . "article_categorys` (
`id` int(11) NOT NULL auto_increment,
`categoryname` varchar(80) NOT NULL default '',
`picture` varchar(80) NOT NULL default '',
`active` enum('true','false') NOT NULL,
PRIMARY KEY (`id`),
KEY `active` (`active`)
) ENGINE=MyISAM");
$db->query("CREATE TABLE `" . $config["prefix"] . "article_category` (
`a_id` int(11) NOT NULL,
`c_id` int(11) NOT NULL,
KEY `a_id` (`a_id`),
KEY `c_id` (`c_id`)
) ENGINE=MyISAM");
$db->query("CREATE TABLE `" . $config["prefix"] . "article_menue` (
`id` int(11) NOT NULL auto_increment,
`sort` int(11) NOT NULL,
`name` text NOT NULL,
PRIMARY KEY (`id`),
KEY `sort` (`sort`)
) ENGINE=MyISAM");
mkdir ($_SERVER["DOCUMENT_ROOT"]."/catimages", 0777);
return TRUE;
}
function uninstall(){
global $config, $db;
$db->query("DROP TABLE `" . $config["prefix"] . "article`");
$db->query("DROP TABLE `" . $config["prefix"] . "article_categorys`");
$db->query("DROP TABLE `" . $config["prefix"] . "article_category`");
$db->query("DROP TABLE `" . $config["prefix"] . "article_menue`");
@$this->recursive($_SERVER["DOCUMENT_ROOT"]."/catimages");
return TRUE;
}
function recursive($dest){
$list = array_diff(scandir($dest), array('.', '..'));
foreach ($list as $value) {
$file = $dest.'/'.$value;
if (is_dir($file)) {
recursive($file);
}else{
unlink($file);
}
}
return rmdir($dest);
}
}
?>

View file

@ -8,11 +8,11 @@ class module_chat extends admin_module{
}
function get_info(){
$info["name"]="PT Chat";
$info["name"]="TopiaChat";
$info["file"]="chat";
$info["author"]="grease";
$info["author"]="genuineparts";
$info["version"]="1.1.0";
$info["url"]="http://www.ponytopia.net";
$info["url"]="http://www.becast.at";
//$info["depends"]='mybb_bridge';
return $info;
}

View file

@ -88,7 +88,7 @@ class chat extends module{
$ch = curl_init();
// setze die URL und andere Optionen
curl_setopt($ch, CURLOPT_URL, 'https://chatsrv.austriachat.net/login?uid='.$session->userdata['uid'].'&room='.$_POST['room'].'&ip=' . $_SERVER['REMOTE_ADDR'] . '&browser=' . urlencode($_SERVER['HTTP_USER_AGENT']) . '&loginkey=4de0345e1c2a6e4bcd26d6874b&template='.$rctemplate);
curl_setopt($ch, CURLOPT_URL, 'https://chat.funch.at/login?uid='.$session->userdata['uid'].'&room='.$_POST['room'].'&ip=' . $_SERVER['REMOTE_ADDR'] . '&browser=' . urlencode($_SERVER['HTTP_USER_AGENT']) . '&loginkey=4de0345e1c2a6e4bcd26d6874b&template='.$rctemplate);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_HEADER, false);
@ -100,8 +100,6 @@ class chat extends module{
// schließe den cURL-Handle und gebe die Systemresourcen frei
curl_close($ch);
//$fh = fopen('https://chatserver.coppertopia.net/login?uid='.$_POST['nick'].'&room='.$_POST['room'].'&ip=' . $_SERVER['REMOTE_ADDR'] . '&browser=' . urlencode($_SERVER['HTTP_USER_AGENT']) . '&loginkey=4de0345e1c2a6e4bcd26d6874b&template='.$rctemplate, "r", false, stream_context_create($opts));
//var_dump($fh);
if ($fh) {
/*$buffer = '';
while (!feof($fh)) {
@ -618,7 +616,7 @@ function inmeta2(){
socket.close();
});
function connect(){
var host = 'wss://chatsrv.austriachat.net/'+yacsid;
var host = 'wss://chat.funch.at/'+yacsid;
try{
socket = new WebSocket(host);
socket.onopen = function(){
@ -906,7 +904,6 @@ function inmeta2(){
$(document).ready(function()
{
$('#text').keyup( $.debounce( 250, typing ) );
window.onbeforeunload = function (e) {
var e = e || window.event;

View file

@ -1,4 +1,4 @@
document.domain = "austriachat.net";
document.domain = "funch.at";
function notice() {
if(not!=false){
@ -9,8 +9,8 @@ function changenotice(file) {
var zeit = new Date();
var ms = zeit.getMilliseconds();
var audio = $('#notice').empty();
var newSrc = $("<source>").attr("src", "//austriachat.net/modules/chat/sound/"+file+"_notice.ogg?id="+ms).appendTo(audio);
var newSrc2 = $("<source>").attr("src", "//austriachat.net/modules/chat/sound/"+file+"_notice.mp3?id="+ms).appendTo(audio);
var newSrc = $("<source>").attr("src", "//funch.at/modules/chat/sound/"+file+"_notice.ogg?id="+ms).appendTo(audio);
var newSrc2 = $("<source>").attr("src", "//funch.at/modules/chat/sound/"+file+"_notice.mp3?id="+ms).appendTo(audio);
/****************/
audio[0].pause();
audio[0].load();
@ -31,7 +31,7 @@ function pause() {
function updateSource(file) {
if(file!=undefined){
$('#oggSource').attr('src',"//austriachat.net/modules/chat/sound/"+file+".ogg").detach().appendTo($('#audioPlayer'));
$('#mp3Source').attr('src',"//austriachat.net/modules/chat/sound/"+file+".mp3").detach().appendTo($('#audioPlayer'));
$('#oggSource').attr('src',"//funch.at/modules/chat/sound/"+file+".ogg").detach().appendTo($('#audioPlayer'));
$('#mp3Source').attr('src',"//funch.at/modules/chat/sound/"+file+".mp3").detach().appendTo($('#audioPlayer'));
}
}

View file

@ -33,7 +33,7 @@ function get_user_list() {
// erzeuge einen neuen cURL-Handle
$ch = curl_init();
// 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_URL, "https://46.4.58.184/info");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
@ -178,4 +178,4 @@ function chat_data(){
return $data;
}
}
?>
?>

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
<div class="twelve columns">
<h2>Chat:</h2>
<form name="form" id="chatform" action="chat/in.html" method="post">
<form name="form" id="chatform" action="/chat/in" method="post">
Raum: <select name="room">
{foreach from=$options item=option}
<option value="{if $option.value==''}{$option.room}{else}{$option.value}{/if}" {$option.selected}>{$option.room}</option>
@ -19,4 +19,4 @@ Raum: <select name="room">
{foreachelse}
Sorry, niemand online:-(
{/foreach}
</div>
</div>

View file

@ -9,9 +9,11 @@
================================================== -->
<meta charset="utf-8">
<title>Funch.at - Die &Ouml;sterreichische Chatcommunity</title>
<meta content="Funch.at - Die &Ouml;sterreichische Chatcommunity" property="og:title" />
<meta name="keywords" content="oe3 &Ouml;3 chat sms.at uboot.com chatcommunity webchat austria oesterreich forum" />
<meta name="author" content="Funch.at" />
<meta content="FunCh.at - Die &Ouml;sterreichische Chatcommunity" property="og:title" />
<meta name="keywords" content="oe3 &Ouml;3 chat sms.at uboot.com chatcommunity webchat austria oesterreich forum" />
<meta name="author" content="FunCh.at" />
<meta name="description" content="Die kostenlose und werbefreie &Ouml;sterreichische Chatcommunity. Endlich wieder Chatten wie im Uboot, sms.at, Orf Chat, usw. Wir sehen uns!" />
<link href="https://funch.at/chat" rel="Chat"/>
<link href="https://funch.at/forum" rel="Forum"/>
@ -69,4 +71,4 @@
</nav> <!-- end #nav-wrap -->
</header> <!-- Header End -->
</header> <!-- Header End -->

View file

@ -2,8 +2,10 @@
If (!defined("in_astat")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
}
class plugins_mybbnews{
use Smarty\Smarty;
class plugins_mybbnews{
function register_plugins($plugin){
$plugin->use_hook('frontpage_mybbnews',array($this,"newsview"));
$plugin->use_hook('navigation_mainmodule',array($this,"frontpage_nav"));
@ -14,15 +16,17 @@ class plugins_mybbnews{
$this->tpl= new Smarty();
$parser=new textparser(true);
$root = $_SERVER['DOCUMENT_ROOT'] . $config["path"];
$this->tpl->compile_dir = $root . '/core/template/templates_c';
$this->tpl->cache_dir = $root . '/core/template/cache';
$this->tpl->config_dir = $root . '/core/template/config';
$this->tpl->caching = $config["caching"];
$this->tpl->setCompileDir($root . '/core/template/templates_c');
$this->tpl->setCacheDir($root . '/core/template/cache');
$this->tpl->setConfigDir($root . '/core/template/config');
If($config["caching"]==1){
$this->tpl->setCaching(Smarty::CACHING_LIFETIME_SAVED);
}
$this->tpl->assign("path",$config["path"]."/");
if(isset($config["theme"]) && is_dir($root . '/modules/mybbnews/templates/'.$config["theme"])){
$this->tpl-> template_dir = $root . '/modules/mybbnews/templates/'.$config["theme"];
$this->tpl-> setTemplateDir($root . '/modules/mybbnews/templates/'.$config["theme"]);
}else{
$this->tpl-> template_dir = $root . '/modules/mybbnews/templates/default';
$this->tpl-> setTemplateDir($root . '/modules/mybbnews/templates/default');
}
$result=$db->query("SELECT n.*,t.*,( SELECT COUNT(`pid`) FROM `ab_posts` c WHERE c.`replyto`=n.`pid` AND c.`visible`='1') as count FROM `ab_posts` n LEFT JOIN `ab_threads` t ON t.`tid`=n.`tid` WHERE n.`fid`='2' AND n.`replyto`='0' AND n.`visible`='1' ORDER BY n.`dateline` DESC LIMIT 10");
while($row=$db->fetch_array($result)){

View file

@ -27,6 +27,7 @@
If (!defined("in_astat")) {
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
}
$session->page_begin("Text Module", FALSE);
class text extends module{