Exemple #1
0
$autmodpseudo  = false; 
$afflistdelauto = false; 
$autorisationsign  = true; 
$bbcodesign = true; 
$ipaff  = false; 
$affreprapide  = false; 

$lmax = 150; 
$hmax = 150; 
$pmax = 20480; 
$tmpfreepost = 15; 

$membreparpage = 25; 
$postparpage = 25; 
$postparpageaff = 15;
$adresse = \'' . addslashes2(strip_gpc($_POST['url'])) . '\';
$lockforum = false;
$message_de_lock = \'Le forum est actuellement indisponible.

Réessayez ultérieurement.\';
$upavatar = "1";
 
?>';
    $root2 = $_SERVER['PHP_SELF'];
    $root2 = str_replace("/install", "", $root2);
    $root2 = str_replace("/index.php", "", $root2);
    // contenu du htaccess
    $insert3 = '
RewriteEngine on

############# PAGES DE GESTION
Exemple #2
0
    echo '<input name="nb" type="hidden" value="' . $nb . '" />';
} else {
    $nb = 0;
    $arr = '$emoticonc = array(';
    for ($i = 0; $i <= $_POST['nb']; $i++) {
        if (isset($_POST[$i]) && $_POST[$i] == 'true' || $_POST['nb'] == $i && !empty($_POST['emote' . $i])) {
            $arr .= '\'' . addslashes2(strip_gpc($_POST['emote' . $i])) . '\',';
            $nb++;
        }
    }
    $arr = substr($arr, 0, strlen($arr) - 1) . ');';
    $nb = 0;
    $arri = '$emoticonv = array(';
    for ($i = 0; $i <= $_POST['nb']; $i++) {
        if (isset($_POST[$i]) && $_POST[$i] == 'true' || $_POST['nb'] == $i && !empty($_POST['emotei' . $i])) {
            $arri .= '\'' . addslashes2(strip_gpc($_POST['emotei' . $i])) . '\',';
            $nb++;
        }
    }
    $arri = substr($arri, 0, strlen($arri) - 1) . ');';
    $fp = fopen('../info_emote.php', 'w+');
    fseek($fp, 0);
    fputs($fp, '<?php
' . $arri . '
' . $arr . '
	
$emoticonnb = count($emoticonv); 

?>');
    fclose($fp);
    echo '
Exemple #3
0
    }
    $arr_rg_mb = substr($arr_rg_mb, 0, strlen($arr_rg_mb) - 1) . ');';
    $nb = 0;
    $arr_rg_mb_im = '$rangimagem = array(';
    for ($i = 0; $i <= $_POST['nb_2']; $i++) {
        if (isset($_POST['a_' . $i]) && $_POST['a_' . $i] == 'true' || $_POST['nb_2'] == $i && !empty($_POST['rang_mb' . $i])) {
            $arr_rg_mb_im .= '\'' . addslashes2(strip_gpc($_POST['i_rang_mb' . $i])) . '\',';
            $nb++;
        }
    }
    $arr_rg_mb_im = substr($arr_rg_mb_im, 0, strlen($arr_rg_mb_im) - 1) . ');';
    $nb = 0;
    $arr_rg_mb_val = '$rangpostmin = array(';
    for ($i = 0; $i <= $_POST['nb_2']; $i++) {
        if (isset($_POST['a_' . $i]) && $_POST['a_' . $i] == 'true' || $_POST['nb_2'] == $i && !empty($_POST['rang_mb' . $i])) {
            $arr_rg_mb_val .= '\'' . addslashes2(strip_gpc($_POST['v_rang_mb' . $i])) . '\',';
            $nb++;
        }
    }
    $arr_rg_mb_val = substr($arr_rg_mb_val, 0, strlen($arr_rg_mb_val) - 1) . ');';
    $fp = fopen('../info_options_rangs.php', 'w+');
    fseek($fp, 0);
    fputs($fp, '<?php
	' . $arr_rg_sp . '
	' . $arr_rg_sp_coul . '
	' . $arr_rg_sp_im . '
	' . $arr_rg_mb . '
	' . $arr_rg_mb_im . '
	' . $arr_rg_mb_val . '
	?>');
    fclose($fp);
Exemple #4
0
 *   Développement        : Equipe SoftBB - ouverte - (voir sur le site)
 *
 *   Ce programme est un logiciel libre ; vous pouvez le redistribuer et/ou 
 *   le modifier au titre des clauses de la Licence Publique Générale GNU.
 *   Plus d'infos sur /index.php
 *
 ***************************************************************************/
include_once 'log.php';
function addslashes2($chaine)
{
    return str_replace("'", "\\'", $chaine);
}
echo '<h1>' . $lg_gestGrp['gg0'] . '</h1>
	<p>' . $lg_gestGrp['gg1'] . '
	</p>
	<p><strong>' . $lg_gestGrp['gg2'] . '</strong></p>';
$sql = 'SELECT nom,id FROM ' . $prefixtable . 'groupe';
$req = $db->query($sql);
if ($req->rowCount() == 0) {
    echo '<p>' . $lg_gestGrp['gg3'] . '</p>';
} else {
    while ($data = $req->fetch()) {
        echo '. ' . htmlentities($data['nom']) . ' - <a href="#" onclick="decision(\'' . $lg_gestGrp['gg4'] . '(' . addslashes2(htmlentities($data['nom'])) . ')\',\'index.php?page=delgroupe&idg=' . intval($data['id']) . '\')">[' . $lg_gestGrp['gg7'] . ']</a><br />';
    }
}
echo '
<p><strong>' . $lg_gestGrp['gg5'] . '</strong></p>
	<form name="form1" method="post" action="index.php?page=addgroupe">
		<input name="groupe" type="text" class="bouton" size="30" maxlength="64"> 
		<input type="submit" name="Submit" class="bouton" value="' . $lg_gestGrp['gg6'] . '">
	</form>';
Exemple #5
0
$afflistdelauto = ' . $_POST['afflistdelauto'] . '; 
$autorisationsign  = ' . $_POST['autorisationsign'] . '; 
$bbcodesign = ' . $_POST['bbcodesign'] . '; 
$ipaff  = ' . $_POST['ipaff'] . '; 
$affreprapide  = ' . $_POST['affreprapide'] . '; 

$lmax = ' . intval($_POST['lmax']) . '; 
$hmax = ' . intval($_POST['hmax']) . '; 
$pmax = ' . intval($_POST['pmax']) . '; 
$tmpfreepost = ' . intval($_POST['tmpfreepost']) . '; 

$membreparpage = ' . intval($_POST['membreparpage']) . '; 
$postparpage = ' . intval($_POST['postparpage']) . '; 
$postparpageaff = ' . intval($_POST['postparpageaff']) . ';
$adresse = \'' . addslashes2(strip_gpc($_POST['url'])) . '\';

$lockforum = ' . $_POST['lockforum'] . ';
$message_de_lock = \'' . addslashes2(strip_gpc($_POST['message_de_lock'])) . '\';
$upavatar = "1";

?>';
    $fp = fopen('../info_options.php', 'w+');
    fseek($fp, 0);
    fputs($fp, $insert);
    fclose($fp);
    echo '<p>' . $lg_saveOpt['so1'] . '</p>';
} else {
    echo '<h1>' . $lg_saveOpt['so2'] . '</h1>
	<p>' . $lg_saveOpt['so3'] . '</p>';
}
echo '<p><a href="index.php?page=gest_opt">' . $lg_saveOpt['so4'] . '</a></p>';