Noch kein Mitglied? Hier registrieren, um das Forum zu nutzen, News einzureichen, zu kommentieren oder Seiten in der Galerie einzustellen.
Vanilla 1.1.2 Forum von Lussumo. Weitere Informationen: Dokumentation, Community.
1 bis 11 von 11
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /var/www/web625/html/_LSO/manager/includes/protect.inc.php on line 36
if (!function_exists('modx_sanitize_gpc')) {
function modx_sanitize_gpc(& $target, $modxtags, $limit= 3) {
foreach ($target as $key => $value) {
if (is_array($value) && $limit > 0) {
modx_sanitize_gpc($value, $modxtags, $limit - 1);
} else {
$target[$key] = preg_replace($modxtags, "", $value);
}
bei mir Zeile 36 }
return $target;
}
}
foreach ($target as $key => &$value) {
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /var/www/web625/html/_LSO/manager/includes/protect.inc.php on line 30
foreach ($target as $key => &$value) {
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /var/www/web625/html/_LSO/manager/includes/protect.inc.php on line 36
Die Installation liegt unterhalb einer anderen auf dem Webspace. Im htlm-Ordner des Webspace liegt eine MODx-Installation und dazu ein Ordner _LSO, in dem ich die neue Installation ausgeführt habe.
Geht das überhaupt oder liegt es daran, dass ich nicht auf die Seite mit dem Manager-Login komme?
I compared the protect.inc.php files from 1.0.5 and 1.0.6 and noticed that line 36 in the file from 1.0.6 reads
foreach ($target as $key => &$value) {
where line 36 from the 1.0.5 file reads
foreach ($target as $key => $value) {
I edited out the ampersand in the 1.0.6 file and it now appears to be working. I don't know much about PHP however, so I would really appreciate if someone could reassure me that I have done the right thing, or tell me if it's going to effect the security of my site?
1 bis 11 von 11