28.02.2010, 11:52
28.02.2010, 12:30
(28.02.2010, 11:52)burbot Wrote: [ -> ]Warum braucht man für eine LAN-Party ein Forum?
Ich weiß auch nicht.
Aber wer eine LAN über mehrere Stockwerke macht, dann kann das schon etwas nützlich sein...
Man will ja nicht immer durchs ganze Haus rennen um was zu sagen
28.02.2010, 13:00
(28.02.2010, 12:30)Yannici Wrote: [ -> ]Ich weiß auch nicht.
Aber wer eine LAN über mehrere Stockwerke macht, dann kann das schon etwas nützlich sein...
Man will ja nicht immer durchs ganze Haus rennen um was zu sagen
Ok, manchmal ist es schon nützlich.
28.02.2010, 13:44
28.02.2010, 14:14
28.02.2010, 14:59
Nö ich will nen Forum
01.03.2010, 17:08
Cache mal entleeren
und mach mal Rechtsklick auf ein Bild das nicht dargestellt (und wähle Bild anzeigen) wird und schau mal ob es auch in dem Pfad ist, wo es sein soll
und mach mal Rechtsklick auf ein Bild das nicht dargestellt (und wähle Bild anzeigen) wird und schau mal ob es auch in dem Pfad ist, wo es sein soll
04.04.2010, 10:31
(28.02.2010, 13:00)burbot Wrote: [ -> ](28.02.2010, 12:30)Yannici Wrote: [ -> ]Ich weiß auch nicht.
Aber wer eine LAN über mehrere Stockwerke macht, dann kann das schon etwas nützlich sein...
Man will ja nicht immer durchs ganze Haus rennen um was zu sagen
Ok, manchmal ist es schon nützlich.
Ich finde, da ist ein Chat viel nützlicher.... :/
08.07.2011, 20:40
Hallo,
ich weiß, der thread ist wirklich uralt, aber ich habe folgendes problem:
wenn ich es "installieren" will, kommt dieses :
Die datei sieht so aus :
woran liegts?
viele grüße
ich weiß, der thread ist wirklich uralt, aber ich habe folgendes problem:
wenn ich es "installieren" will, kommt dieses :
"Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in C:\Dokumente und Einstellungen\Nils\Desktop\dslan_v1.3\htdocs\forum\inc\class_core.php on line 18"
Die datei sieht so aus :
PHP Code:
<?php
/**
* MyBB 1.6
* Copyright 2010 MyBB Group, All Rights Reserved
*
* Website: http://mybb.com
* License: http://mybb.com/about/license
*
* $Id: class_core.php 5440 2011-04-15 10:18:35Z Tomm $
*/
class MyBB {
/**
* The friendly version number of MyBB we're running.
*
* @var string
*/
public $version = "1.6.3";
/**
* The version code of MyBB we're running.
*
* @var integer
*/
public $version_code = 1603;
/**
* The current working directory.
*
* @var string
*/
public $cwd = ".";
/**
* Input variables received from the outer world.
*
* @var array
*/
public $input = array();
/**
* Cookie variables received from the outer world.
*
* @var array
*/
public $cookies = array();
/**
* Information about the current user.
*
* @var array
*/
public $user = array();
/**
* Information about the current usergroup.
*
* @var array
*/
public $usergroup = array();
/**
* MyBB settings.
*
* @var array
*/
public $settings = array();
/**
* Whether or not magic quotes are enabled.
*
* @var unknown_type
*/
public $magicquotes = 0;
/**
* MyBB configuration.
*
* @var array
*/
public $config = array();
/**
* The request method that called this page.
*
* @var string.
*/
public $request_method = "";
/**
* Variables that need to be clean.
*
* @var array
*/
public $clean_variables = array(
"int" => array(
"tid", "pid", "uid",
"eid", "pmid", "fid",
"aid", "rid", "sid",
"vid", "cid", "bid",
"pid", "gid", "mid",
"wid", "lid", "iid",
"sid"),
"a-z" => array(
"sortby", "order"
)
);
/**
* Variables that are to be ignored from cleansing process
*
* @var array
*/
public $ignore_clean_variables = array();
/**
* Using built in shutdown functionality provided by register_shutdown_function for < PHP 5?
*/
public $use_shutdown = false;
/**
* Debug mode?
*/
public $debug_mode = false;
/**
* Constructor of class.
*
* @return MyBB
*/
function __construct()
{
// Set up MyBB
$protected = array("_GET", "_POST", "_SERVER", "_COOKIE", "_FILES", "_ENV", "GLOBALS");
foreach($protected as $var)
{
if(isset($_REQUEST[$var]) || isset($_FILES[$var]))
{
die("Hacking attempt");
}
}
if(defined("IGNORE_CLEAN_VARS"))
{
if(!is_array(IGNORE_CLEAN_VARS))
{
$this->ignore_clean_variables = array(IGNORE_CLEAN_VARS);
}
else
{
$this->ignore_clean_variables = IGNORE_CLEAN_VARS;
}
}
// Determine Magic Quotes Status (< PHP 6.0)
if(version_compare(PHP_VERSION, '6.0', '<'))
{
if(get_magic_quotes_gpc())
{
$this->magicquotes = 1;
$this->strip_slashes_array($_POST);
$this->strip_slashes_array($_GET);
$this->strip_slashes_array($_COOKIE);
}
set_magic_quotes_runtime(0);
@ini_set("magic_quotes_gpc", 0);
@ini_set("magic_quotes_runtime", 0);
}
// Determine input
$this->parse_incoming($_GET);
$this->parse_incoming($_POST);
if($_SERVER['REQUEST_METHOD'] == "POST")
{
$this->request_method = "post";
}
else if($_SERVER['REQUEST_METHOD'] == "GET")
{
$this->request_method = "get";
}
// If we've got register globals on, then kill them too
if(@ini_get("register_globals") == 1)
{
$this->unset_globals($_POST);
$this->unset_globals($_GET);
$this->unset_globals($_FILES);
$this->unset_globals($_COOKIE);
}
$this->clean_input();
if(@ini_get("safe_mode") == 1)
{
$this->safemode = true;
}
// Are we running in debug mode?
if(isset($mybb->input['debug']) || preg_match("#[?&]debug=1#", $_SERVER['REQUEST_URI']))
{
$this->debug_mode = true;
}
if(isset($this->input['action']) && $this->input['action'] == "mybb_logo")
{
require_once dirname(__FILE__)."/mybb_group.php";
output_logo();
}
if(isset($this->input['intcheck']) && $this->input['intcheck'] == 1)
{
die("MYBB");
}
}
/**
* Parses the incoming variables.
*
* @param array The array of incoming variables.
*/
function parse_incoming($array)
{
if(!is_array($array))
{
return;
}
foreach($array as $key => $val)
{
$this->input[$key] = $val;
}
}
/**
* Parses the incoming cookies
*
*/
function parse_cookies()
{
if(!is_array($_COOKIE))
{
return;
}
$prefix_length = strlen($this->settings['cookieprefix']);
foreach($_COOKIE as $key => $val)
{
if($prefix_length && substr($key, 0, $prefix_length) == $this->settings['cookieprefix'])
{
$key = substr($key, $prefix_length);
// Fixes conflicts with one board having a prefix and another that doesn't on the same domain
// Gives priority to our cookies over others (overwrites them)
if($this->cookies[$key])
{
unset($this->cookies[$key]);
}
}
if(!$this->cookies[$key])
{
$this->cookies[$key] = $val;
}
}
}
/**
* Strips slashes out of a given array.
*
* @param array The array to strip.
*/
function strip_slashes_array(&$array)
{
foreach($array as $key => $val)
{
if(is_array($array[$key]))
{
$this->strip_slashes_array($array[$key]);
}
else
{
$array[$key] = stripslashes($array[$key]);
}
}
}
/**
* Unsets globals from a specific array.
*
* @param array The array to unset from.
*/
function unset_globals($array)
{
if(!is_array($array))
{
return;
}
foreach(array_keys($array) as $key)
{
unset($GLOBALS[$key]);
unset($GLOBALS[$key]); // Double unset to circumvent the zend_hash_del_key_or_index hole in PHP <4.4.3 and <5.1.4
}
}
/**
* Cleans predefined input variables.
*
*/
function clean_input()
{
foreach($this->clean_variables as $type => $variables)
{
foreach($variables as $var)
{
// If this variable is in the ignored array, skip and move to next.
if(in_array($var, $this->ignore_clean_variables))
{
continue;
}
if(isset($this->input[$var]))
{
if($type == "int" && $this->input[$var] != "lastposter")
{
$this->input[$var] = intval($this->input[$var]);
}
else if($type == "a-z")
{
$this->input[$var] = preg_replace("#[^a-z\.\-_]#i", "", $this->input[$var]);
}
}
}
}
}
/**
* Triggers a generic error.
*
* @param string The error code.
*/
function trigger_generic_error($code)
{
global $error_handler;
switch($code)
{
case "cache_no_write":
$message = "The data cache directory (cache/) needs to exist and be writable by the web server. Change its permissions so that it is writable (777 on Unix based servers).";
$error_code = MYBB_CACHE_NO_WRITE;
break;
case "install_directory":
$message = "The install directory (install/) still exists on your server and is not locked. To access MyBB please either remove this directory or create an empty file in it called 'lock'.";
$error_code = MYBB_INSTALL_DIR_EXISTS;
break;
case "board_not_installed":
$message = "Your board has not yet been installed and configured. Please do so before attempting to browse it.";
$error_code = MYBB_NOT_INSTALLED;
break;
case "board_not_upgraded":
$message = "Your board has not yet been upgraded. Please do so before attempting to browse it.";
$error_code = MYBB_NOT_UPGRADED;
break;
case "sql_load_error":
$message = "MyBB was unable to load the SQL extension. Please contact the MyBB Group for support. <a href=\"http://mybb.com\">MyBB Website</a>";
$error_code = MYBB_SQL_LOAD_ERROR;
break;
case "eaccelerator_load_error":
$message = "eAccelerator needs to be configured with PHP to use the eAccelerator cache support.";
$error_code = MYBB_CACHEHANDLER_LOAD_ERROR;
break;
case "memcache_load_error":
$message = "Your server does not have memcache support enabled.";
$error_code = MYBB_CACHEHANDLER_LOAD_ERROR;
break;
case "xcache_load_error":
$message = "Xcache needs to be configured with PHP to use the Xcache cache support.";
$error_code = MYBB_CACHEHANDLER_LOAD_ERROR;
break;
default:
$message = "MyBB has experienced an internal error. Please contact the MyBB Group for support. <a href=\"http://mybb.com\">MyBB Website</a>";
$error_code = MYBB_GENERAL;
}
$error_handler->trigger($message, $error_code);
}
function __destruct()
{
// Run shutdown function
if(function_exists("run_shutdown"))
{
run_shutdown();
}
}
}
/**
* Do this here because the core is used on every MyBB page
*/
$grouppermignore = array("gid", "type", "title", "description", "namestyle", "usertitle", "stars", "starimage", "image");
$groupzerogreater = array("pmquota", "maxpmrecipients", "maxreputationsday", "attachquota", "maxemails", "maxwarningsday");
$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");
// These are fields in the usergroups table that are also forum permission specific.
$fpermfields = array(
'canview',
'canviewthreads',
'candlattachments',
'canpostthreads',
'canpostreplys',
'canpostattachments',
'canratethreads',
'caneditposts',
'candeleteposts',
'candeletethreads',
'caneditattachments',
'canpostpolls',
'canvotepolls',
'cansearch'
);
?>
woran liegts?
viele grüße
08.07.2011, 20:46
ich erklärs dir bei skype
08.07.2011, 21:29
ich würde dir woltolab burning board lite empfehlen, das ist easy zu installieren
08.07.2011, 23:19
@ON21: Dein Problem geklärt?
Ich weiß woran es liegt.
Ich weiß woran es liegt.
08.07.2011, 23:43
nein,leider nicht. kannst mir in einer pn sagen, wodran es liegt?
und an meinen führer, mal sehen. morgen.
und an meinen führer, mal sehen. morgen.
09.07.2011, 09:37
es liegt an dieser datei :class_core.php
in Zeile 18, was steht da?
in Zeile 18, was steht da?
09.07.2011, 10:26
Kannste ja oben sehen, er hat die ganze Datei gepostet.
Is das da mit public irgendwas.
Is das da mit public irgendwas.
09.07.2011, 10:33
aso hab ich nicht direkt gesehen
kann es sein, dass hier:
class MyBB {
/**
* The friendly version number of MyBB we're running.
*
* @var string
*/
public $version = "1.6.3";
ne klammer geöffnet wurde und nicht geschlossen worden ist?
kann es sein, dass hier:
class MyBB {
/**
* The friendly version number of MyBB we're running.
*
* @var string
*/
public $version = "1.6.3";
ne klammer geöffnet wurde und nicht geschlossen worden ist?
09.07.2011, 11:27
stimmt, eine klammer die geschlossen ist, fehlt, aber wo muss diese hin?
09.07.2011, 12:14
Bei mir funktioniert die Datei einwandfrei.
Errorcheck:
Errorcheck:
Quote:No syntax errors detected in /Users/marc/Desktop/test.php
09.07.2011, 14:12
(09.07.2011, 10:33)Dsaddicted Wrote: [ -> ]aso hab ich nicht direkt gesehen
kann es sein, dass hier:
class MyBB {
/**
* The friendly version number of MyBB we're running.
*
* @var string
*/
public $version = "1.6.3";
ne klammer geöffnet wurde und nicht geschlossen worden ist?
habe grade nocheinmal nachgesehen, die klmmer wird in Zeile 396 geschlossen.
09.07.2011, 14:15
der fehler soll ja in der zeile
public $version = "1.6.3";
liegen, aber da sehe ich nichts^^
@jonsn und snake:
wie behebt man denn den fehler?
public $version = "1.6.3";
liegen, aber da sehe ich nichts^^
@jonsn und snake:
wie behebt man denn den fehler?