ist gerade angekommen
Problem mit pkinc/main.php bei 1.6.5
Hallo,
ich habe pksm unter 1.6.5 nach der Anleitung installiert.
Dann habe ich die pkinc/main.php wie beschrieben ergänzt und pkinc/main.php wieder hochgeladen, nur leider ging ab dann meine Seite nicht mehr (Seite kann nicht angezeigt werden).
Woran könnte das liegen?
Habe den Vorgang mehrmals wiederholt, aber immer das gleiche.
ich habe pksm unter 1.6.5 nach der Anleitung installiert.
Dann habe ich die pkinc/main.php wie beschrieben ergänzt und pkinc/main.php wieder hochgeladen, nur leider ging ab dann meine Seite nicht mehr (Seite kann nicht angezeigt werden).
Woran könnte das liegen?
Habe den Vorgang mehrmals wiederholt, aber immer das gleiche.
Oder die Installation wurde nicht durch geführt.
Welche Fehlermeldung hast Du denn?
Welche Fehlermeldung hast Du denn?
Es geht nicht darum zu haben was man will, sondern zu schätzen was man hat!
Blutrausch HP
Mauern sind auch nur Steine & Wassertropen können auch mal Wassermengen werden!
Blutrausch HP
Mauern sind auch nur Steine & Wassertropen können auch mal Wassermengen werden!
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Muetze« (25. August 2009, 15:08)
ist gerade angekommen
Habs schon darüber eingefügt.
Die Installation konnte ich durchführen. Auch zur Administration konnte ich mich einloggen. Danach hab ich dann main.php geändert und dann ging nix mehr.
Dann war die gesamte Seite nicht mehr da. Alles war weiß und es kam die Meldung "Seite kann nicht angezeigt werden".
Hab jetzt die main.php wieder zurück verändert und alles geht wieder nur eben pksm nicht.
Habe grad das hier gefunden:
1.6.4 pkinc/main.php
Die Installation konnte ich durchführen. Auch zur Administration konnte ich mich einloggen. Danach hab ich dann main.php geändert und dann ging nix mehr.
Dann war die gesamte Seite nicht mehr da. Alles war weiß und es kam die Meldung "Seite kann nicht angezeigt werden".
Hab jetzt die main.php wieder zurück verändert und alles geht wieder nur eben pksm nicht.
Habe grad das hier gefunden:
1.6.4 pkinc/main.php
So lange die Installation nicht durch geführt wurde, weil sie es nicht konnte, solltest Du es auch nicht in die main.php nichts rein editieren. Jetzt möchte die main.php auf was zu greifen was nicht da ist (weil die Installation nicht lief), also ist doch klar das die Seite nicht mehr geht.
Bearbeite die main.php erst wenn Du auch die Installation erfolgreich durch geführt hast.
Bei mir gab es auch Probleme & ich habehier die Lösung gefunden.
Bearbeite die main.php erst wenn Du auch die Installation erfolgreich durch geführt hast.
Bei mir gab es auch Probleme & ich habehier die Lösung gefunden.
Es geht nicht darum zu haben was man will, sondern zu schätzen was man hat!
Blutrausch HP
Mauern sind auch nur Steine & Wassertropen können auch mal Wassermengen werden!
Blutrausch HP
Mauern sind auch nur Steine & Wassertropen können auch mal Wassermengen werden!
ist gerade angekommen
@ Muetze:
Hab main.php erst nach der Installation geändert. Die Installation selbst hat ja geklappt, konnte mich auch einloggen.
Hab main.php erst nach der Installation geändert. Die Installation selbst hat ja geklappt, konnte mich auch einloggen.
Die Installation konnte ich durchführen. Auch zur Administration konnte ich mich einloggen. Danach hab ich dann main.php geändert und dann ging nix mehr.
ist gerade angekommen
Sorry für die späte Antwort...
Hier ist die main.php, Link zur Seite kommt per PM.
Hier ist die main.php, Link zur Seite kommt per PM.
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 |
<?php
# PHPKIT WCMS | Web Content Management System
#
#
# YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS
# FILE AND/OR TO REMOVE THIS INFORMATION
#
# SIE SIND NICHT BERECHTIGT, UNRECHTMÄSSIGE KOPIEN DIESER
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN
#
# This file / the PHPKIT software is no freeware! For further
# information please visit our website or contact us via email:
#
# Diese Datei / die PHPKIT Software ist keine Freeware! Für weitere
# Informationen besuchen Sie bitte unsere Website oder kontaktieren uns per E-Mail:
#
# email : info@phpkit.com
# website : http://www.phpkit.com
# licence : http://www.phpkit.com/licence
# copyright : Copyright (c) 2002-2009 mxbyte gbr | http://www.mxbyte.com
#Compares PHP version against our required PHP version
if(!version_compare(PHP_VERSION,'5.2.0','>='))
{
die('PHPKIT WCMS requires PHP 5.2.0 or higher to run. You are currently running PHP '.PHP_VERSION .'. For further information check <a href="phpkit.com.'">http://www.phpkit.com">phpkit.com</a>.');
}
if(!defined('pkFRONTEND'))
{
die('Direct access to this location is not permitted.');
}
if(!in_array(pkFRONTEND,array('admin','public','setup','captcha','style','rsimg')))
{
die('Direct access to this location is not permitted.');
}
#set errror_reporting
@error_reporting(0);
#DOS blocker
$blockeragents = array('libwww-perl');
$blockerqueries = array('=http://','=ftp://','=https://','=ftps://','/errors.php');
$agent = strtolower(getenv('HTTP_USER_AGENT'));
$query = str_replace(' ','',strtolower(rawurldecode(getenv('QUERY_STRING'))));
if(str_replace($blockeragents,'#',$agent)!=$agent || str_replace($blockerqueries,'#',$query)!=$query)
{
header('HTTP/1.1 403 Forbidden');
die('Request to this website terminated!');
}
unset($blockers,$agent,$query,$checkagent,$checkquery);
#END DOS blocker
#set some constants
define('pkMICROTIME', microtime());
define('pkTIME', substr(pkMICROTIME,11,10));
define('pkTIMETODAY', mktime(0,0,0,date('m',pkTIME),date('d',pkTIME),date('Y',pkTIME)));
define('pkCAPTCHAVARNAME', 'pkCaptcha');
define('pkCAPTCHAVERIFIED', 'pkCaptchaVerified');
define('pkCHMODDIR', 0755);
define('pkCHMODDIR_WRITE', 0777);
define('pkCHMODFILE', 0644);
define('pkDEVMODE', false);
define('pkEXT', '.php'); #standard php file extension
define('pkEXTTPL', '.htm');
define('pkPHPKITSID', @ini_get('session.auto_start') ? @ini_get('session.name') : 'PHPKITSID');
define('pkPHPVERSION', str_replace('.','',phpversion()));
#directory and path separator
define('pkDS', DIRECTORY_SEPARATOR);
define('pkPS', PATH_SEPARATOR);
#define serval needed directories-paths
define('pkDIRINC', pkDIRROOT.'pkinc'.pkDS); #base source directory
define('pkDIRADMIN', pkDIRINC.'admin'.pkDS); #source directory - admin scripts
define('pkDIRADMINTPL', pkDIRINC.'admintpl'.pkDS); #admin tpl directory
define('pkDIRCFG', pkDIRINC.'cfg'.pkDS); #source directory - configuration-/raw-datafiles
define('pkDIRCLASS', pkDIRINC.'class'.pkDS); #source directory - classes
define('pkDIRETC', pkDIRINC.'etc'.pkDS); #passwords
define('pkDIRFUNC', pkDIRINC.'func'.pkDS); #source directory - functions
define('pkDIRHTML', pkDIRINC.'html'.pkDS); #source directory - html bits
define('pkDIRLANG', pkDIRINC.'lang'.pkDS); #source directory - language packs
define('pkDIRPUBLIC', pkDIRINC.'public'.pkDS); #source directory - public scripts
define('pkDIRPUBLICINC', pkDIRINC.'publicinc'.pkDS); #source directory - public include files
define('pkDIRPUBLICTPL', pkDIRINC.'publictpl'.pkDS); #public tpl directory
define('pkDIRREP', pkDIRINC.'rep'.pkDS); #repository
define('pkDIRTEMP', pkDIRINC.'temp'.pkDS); #temp dir
#gdfx subdirectories
define('pkDIRGDFX', pkDIRREP.'gdfx'.pkDS); #source directory - fx raw file - used by gdlib
define('pkDIRGDFONTS', pkDIRGDFX.'fonts'.pkDS); #source directory - fx raw file - used by gdlib
define('pkDIRGDCAPTCHA', pkDIRGDFX.'captcha'.pkDS); #source directory - fx raw file - used by gdlib
#web paths
define('pkDIRWWWROOT', pkFRONTEND=='admin' ? './../' : './'); #web-root used in links
define('pkDIRWWWADMIN', pkDIRWWWROOT.'pk/'); #web dir admin directory
define('pkWWWSELF', pkREQUESTEDFILE);
#files
define('pkFILESQL', pkDIRETC.'sql.php'); #dbaccess
//---> load pkSecurityModule <---\
define('smInScript',true);
include(pkDIRWWWROOT."pksm/main.php");
//---> / load pkSecurityModule <---\
#check register_globals and unset everything if nessesary
if(@ini_get('register_globals'))
{
#_REQUEST, _GET, _POST, _COOKE
foreach($_REQUEST as $var=>$dump)
{
unset($$var);
}
}
if(!@ini_get('session.use_only_cookies'))
{
if(@ini_set('session.use_only_cookies','1'))
{
if(@ini_get('session.use_trans_sid'))
{
@ini_set('session.use_trans_sid','0'); #PHP 5 or higher
#@ini_set('url_rewriter.tags', ''); #before PHP 5
}
}
}
#classes
$ENV=$SESSION=$BBCODE=$FORUM=$SQL=NULL;
#define global variables
$lang = array();
$LANG = &$lang;
$pkDOCMETA = array();
$pkHTMLBITS = array();
$pkTPLHASH = array();
$pkCFGHASH = array();
$pkFORUMNEWTHREADS = array();
$pkFORUMREADEDTHREADS = array();
$pkNAVIGATIONHIDE['left'] = 0;
$pkNAVIGATIONHIDE['right'] = 0;
$ADMINACCESS = $fx = $event = NULL;
$phpkit_status = array();
$forumcat_info_array = array();
$forumrank_info_array = array();
$contentcat_info_array = array();
$smilie_cache = array();
$global_mods = '';
$mod_cache = '';
require_once(pkDIRINC.'version'.pkEXT);
require_once(pkDIRFUNC.'default'.pkEXT);
pkLoadClass($ENV,'env');
#load the sql configuration file from pkinc/etc/
if(pkDEVMODE)
{
include_once(pkFILESQL);
}
else
{
@include_once(pkFILESQL);
}
if(pkFRONTEND=='captcha' || pkFRONTEND=='rsimg')
{
return require_once(pkDIRINC.'media'.pkEXT);
}
require_once(pkDIRFUNC.(pkFRONTEND=='public' || pkFRONTEND=='style' ? 'public' : 'admin').pkEXT);
if((!defined('pkPHPKIT_INSTALLED') || !pkPHPKIT_INSTALLED) && pkFRONTEND!='setup')
{
header('Location: '.pkDIRWWWROOT.'setup'.pkEXT);
exit;
}
pkLoadClass($SQL,'sql');
#$DB = $SQL; #you may re-enable this to support not updated scripts
switch(pkFRONTEND)
{
case 'setup' :
return;
case 'style' :
require_once(pkDIRINC.'media'.pkEXT);
return;
}
if(!$SQL->connect())
{
pkLoadFunc('except');
pkSiteException();
}
#load config
$config = array();
$query = $SQL->query("SELECT id,value FROM ".pkSQLTAB_CONFIG);
while(list($key,$value) = $SQL->fetch_row($query))
{
$config[$key] = @unserialize($value);
}
if(empty($config))
{
pkLoadFunc('except');
pkSiteException();
}
#force update
if(pkGetConfig('version_number') != pkPHPKIT_VERSION)
{
header('Location: '.pkDIRWWWROOT.'setup'.pkEXT);
exit;
}
$config['cookie_path'] = empty($config['cookie_path']) ? '/' : $config['cookie_path'];
$config['comment_imageresize'] =
$config['guestbook_imageresize'] =
$config['forum_imageresize'] = $config['text_imgresize'];
$config['comment_textwrap'] =
$config['guestbook_textwrap'] =
$config['forum_textwrap'] = $config['user_textwrap'];
#some more configuration values
$config['time_zone'] = 'Europe/London'; #set the time zone fix to GMT 0 to rely on - GMT +0
$config['cookie_secure'] = 0;
$config['template_dir'] = pkDIRINC.pkFRONTEND.'tpl/';
$config['image_archive'] = 'content/images';
$config['smilie_dir'] = 'images/smilies';
$config['move_logout'] = 'path=start'; #redirect on logout
$config['move_login'] = 'path=start'; #redirect on login
$config['session_expire_user'] = 1800; #30min
$config['session_expire_admin'] = 90; #90sec its enough to keep the session alive cause the forced refresh in the adminarea
$config['session_expire_guest'] = 600; #10min
$config['search_min_length'] = 3; #min search string length
$config['search_max'] = 500; #max results displayed
$config['time_refresh'] = 10;
$config['forum_threadtitle_cut'] = 25;
$config['forum_threadautor_cut'] = 10;
$config['username_cut'] = 18;
$config['sidelinkfull_pages'] = 3;
$config['nb_community_box'] = 2; #nb community 1=classic 2=login-form
$config['nb_newthreads_scut'] = 0; #stringcut
$config['nb_newthreads_break'] = 5; #limit
$config['nb_curthreads_scut'] = 0; #stringcut
$config['nb_curthreads_break'] = 5; #limit
$config['nb_randarticle_cur'] = 150; #max chars
$config['nb_newarticle_cur'] = 150; #maxchars
#use
date_default_timezone_set(pkGetConfig('time_zone'));
pkLoadLang(); $config['meta_generator']=strrev('9002-2002 thgirypoc RbG etybxm - metsyS tnemganaM tnetnoC beW - SMCW TIKPHP');
require_once(pkDIRCLASS.'session'.pkEXT);
require_once(pkDIRCLASS.'session'.pkFRONTEND.pkEXT);
require_once(pkDIRINC.pkFRONTEND.pkEXT);
?>
|
Ähnliche Themen
-
pkSM Support »-
1.6.4 pkinc/main.php
(26. Oktober 2008, 07:16)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
PHPKIT 1.6.4 pl2 Datenbankverbindung
(6. Juni 2008, 15:17)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Plötzlich neuer Ordner auf dem Space
(29. Mai 2008, 08:21)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
habe mich ausgesperrt...
(3. März 2008, 20:18)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Ärger mit HackBlockV2 und danach auch mit dem Vorgänger
(15. Januar 2008, 18:56)



