[Forum] Petit script MyGifts
Bonjour,
J'utilise depuis 2 ou 3 ans un script php MyGifts
ce script n'a pas été mis à jour depuis 2005.
les prerequis etaient :
PREREQUIS
PHP >= 4.2.3
mySQL 3 ou 4.x (facultatif si PHP5)
Cependant je viens de migrer mon serveur sur ubuntu 12.10 et le script ne marche plus peut-être (surment) dû à la version de php.
quelqu'un peut t'il m'aider ?
j'ai une erreur sur la page d'index :
Citation:
Parse error: syntax error, unexpected T_GOTO, expecting T_STRING or T_VARIABLE or '$' in /var/www/html/myGifts/index.php on line 74
cette ligne 74 etant : Controler::goto($nextAction);---------------copie du bloc entier -------------------
Code:
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
| if ($method != "display" && $loginOK) {
if (!is_array($object))
$objectArr = array($object);
else
$objectArr = $object;
$paramsError = array();
foreach ($objectArr as $object)
if (empty($error)) {
$error = Controler::callAction($object, $handler);
if (!empty($error))
$paramsError = array_merge($paramsError, Controler::getParamNames($handler, get_class($object)));
}
$logger->logMessage($logger->LOG_INFO, "nextAction avant = $nextAction/".empty($nextAction));
if (empty($nextAction))
$nextAction = Controler::nextAction($handler);
$logger->logMessage($logger->LOG_INFO, "nextAction final = $nextAction");
if (!empty($nextAction) && empty($error)) {
if ($nextAction == "close_refresh" && !defined("DEBUG")) {
print "<script type=\"text/javascript\"> window.opener.location.href = window.opener.location.href </script>";
print "<script type=\"text/javascript\"> window.close() </script>";
} else
Controler::goto($nextAction);
} else
Controler::gotoPrevious($error, $paramsError);
} |
-------------------------------------------------------------------------------------
Merci pour votre aide .