Esempio n. 1
0
			<p>
			<?php 
echo __('Git over SSH is now used to submit packages to the AUR. See the %sSubmitting packages%s section of the Arch User Repository ArchWiki page for more details.', '<a href="https://wiki.archlinux.org/index.php/Arch_User_Repository#Submitting_packages">', '</a>');
?>
			</p>
			<?php 
if (config_section_exists('fingerprints')) {
    ?>
			<p>
				<?php 
    echo __('The following SSH fingerprints are used for the AUR:');
    ?>
			</p>
			<ul>
				<?php 
    foreach (config_items('fingerprints') as $type => $fingerprint) {
        ?>
				<li><code><?php 
        echo htmlspecialchars($type);
        ?>
</code>: <code><?php 
        echo htmlspecialchars($fingerprint);
        ?>
</code></li>
				<?php 
    }
    ?>
			</ul>
			<?php 
}
?>
Esempio n. 2
0
function mmorpg_init()
{
    global $bdd;
    if (request_confirm('Start_Installation')) {
        $Level = 1;
        $Experience = 0;
        $HP = 100;
        $MP = 10;
        $Strength = 10;
        $Magic = 10;
        $Agility = 10;
        $Defense = 10;
        do {
            insert_db('Caranille_Levels', array('Level_ID' => $Level, 'Level_Number' => $Level, 'Level_Experience_Required' => $Experience, 'Level_HP' => $HP, 'Level_MP' => $MP, 'Level_Strength' => $Strength, 'Level_Magic' => $Magic, 'Level_Agility' => $Agility, 'Level_Defense' => $Defense));
            $HP += $_POST['HP_Level'];
            $MP += $_POST['MP_Level'];
            $Strength += $_POST['Strength_Level'];
            $Magic += $_POST['Magic_Level'];
            $Agility += $_POST['Agility_Level'];
            $Defense += $_POST['Defense_Level'];
            $Experience += $_POST['Experience_Level'];
            $Level++;
        } while ($Level < 200);
        record_curve();
    }
    if (request_confirm('MMORPG_Name') && $_POST['MMORPG_Presentation'] && $_POST['Pseudo'] && $_POST['Password'] && $_POST['Email']) {
        if (register_admin() && register_config()) {
            $Pseudo = htmlspecialchars(addslashes($_POST['Pseudo']));
            $Date = date('Y-m-d H:i:s');
            config_forum();
            install_forum();
            config_ville();
            config_invocation();
            config_magic();
            config_order();
            config_monsters();
            config_chapter();
            config_mission();
            config_items();
            config_race();
            config_classe();
            init_news($Pseudo, $Date);
            return true;
        }
    }
}