Beispiel #1
0
function displayErrors()
{
    global $lang_title_errors;
    $sizeAr = sizeof($_SESSION["errors"]);
    if ($sizeAr > 0) {
        $width = getMaxStrLen($_SESSION["errors"]) * 10 + 30;
        $height = sizeof($_SESSION["errors"]) * 25;
        $title = $lang_title_errors;
        displayPopupOpen(1, $width, $height, 1, $title);
        $errors = array_reverse($_SESSION["errors"]);
        foreach ($errors as $error) {
            echo $error . "<br>";
        }
        $vars = "&ftpAction=openFolder&resetErrorArray=1";
        displayPopupClose(1, $vars, 0);
    }
}
Beispiel #2
0
function displayErrors()
{
    global $lang_title_errors;
    $sizeAr = sizeof($_SESSION["errors"]);
    if ($sizeAr > 0) {
        $width = getMaxStrLen($_SESSION["errors"]) * 10 + 30;
        $height = sizeof($_SESSION["errors"]) * 25;
        $title = $lang_title_errors;
        displayPopupOpen(1, $width, $height, 1, $title);
        $errors = array_reverse($_SESSION["errors"]);
        foreach ($errors as $error) {
            $error = str_replace("[a]", "<a href='https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K7PX3FMNE3XQ6' target='paypal'>", $error);
            $error = str_replace("[/a]", "</a>", $error);
            echo $error . "<br>";
        }
        $vars = "&ftpAction=openFolder&resetErrorArray=1";
        displayPopupClose(1, $vars, 0);
    }
}