示例#1
0
            } else {
                // mise a jour du pass dans la base
                $db->update("{$dbprefix}joueurs");
                $db->set("passwd = md5('{$nv_pass}')");
                $db->where("id = {$id}");
                $db->exec();
                show_notice(str_replace($array1, $array2, $strPasswordMessageAdmin));
                echo "<br><input type=button class=action value=\"{$strOK}\" onclick=back()><br>";
            }
        } else {
            // mise a jour du pass dans la base direct
            $db->update("{$dbprefix}joueurs");
            $db->set("passwd = md5('{$nv_pass}')");
            $db->where("id = {$id}");
            $db->exec();
            show_notice(str_replace($array1, $array2, $strPasswordMessageAdmin));
            echo "<br><input type=button class=action value=\"{$strOK}\" onclick=back()><br>";
        }
    }
} elseif ($op == "inscription") {
    $isntafile_usesql = "no";
    /*** verification securite ***/
    if (!$config['inscription_joueur']) {
        js_goto("?page=index");
    }
    if (!isset($ok) && $config['decharge']) {
        echo "<p class=title>.:: {$strConditionsGenerales} ::.</p>";
        $decharge = $config['decharge'];
        //
        $decharge = str_replace("..", "", $decharge);
        if ($isntafile_usesql == "no" && file_exists("./include/html/reglements/{$s_lang}/{$decharge}") && !is_dir("./include/html/reglements/{$s_lang}/{$decharge}")) {
示例#2
0
            $to = $email_to;
            $from = $email_from;
            $subject = $strNewsEnvoiSubject;
            $subject = str_replace($array1, $array2, $subject);
            $body = $strNewsEnvoiMessage;
            $body = str_replace($array1, $array2, $body);
            $mail = new phpTMailer();
            $mail->From = $from;
            $mail->FromName = "";
            $mail->AddAddress($to);
            $mail->Subject = $subject;
            $mail->Body = $body;
            if (!$mail->Send()) {
                show_erreur("{$strErreurMessageEnvoi}<br><br>{$mail->ErrorInfo}");
            } else {
                show_notice(str_replace($array1, $array2, $strNewsEnvoiConfirm));
                echo "<br><form method=post action='?page=news'><input type=submit class=action value=\"{$strOK}\"></form>";
            }
        } else {
            show_erreur($strPasDeFonctionMail);
        }
    }
} else {
    if ($ad == 'wr') {
        /*** Ajout de news ***/
        if ($grade['a'] == 'a' || $grade['b'] == 'b' || $grade['n'] == 'n') {
            echo "<form method=post name=\"formulaire\" action=?page=news&op=add_news>";
            echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure2><tr><td>";
            echo "<table cellspacing=1 cellpadding=0 border=0>";
            echo "<tr><td class=headerfiche>{$strAjouterNews}</td></tr>";
            echo "<tr><td>";
示例#3
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: demandes_ajax.inc.php,v 1.5 2010-02-23 16:27:22 kantin Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
require_once "{$class_path}/mono_display.class.php";
switch ($quoifaire) {
    case 'show_notice':
        show_notice($idnotice);
        break;
}
/*
 * Affichage de la notice
 */
function show_notice($idnotice)
{
    $isbd = new mono_display($idnotice, 6, '', 1, '', '', '', 1);
    $html = "<div class='row' style='padding-top: 8px;'>" . $isbd->aff_statut . "<h1 style='display: inline;'>" . $isbd->header . "</h1></div>";
    $html .= "<div class='row'>" . $isbd->isbd . "</div>";
    print ajax_http_send_response($html);
}
示例#4
0
                show_erreur($strPasDeFonctionMail);
            }
        }
        if (isset($messagerie)) {
            $date = time();
            for ($i = 0; $i < count($tab_destinataires); $i++) {
                $destinataire = $tab_destinataires[$i];
                $db->insert("{$dbprefix}messages (emetteur,destinataire,titre,message,date)");
                $db->values("'{$s_joueur}','{$destinataire}','{$titre}','{$contenu}','{$date}'");
                $db->exec();
            }
        }
        if ($erreur == 1) {
            show_erreur("{$strErreurMessageEnvoi}<br><br>{$mail->ErrorInfo}");
        } else {
            show_notice($strMessageEnvoi);
            echo "<br><form method=post action='?page=mailing'><input type=submit class=action value=\"{$strOK}\"></form>";
        }
    }
} else {
    ?>
<script>

// -------------------------------------------------------------------
// sortSelect(select_object)
//   Pass this function a SELECT object and the options will be sorted
//   by their text (display) values
// -------------------------------------------------------------------
function sortSelect(obj) {
	var o = new Array();
	if (obj.options==null) { return; }
                        }
                    } else {
                        $msg .= "{$strMatch} #{$id} : {$strErreurMatchABManquant}<br>";
                    }
                }
            } else {
                $msg .= "{$strMatch} #{$id} : {$strErreurMancheActive}<br>";
            }
        } else {
            $msg .= "{$strMatch} #{$id} : {$strErreurStatusDemarre}<br>";
        }
    }
    if ($msg) {
        $db->winlog($msg, LOG_ERROR);
    } else {
        show_notice($strRecupOk);
    }
    if ($opold == 'poules') {
        js_goto("?page=matchs_poules&op=admin&x={$x}");
    } elseif ($opold == 'finales') {
        js_goto("?page=matchs_finales&op=admin&x={$x}");
    } elseif ($opold == 'liste') {
        js_goto("?page=matchs_liste&op=admin&status={$status}");
    }
} elseif ($op == "autorecup") {
    /*** test de la session ***/
    if (!is_numeric($tournois) || !is_numeric($s_joueur)) {
        echo '<script LANGUAGE="JavaScript">fermer_fenetre();</script>';
    }
    $nom_tournois = nom_tournois($tournois);
    echo "<table cellspacing=0 cellspacing=2 border=0>";