So… hab mich der Sache ma angenommen, also… eines kann ich schon mal sagen… bplaced ist schuld Und die… naja… merkwürdige Programmierung bei Typo^^ Ist halt nen riesengroßer Typo dat Ding
@miro
deute ich PHP_SAPI=bpmd-cgi richtig das bp bplaced heißen soll? Genau das ist das Problem mit Typo^^ Würde es einfach nur cgi heißen würd es soweit ich seh besser laufen bzw. vielleicht sogar komplett^^
allerdings wundert mich das Typo son gräßliges Script zur Pfad Erkennung nutzt anstatt einfach nur FILE bzw. $_SERVER[‘SCRIPT_FILENAME’]^^ Kp welche Hoster den anderen kram brauchen [size=85](eventuell uralt PHP Versionen?)[/size]… eigl. sollte das keiner.
Iwie ist Typo3 insgesamt murks^^
Hier mal das Typo3 typo fix Script, damits niemand händisch machen muss… sofern das Script funzt Ansonsten sagt es was gemacht werden muss, wären 12 änderungen in 9 Dateien.
Wenn möglich nutzt den Anhang, da das Zeilenending sehr wichtig ist… es sollte das UNIX ending sein und nicht Windoze seins oder gar Mac^^ Daher entweder nen gescheiten Editor nutzen und aufs ending achten, gar nicht erst Windoze oder einfach den Anhang
[attachment=0]typo3typofix.7z[/attachment][code]<?php
/*
FILES:
index.php@53
typo3/install/index.php@49
typo3/sysext/install/mod/class.tx_install_ajax.php@45
typo3/sysext/cms/tslib/index_ts.php@63
typo3/sysext/cms/tslib/showpic.php@69
typo3/init.php@86
typo3/init.php@127
typo3/thumbs.php@45
t3lib/thumbs.php@71
t3lib/class.t3lib_div.php@3695
t3lib/class.t3lib_div.php@3706
misc/phpcheck/incfile.php@26
*/
// header(‘Content-Type: text/plain’);print_r($_SERVER);exit;
$typos = array(
//array(‘file’,000,‘search’,‘replace;//fix000’),
array(‘index.php’,53,‘define(‘PATH_thisScript’,str_replace(’,‘define(‘PATH_thisScript’,$_SERVER[‘SCRIPT_FILENAME’]);//fix53’),
array(‘typo3/install/index.php’,49,’$PATH_thisScript = str_replace(’,’$PATH_thisScript = $_SERVER[‘SCRIPT_FILENAME’];//fix49’),
array(‘typo3/sysext/install/mod/class.tx_install_ajax.php’,45,‘if (!defined(‘PATH_thisScript’)) define(‘PATH_thisScript’,str_replace(’,‘if (!defined(‘PATH_thisScript’)) define(‘PATH_thisScript’,$_SERVER[‘SCRIPT_FILENAME’]);//fix45’),
array(‘typo3/sysext/cms/tslib/index_ts.php’,63,‘if (!defined(‘PATH_thisScript’)) define(‘PATH_thisScript’,str_replace(’,‘if (!defined(‘PATH_thisScript’)) define(‘PATH_thisScript’,$_SERVER[‘SCRIPT_FILENAME’]);//fix63’),
array(‘typo3/sysext/cms/tslib/showpic.php’,69,‘if (!defined(‘PATH_thisScript’)) define(‘PATH_thisScript’,str_replace(’,‘if (!defined(‘PATH_thisScript’)) define(‘PATH_thisScript’,$_SERVER[‘SCRIPT_FILENAME’]);//fix69’),
array(‘typo3/thumbs.php’,45,‘define(‘PATH_thisScript’,str_replace(’,‘define(‘PATH_thisScript’,$_SERVER[‘SCRIPT_FILENAME’]);//fix45’),
array(‘typo3/init.php’,86,‘define(‘PATH_thisScript’,str_replace(’,‘define(‘PATH_thisScript’,$_SERVER[‘SCRIPT_FILENAME’]);//fix86’),
array(‘typo3/init.php’,127,’$script_name = (PHP_SAPI==‘cgi’||PHP_SAPI==’,’$script_name = $_SERVER[‘SCRIPT_NAME’];//fix127’),
array(‘t3lib/thumbs.php’,71,‘define(‘PATH_thisScript’,str_replace(’,‘define(‘PATH_thisScript’,$_SERVER[‘SCRIPT_FILENAME’]);//fix71’),
array(‘t3lib/class.t3lib_div.php’,2867,’$ctx = stream_context_create(array(’,‘if(!function_exists(‘stream_context_create’)) $ctx = NULL;else//fix2867’."\n".’ $ctx = stream_context_create(array(’),
array(‘t3lib/class.t3lib_div.php’,3695,’$retVal = (PHP_SAPI==‘cgi’||PHP_SAPI==’,’$retVal = $_SERVER[‘SCRIPT_NAME’];//fix3695’),
array(‘t3lib/class.t3lib_div.php’,3706,’$retVal = str_replace(’,’$retVal = $_SERVER[‘SCRIPT_FILENAME’];//fix3706’),
array(‘misc/phpcheck/incfile.php’,26,‘define(“PATH_thisScript”, str_replace(’,‘define(‘PATH_thisScript’,$_SERVER[‘SCRIPT_FILENAME’]);//fix26’)
);
?>
Typo3 typo fixer (made for bplaced/Square7)
/* */
Typo3 typo fixer
trying to fix Typo typos / bad code
<?php
$error = false;
if(is_dir('./typo3'))
{
foreach($typos as $key=>$value)
{
$chmod = 0;
echo 'File: '.$value[0].'@'.$value[1].': ';
if(!is_file('./'.$value[0]))
{
echo 'ErRoR: file not found, please finish uploading Typo first!
';
$error = true;
continue;
}
elseif(!is_readable('./'.$value[0]))
{
echo 'ErRoR: file isn\'t readable so you have to change it! (me and Typo3 needs it)
';
$error = true;
continue;
}
elseif(!is_writable('./'.$value[0]))
{
$chmod = fileperms('./'.$value[0])&511;
if(!@chmod('./'.$value[0],0777))
{
echo 'ErRoR: can\'t write to file, please fix it by your own
Search for: "'.$value[2].'" (maybe line '.$value[1].') and replace the entire line with "'.$value[3].'"
';
$error = true;
continue;
}
}
$file_content = file_get_contents('./'.$value[0]);
if($file_content)
{
if(strpos($file_content,'//fix'.$value[1]) !== false)
{
/*echo 'Warning: it seems like it\'s already fixed^^ Maybe you should check it by your own
Search for something like: "'.$value[2].'" (maybe line '.$value[1].') and replace the entire line with "'.$value[3].'" if it isn\'t already
';//*/
echo 'already fixed
';
}
else
{
$pos1 = strpos($file_content,$value[2]);
if($pos1 !== false)
{
$pos2 = strpos($file_content,'
',$pos1);
$file_content = substr($file_content,0,$pos1).$value[3].substr($file_content,$pos2);
$file = fopen('./'.$value[0],'w');
fwrite($file,$file_content);
fclose($file);
echo 'ok
';
}
else
{
echo 'ErRoR: can\'t find what i need to fix this file, please try it by your own
Search for something like: "'.$value[2].'" (maybe line '.$value[1].') and replace the entire line with "'.$value[3].'"
';
$error = true;
}
}
}
else
{
echo 'ErRoR: can\'t read file, please fix it by your own
Search for: "'.$value[2].'" (maybe line '.$value[1].') and replace the entire line with "'.$value[3].'"
';
$error = true;
}
if($chmod > 0)
{
chmod('./'.$value[0],$chmod);
}
}
}
else
{
echo 'ErRoR: This script must be executed inside Typo3\'s directory!
';
}
if(!$error)
{
echo 'Congratulations, you should now be able to enjoy Typo3 ;)
';
}else{
echo 'Ok... there was something wrong... please check and fix it. Maybe Google can help you ;)
';
}
?>
[/code]
[u][i]Edit:[/i][/u]
eine kleinigkeit geändert.. betrifft aber eh nur Windoze Server daher für [color=#0B5FB4]b[/color]placed irrelevant.
Edit2:
bissle mehr geändert… bzw. lief die 1. Version mehr oder weniger [size=85](nach install mitm IE da dieser scheinbar nen Bug inner Cookie Verwaltung hat, dieser aber dazu beitrug das die Install überhaupt lief^^)[/size]
Jetzt sollte fürs 1. alles gehen^^
Edit3 (13.06.10 18:56):
stream_context_create Fehler im Ext Manager behoben.
Extensions können manuell hochgeladen/installiert werden, jedoch sehe ich bei Sprachen keinen weg bzw. soweit ich das sehe sind diese keine Extensions sondern müssen via Script geladen werden. Daher werdet ihr solange ihr nicht auf Square7 hostet [size=85]bzw. bplaced nicht schon die Sockets ermöglicht[/size] mit dem englischen leben müssen. Ich nutz es eh immer wenn ich kann