Ejemplo n.º 1
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Second_Edit')) {
        $Landing_ID = request_data('Landing_ID');
        $Landings_List = get_db("edit_admin", array('table' => 'Caranille_Landings', 'ID' => 'Landing_ID', 'value' => $Landing_ID));
        get_formulaire_Landing($Landings_List);
    }
    if (request_confirm('Add')) {
        get_formulaire_Landing();
    }
    if (empty($_POST['Edit']) && empty($_POST['Second_Edit']) && empty($_POST['Add'])) {
        echo 'Voici la liste des villes du MMORPG<br /><br />';
        $Landings_List = list_db("list_t", array('table' => "Caranille_Landings"));
        if (!empty($Landings_List)) {
            foreach ($Landings_List as $Landings) {
                $x = $Landings['Landing_PosX'];
                $y = $Landings['Landing_PosY'];
                $l_Landings[$x][$y] = $Landings;
            }
        }
        if (file_exists("{$_path}/Sources/Admin/Modules/Towns/landing.php")) {
            include_once "{$_path}/Sources/Admin/Modules/Towns/landing.php";
        } else {
            echo 'carte indisponible';
        }
    }
}
Ejemplo n.º 2
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des News du MMORPG<br /><br />';
        list_html_db('Caranille_News', 'News', array('News_Title', 'News_Date', 'News_Account_Pseudo'));
    } else {
        if (request_confirm('Second_Edit')) {
            $News_ID = request_data('News_ID');
            $News_List = get_db("edit_admin", array('table' => 'Caranille_News', 'ID' => 'News_ID', 'value' => $News_ID));
            get_formulaire($News_List);
        } else {
            if (request_confirm('Second_Show')) {
                $News_List = get_db("edit_admin", array('table' => 'Caranille_News', 'ID' => 'News_ID', 'value' => request_data('News_ID')));
                echo show_db('Caranille_News', $News_List);
            } else {
                if (request_confirm('Add')) {
                    get_formulaire();
                } else {
                    echo 'Que souhaitez-vous faire ?<br />';
                    echo '<form method="POST" action="' . get_link("News", "Admin") . '">';
                    echo '<input type="submit" name="Add" value="Ajouter une News">';
                    echo '<input type="submit" name="Edit" value="Modifier une News">';
                    echo '</form>';
                }
            }
        }
    }
}
Ejemplo n.º 3
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des Invocations du mmorpg<br /><br />';
        list_html_db('Caranille_Invocations', 'Invocations', array('Invocation_Name', 'Invocation_Description'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Invocation_ID = request_data('Invocation_ID');
            $Invocations = get_db("edit_admin", array('table' => 'Caranille_Invocations', 'ID' => 'Invocation_ID', 'value' => $Invocation_ID));
            get_formulaire_invocation($Invocations);
        } else {
            if (request_confirm('Second_Delete')) {
                $Invocation_ID = request_data('Invocation_ID');
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Invocations", "Admin");
                ?>
">
				<input type="hidden" name="Invocation_ID" value="<?php 
                echo $Invocation_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                if (request_confirm('Add')) {
                    get_formulaire_invocation($Invocations_List);
Ejemplo n.º 4
0
if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        $Weapon_List = list_db("ref_list_t", array('table' => 'Caranille_Items', 'ID' => 'Item_Type', 'ref' => implode("','", $array_weapon_type)));
        list_html($Weapon_List, "Caranille_Items", "Weapons", array('Item_Level', 'Item_Name', 'Item_Type', 'Item_HP_Effect', 'Item_MP_Effect', 'Item_Strength_Effect', 'Item_Magic_Effect', 'Item_Agility_Effect', 'Item_Defense_Effect'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Item_ID = request_data('Item_ID');
            $Weapon = get_db("edit_admin", array('table' => 'Caranille_Items', 'ID' => 'Item_ID', 'value' => $Item_ID));
            get_formulaire($Weapon);
        } else {
            if (request_confirm('Add')) {
                get_formulaire();
            } else {
                if (request_confirm('Second_Delete')) {
                    $Item_ID = request_data('Item_ID');
                    ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                    echo get_link("Weapons", "Admin");
                    ?>
">
				<input type="hidden" name="Item_ID" value="<?php 
                    echo $Item_ID;
                    ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
                } else {
Ejemplo n.º 5
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des Monsters du MMORPG<br /><br />';
        list_html_db('Caranille_Monsters', 'Monsters', array('Monster_Name', 'Monster_Level', 'Monster_Access'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Monster_ID = request_data('Monster_ID');
            $Monsters = get_db("edit_admin", array('table' => 'Caranille_Monsters', 'ID' => 'Monster_ID', 'value' => $Monster_ID));
            get_formulaire($Monsters);
        } else {
            if (request_confirm('Second_Delete')) {
                $Monster_ID = request_data('Monster_ID');
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Monsters", "Admin");
                ?>
">
				<input type="hidden" name="Monster_ID" value="<?php 
                echo $Monster_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                if (request_confirm('Add')) {
                    get_formulaire();
Ejemplo n.º 6
0
<?php

if (verif_access("Modo")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des pages du MMORPG<br /><br />';
        list_html_db('Caranille_Topics', 'Topics', array('Topic_Forum_ID', 'Topic_Titre'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Topic_ID = request_data('Topic_ID');
            $Topic_List = get_db("edit_admin", array('table' => 'Caranille_Topics', 'ID' => 'Topic_ID', 'value' => $Topic_ID));
            formulaire($Topic_List);
        } else {
            if (request_confirm('Second_Delete')) {
                $Topic_ID = request_data('Topic_ID');
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Topics", "Admin");
                ?>
">
				<input type="hidden" name="Topic_ID" value="<?php 
                echo $Topic_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                if (request_confirm('Add')) {
                    formulaire();
Ejemplo n.º 7
0
        echo '<form method="POST" action="' . get_link($table . "s", "Admin") . '">';
        echo '<input type="submit" name="Edit" value="Modifier une ' . $table . '">';
        echo '</form>';
        echo "\n<p style='text-align:left;'>La fonction essentielle d'Une {$table} institutionnel n’est pas une fonction de jeux, mais une fonction de communication informative.</p>\n<p style='text-align:left;'>ses contenus sont donc destinés essentiellement :\n<br/>- aux partenaires divers de votre site \n<br/>- aux individus à la recherche d’informations diverses sur le site ou le jeu \n<br/>- aux investisseurs, actionnaires et analystes financiers \n<br/>- à la presse \n<br/>- aux personnes à la recherche d’emploi ou de stages \n<br/>- .....</p>\n<p style='text-align:left;'>Les principales rubriques et contenus dans ces " . $table . "s institutionnel sont généralement :\n<br/>- la présentation et l’organisation de l’activité \n<br/>- les hommes et chiffres clés de l’activité \n<br/>- l’information financière (cours de bourse, information financière obligatoire,..) \n<br/>- la rubrique emploi / stages \n<br/>- la rubrique presse \n<br/>- l’historique de la société \n<br/>- les engagements et fondations d’entreprises \n<br/>- ...</p>\n\t\t\t";
    }
    if (request_confirm('Edit')) {
        echo 'Voici la liste des ' . $table . 's du MMORPG<br /><br />';
        list_html_db('Caranille_' . $table . 's', $table . 's', array($table . '_Title', $table . '_Description', $table . '_Order'));
    }
    if (request_confirm('Second_Edit')) {
        $table_ID = request_data($table . '_ID');
        $table_r = get_db("edit_admin", array('table' => 'Caranille_' . $table . 's', 'ID' => $table . '_ID', 'value' => $table_ID));
        formulaire($table_r);
    }
    if (request_confirm('Second_Delete')) {
        $table_ID = request_data($table . '_ID');
        ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
        echo get_link($table . "s", "Admin");
        ?>
">
				<input type="hidden" name="<?php 
        echo $table . '_ID';
        ?>
" value="<?php 
        echo eval("return \$" . $table . "_ID");
        ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
Ejemplo n.º 8
0
            echo "<input type=\"hidden\" name=\"Menu_ID\" value=\"{$Menu_ID}\">";
            echo '<input type="submit" name="Second_Edit" value="modifier">';
            echo '<input type="submit" name="Second_Delete" value="supprimer">';
            echo '</form></td>';
            echo '</tr>';
        }
        echo '</table>';
        //list_html_db('Caranille_Menus','Menus',array('Menu_Parent','Menu_Label','Menu_Link'));
    }
    if (request_confirm('Second_Edit')) {
        $Menu_ID = request_data('Menu_ID');
        $Menu_List = get_db("SELECT * FROM Caranille_Menus WHERE Menu_ID = '{$Menu_ID}' limit 1");
        get_formulaire_Menu($Menu_List);
    }
    if (request_confirm('Second_Delete')) {
        $Menu_ID = request_data('Menu_ID');
        confirm_remove_db('Caranille_Menus', "Menus", $Menu_ID);
        ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
        echo get_link("Menus", "Admin");
        ?>
">
				<input type="hidden" name="Menu_ID" value="<?php 
        echo $Menu_ID;
        ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
Ejemplo n.º 9
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des Caracteristiques du MMORPG<br /><br />';
        list_html_db('Caranille_Caracteristiques', 'Caracteristiques', array('Caracteristique_Type', 'Caracteristique_Name', 'Caracteristique_Opposant', 'Caracteristique_Order'));
    } elseif (request_confirm('Second_Edit')) {
        $Caracteristique_ID = request_data('Caracteristique_ID');
        $Caracteristique_List = get_db("edit_admin", array('table' => 'Caranille_Caracteristiques', 'ID' => 'Caracteristique_ID', 'value' => $Caracteristique_ID));
        get_formulaire_Caracteristique($Caracteristique_List);
    } elseif (request_confirm('Second_Delete')) {
        $Caracteristique_ID = request_data('Caracteristique_ID');
        confirm_remove_db('Caranille_Caracteristiques', "Caracteristiques", $Caracteristique_ID);
        ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
        echo get_link("Caracteristiques", "Admin");
        ?>
">
				<input type="hidden" name="Caracteristique_ID" value="<?php 
        echo $Caracteristique_ID;
        ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
    } elseif (request_confirm('Add')) {
        get_formulaire_Caracteristique();
    } else {
        echo 'Que souhaitez-vous faire ?<br />';
Ejemplo n.º 10
0
<?php

if (verif_access("Modo")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des pages du MMORPG<br /><br />';
        list_html_db('Caranille_Posts', 'Posts', array('Post_Forum_ID', 'Post_Topic_ID', 'Post_Texte', 'Post_Time'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Post_ID = request_data('Post_ID');
            $Post_List = get_db("edit_admin", array('table' => 'Caranille_Posts', 'ID' => 'Post_ID', 'value' => $Post_ID));
            formulaire($Post_List);
        } else {
            if (request_confirm('Second_Delete')) {
                $Post_ID = request_data('Post_ID');
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Posts", "Admin");
                ?>
">
				<input type="hidden" name="Post_ID" value="<?php 
                echo $Post_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                echo 'Que souhaitez-vous faire ?<br />';
                echo '<form method="POST" action="' . get_link("Posts", "Admin") . '">';
Ejemplo n.º 11
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des pages du MMORPG<br /><br />';
        list_html_db('Caranille_Categories', 'Categories', array('Cat_Ordre', 'Cat_Nom'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Cat_ID = request_data('Cat_ID');
            $Category_List = get_db("edit_admin", array('table' => 'Caranille_Categories', 'ID' => 'Cat_ID', 'value' => $Cat_ID));
            formulaire($Category_List);
        } else {
            if (request_confirm('Second_Delete')) {
                $Cat_ID = request_data('Cat_ID');
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Categories", "Admin");
                ?>
">
				<input type="hidden" name="Cat_ID" value="<?php 
                echo $Cat_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                if (request_confirm('Add')) {
                    formulaire();
Ejemplo n.º 12
0
<?php 
if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des pages du MMORPG<br /><br />';
        list_html_db('Caranille_Ressources', 'Ressources', array('Ressource_Description', 'Ressource_Name'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Ressource_ID = request_data('Ressource_ID');
            $Ressource_r = get_db("edit_admin", array('table' => 'Caranille_Ressources', 'ID' => 'Ressource_ID', 'value' => $Ressource_ID));
            formulaire($Ressource_r);
        } else {
            if (request_confirm('Second_Delete')) {
                $Ressource_ID = request_data('Ressource_ID');
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Ressources", "Admin");
                ?>
">
				<input type="hidden" name="Ressource_ID" value="<?php 
                echo $Ressource_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                if (request_confirm('Add')) {
                    formulaire();
Ejemplo n.º 13
0
<?php 
if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des pages du MMORPG<br /><br />';
        list_html_db('Caranille_Races', 'Races', array('Race_Description', 'Race_Name'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Race_ID = request_data('Race_ID');
            $Race_r = get_db("edit_admin", array('table' => 'Caranille_Races', 'ID' => 'Race_ID', 'value' => $Race_ID));
            formulaire($Race_r);
        } else {
            if (request_confirm('Second_Delete')) {
                $Race_ID = request_data('Race_ID');
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Races", "Admin");
                ?>
">
				<input type="hidden" name="Race_ID" value="<?php 
                echo $Race_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                if (request_confirm('Add')) {
                    formulaire();
Ejemplo n.º 14
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des news du MMORPG<br /><br />';
        list_html_db('Caranille_Comments', 'Comments', array('Comment_Date', 'Comment_Account_Pseudo', 'Comment_Message', 'Comment_News_ID'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Comment_ID = request_data('Comment_ID');
            $Comment_List = get_db("edit_admin", array('table' => 'Caranille_Comments', 'ID' => 'Comment_ID', 'value' => $Comment_ID));
            get_formulaire($Comment_List);
        } else {
            echo 'Que souhaitez-vous faire ?<br />';
            echo '<form method="POST" action="' . get_link("Comments", "Admin") . '">';
            echo '<input type="submit" name="Edit" value="Modifier un Comment">';
            echo '</form>';
        }
    }
}
Ejemplo n.º 15
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des pages du MMORPG<br /><br />';
        list_html_db('Caranille_Works', 'Works', array('Work_Description', 'Work_Name', 'Work_Fabrique'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Work_ID = request_data('Work_ID');
            $Work_List = get_db("edit_admin", array('table' => 'Caranille_Works', 'ID' => 'Work_ID', 'value' => $Work_ID));
            formulaire($Work_List);
        } else {
            if (request_confirm('Second_Delete')) {
                $Work_ID = request_data('Work_ID');
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Works", "Admin");
                ?>
">
				<input type="hidden" name="Work_ID" value="<?php 
                echo $Work_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                if (request_confirm('Add')) {
                    formulaire();
Ejemplo n.º 16
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des quêtes du MMORPG<br /><br />';
        list_html_db('Caranille_Quests', 'Quests', array('Quest_Town_ID', 'Quest_Number', 'Quest_Name', 'Quest_Goal'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Quest_ID = request_data('Quest_ID');
            $Quest = get_db("edit_admin", array('table' => 'Caranille_Quests', 'ID' => 'Quest_ID', 'value' => $Quest_ID));
            get_formulaire($Quest);
        } else {
            if (request_confirm('Second_Delete')) {
                $Quest_ID = request_data('Quest_ID');
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Quests", "Admin");
                ?>
">
				<input type="hidden" name="Quest_ID" value="<?php 
                echo $Quest_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                echo 'Que souhaitez-vous faire ?<br />';
                echo '<form method="POST" action="' . get_link("Quests", "Admin") . '">';
Ejemplo n.º 17
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Second_Delete')) {
        $Image_ID = request_data('Image_ID');
        ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
        echo get_link("Images", "Admin");
        ?>
">
				<input type="hidden" name="Image_ID" value="<?php 
        echo $Image_ID;
        ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
    } else {
        echo '<form method="POST" action="' . get_link("Images", "Admin") . '">';
        echo 'Poids<input type="number" name="avatar_maxsize" value="' . $avatar_maxsize . '"/>';
        echo 'Hauteur<input type="number" name="avatar_maxh" value="' . $avatar_maxh . '"/>';
        echo 'Largeur<input type="number" name="avatar_maxl" value="' . $avatar_maxl . '"/>';
        echo '<input type="submit" name="End_Edit" value="Terminer"/>';
        echo '</form>';
        echo 'vous pouvez uploader plusieurs fichiers simultanement.';
        ?>
                <form method="POST" enctype="multipart/form-data" action="<?php 
        echo get_link("Images", "Admin");
        ?>
Ejemplo n.º 18
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des Gifts du MMORPG<br /><br />';
        list_html_db('Caranille_Gifts', 'Gifts', array('Gift_Code', 'Gift_Used', 'Gift_Item'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Gift_ID = request_data('Gift_ID');
            $Gift_List = get_db("edit_admin", array('table' => 'Caranille_Gifts', 'ID' => 'Gift_ID', 'value' => $Gift_ID));
            formulaire($Gift_List);
        } else {
            if (request_confirm('Second_Delete')) {
                $Gift_ID = request_data('Gift_ID');
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Gifts", "Admin");
                ?>
">
				<input type="hidden" name="Gift_ID" value="<?php 
                echo $Gift_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                if (request_confirm('Add')) {
                    formulaire();
Ejemplo n.º 19
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des Magies du MMORPG<br /><br />';
        list_html_db('Caranille_Magics', 'Magics', array('Magic_Name', 'Magic_Description', 'Magic_Type'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Magic_ID = request_data('Magic_ID');
            $Magics = get_db("edit_admin", array('table' => 'Caranille_Magics', 'ID' => 'Magic_ID', 'value' => $Magic_ID));
            get_formulaire($Magics);
        } else {
            if (request_confirm('Second_Delete')) {
                $Magic_ID = request_data('Magic_ID');
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Magics", "Admin");
                ?>
">
				<input type="hidden" name="Magic_ID" value="<?php 
                echo $Magic_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                if (request_confirm('Add')) {
                    get_formulaire();
        // A single number or a comma-seperated list of numbers
        $message = "This is a test message from the HELP PORTAL.";
        // 612 chars or less
        // A single number or a comma-seperated list of numbers
        $message = urlencode($message);
        $data = "username="******"&hash=" . $hash . "&message=" . $message . "&sender=" . $sender . "&numbers=" . $numbers . "&test=" . $test;
        $ch = curl_init('http://api.txtlocal.com/send/?');
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        echo $result = curl_exec($ch);
        // This is the result from the API
        curl_close($ch);
        echo 'ok';
        $register_data = array('firstname' => $user_data['firstname'], 'lastname' => $user_data['lastname'], 'email' => $user_data['email'], 'branch' => $user_data['branch'], 'year' => $user_data['year'], 'type' => 'message', 'notification' => $_POST['notification']);
        request_data($register_data);
        header('location:message.php');
        exit;
    }
}
if (isset($_post['submit']) === true) {
    if (isset($_post['notification']) === true && empty($_post['notification']) === false) {
        $branch = $user_data['branch'];
        $no = array();
        $query = "SELECT COUNT('user_id') FROM `members` WHERE `branch`='{$branch}'";
        $data = mysql_query($query);
        while ($row = mysql_fetch_assoc($data)) {
            $no[] = $row['mobile'];
        }
        $phone = implode(',', $no);
        $x = SendSMS("127.0.0.1", 8800, "akash", "prerna123", $phone, $_REQUEST['notification']);
Ejemplo n.º 21
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Second_Edit')) {
        $Town_ID = request_data('Town_ID');
        $Towns_List = get_db("edit_admin", array('table' => 'Caranille_Towns', 'ID' => 'Town_ID', 'value' => $Town_ID));
        get_formulaire_town($Towns_List);
    } else {
        if (request_confirm('Add')) {
            get_formulaire_town();
        } else {
            echo 'Voici la liste des villes du MMORPG<br /><br />';
            $Towns_List = list_db("list_t", array('table' => "Caranille_Towns"));
            $Landings_List = list_db("list_t", array('table' => "Caranille_Landings"));
            if (!empty($Towns_List)) {
                foreach ($Towns_List as $Towns) {
                    echo "" . stripslashes($Towns['Town_Name']) . "<br />";
                    $Town_ID = stripslashes($Towns['Town_ID']);
                    echo '<form method="POST" action="' . get_link("Towns", "Admin") . '">';
                    echo "<input type=\"hidden\" name=\"Town_ID\" value=\"{$Town_ID}\">";
                    echo '<input type="submit" name="Second_Edit" value="entrer">';
                    echo '</form><br />';
                    $x = $Towns['Town_PosX'];
                    $y = $Towns['Town_PosY'];
                    $l_Twons[$x][$y] = $Towns;
                }
            }
            if (!empty($Landings_List)) {
                foreach ($Landings_List as $Landings) {
                    $x = $Landings['Landing_PosX'];
                    $y = $Landings['Landing_PosY'];
Ejemplo n.º 22
0
<?php

include dirname(dirname(__FILE__)) . '/config.php';
try {
    $dbh = new PDO($dsn, $user, $password);
} catch (PDOException $e) {
    echo 'Connection failed: ' . $e->getMessage();
    exit;
}
$date_end = strtotime('now');
$types = ['php', 'mysql'];
foreach ($types as $type) {
    $date = strtotime('2012-05-29');
    while ($date <= $date_end) {
        // Build url
        $url = 'http://api.wordpress.org/stats/' . $type . '/1.0/?day=' . date("Y-m-d", $date);
        $data = json_decode(request_data($url));
        foreach ($data as $version => $count) {
            $sql = "INSERT INTO versions (\n\t\t\t\ttype,\n\t\t\t\tversion,\n\t\t\t\tcount,\n\t\t\t\tday) VALUES (\n\t\t\t\t:type,\n\t\t\t\t:version,\n\t\t\t\t:count,\n\t\t\t\t:day\n\t\t\t)";
            $stmt = $dbh->prepare($sql);
            $stmt->bindParam(':type', $type, PDO::PARAM_STR);
            $stmt->bindParam(':version', $version, PDO::PARAM_STR);
            $stmt->bindParam(':count', $count, PDO::PARAM_INT);
            $stmt->bindParam(':day', date("Y-m-d", $date), PDO::PARAM_STR);
            $stmt->execute();
        }
        // Set next date
        $date = strtotime("+1 day", $date);
    }
}
Ejemplo n.º 23
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des pages du MMORPG<br /><br />';
        list_html_db('Caranille_Classes', 'Classes', array('Classe_Description', 'Classe_Name'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Classe_ID = request_data('Classe_ID');
            $Classe_r = get_db("edit_admin", array('table' => 'Caranille_Classes', 'ID' => 'Classe_ID', 'value' => $Classe_ID));
            formulaire($Classe_r);
        } else {
            if (request_confirm('Second_Delete')) {
                $Classe_ID = request_data('Classe_ID');
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Classes", "Admin");
                ?>
">
				<input type="hidden" name="Classe_ID" value="<?php 
                echo $Classe_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                if (request_confirm('Add')) {
                    formulaire();
Ejemplo n.º 24
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des Guilds du mmorpg<br /><br />';
        list_html_db('Caranille_Guilds', 'Guilds', array('Guild_Name', 'Guild_Description'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Guild_ID = request_data('Guild_ID');
            $Guilds = get_db("edit_admin", array('table' => 'Caranille_Guilds', 'ID' => 'Guild_ID', 'value' => $Guild_ID));
            formulaire($Guilds);
        } else {
            echo 'Que souhaitez-vous faire ?<br />';
            echo '<form method="POST" action="' . get_link("Guilds", "Admin") . '">';
            echo '<input type="submit" name="Edit" value="Modifier une guilde">';
            echo '</form>';
        }
    }
}
Ejemplo n.º 25
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des chapitres du MMORPG<br /><br />';
        list_html_db('Caranille_Chapters', 'Chapters', array('Chapter_Number', 'Chapter_Name'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Chapter_ID = request_data('Chapter_ID');
            $Chapter_List = get_db("edit_admin", array('table' => 'Caranille_Chapters', 'ID' => 'Chapter_ID', 'value' => $Chapter_ID));
            get_formulaire_chapter($Chapter_List);
        } else {
            if (request_confirm('Second_Delete')) {
                $Chapter_ID = request_data('Chapter_ID');
                confirm_remove_db('Caranille_Chapters', "Chapters", $Chapter_ID);
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Chapters", "Admin");
                ?>
">
				<input type="hidden" name="Chapter_ID" value="<?php 
                echo $Chapter_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                if (request_confirm('Add')) {
Ejemplo n.º 26
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des pages du MMORPG<br /><br />';
        list_html_db('Caranille_Forums', 'Forums', array('Forum_Cat_ID', 'Forum_Name', 'Forum_Guild_ID', 'Forum_Ordre'));
    }
    if (request_confirm('Second_Edit')) {
        $Forum_ID = request_data('Forum_ID');
        $Forum_List = get_db("edit_admin", array('table' => 'Caranille_Forums', 'ID' => 'Forum_ID', 'value' => $Forum_ID));
        formulaire($Forum_List);
    } else {
        if (request_confirm('Second_Delete')) {
            $Forum_ID = request_data('Forum_ID');
            ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
            echo get_link("Forums", "Admin");
            ?>
">
				<input type="hidden" name="Forum_ID" value="<?php 
            echo $Forum_ID;
            ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
        }
    }
    if (request_confirm('Add')) {
Ejemplo n.º 27
0
        if (request_confirm('Second_Edit')) {
            ?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php 
        }
        ?>
    		    </form>
<?php 
    }
    if (request_confirm('up_rank')) {
        $Page_ID = request_data('Page_ID');
        move_db('Caranille_Pages', $Page_ID, 'up');
        header('location:' . get_link('pages', 'admin', array('Edit' => 'ok')));
        $message = 'Chapitre remonté';
    }
    if (request_confirm('down_rank')) {
        $Page_ID = request_data('Page_ID');
        move_db('Caranille_Pages', $Page_ID, 'down');
        header('location:' . get_link('pages', 'admin', array('Edit' => 'ok')));
        $message = 'Chapitre descendu';
    }
    if (request_confirm('End_Edit')) {
        if (valid_post_db('Caranille_Pages')) {
            update_db('Caranille_Pages', addslashes_r($_POST));
            $message = 'Chapitre mis à jour';
        } else {
            $message = 'Tous les champs n\'ont pas été remplis';
        }
    }
    if (request_confirm('Delete')) {
        delete_db(addslashes_r($_POST));
        $message = 'Le page a bien été supprimée';
Ejemplo n.º 28
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        echo 'Voici la liste des Missions du MMORPG<br /><br />';
        list_html_db('Caranille_Missions', 'Missions', array('Mission_Number', 'Mission_Name', 'Mission_Description'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Mission_ID = request_data('Mission_ID');
            $Missions_List = get_db("edit_admin", array('table' => 'Caranille_Missions', 'ID' => 'Mission_ID', 'value' => $Mission_ID));
            get_formulaire($Missions_List);
        } else {
            if (request_confirm('Second_Delete')) {
                $Mission_ID = request_data('Mission_ID');
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Missions", "Admin");
                ?>
">
				<input type="hidden" name="Mission_ID" value="<?php 
                echo $Mission_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                if (request_confirm('Add')) {
                    get_formulaire();
Ejemplo n.º 29
0
            $Account = get_db("edit_admin", array('table' => 'Caranille_Accounts', 'ID' => 'Account_ID', 'value' => request_data('Account_ID')));
            formulaire($Account);
        } else {
            if (request_confirm('Second_Show')) {
                $Account = get_db("edit_admin", array('table' => 'Caranille_Accounts', 'ID' => 'Account_ID', 'value' => request_data('Account_ID')));
                echo show_db('Caranille_Accounts', $Account);
            } else {
                if (request_confirm('Second_Delete')) {
                    ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                    echo get_link("Accounts", "Admin");
                    ?>
">
				<input type="hidden" name="Account_ID" value="<?php 
                    echo request_data('Account_ID');
                    ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
                } else {
                    echo 'Que souhaitez-vous faire ?<br />';
                    echo '<form method="POST" action="' . get_link("Accounts", "Admin") . '">';
                    echo '<input type="submit" name="Edit" value="Modifier un Compte">';
                    echo '</form>';
                }
            }
        }
    }
Ejemplo n.º 30
0
<?php

if (verif_access("Admin")) {
    if (request_confirm('Edit')) {
        $Fragments_List = list_db("list_t", array('table' => "Caranille_Fragments"));
        list_html($Fragments_List, "Caranille_Fragments", "Fragments", array('Fragment_Level', 'Fragment_Name', 'Fragment_HP_Effect', 'Fragment_MP_Effect', 'Fragment_Strength_Effect', 'Fragment_Magic_Effect', 'Fragment_Agility_Effect', 'Fragment_Defense_Effect'));
    } else {
        if (request_confirm('Second_Edit')) {
            $Fragment_ID = request_data('Fragment_ID');
            $Fragments = get_db("edit_admin", array('table' => 'Caranille_Fragments', 'ID' => 'Fragment_ID', 'value' => $Fragment_ID));
            formulaire($Fragments);
        } else {
            if (request_confirm('Second_Delete')) {
                $Fragment_ID = request_data('Fragment_ID');
                ?>
            <p>Supprimer definitivement ?</p>
                <form method="POST" action="<?php 
                echo get_link("Fragments", "Admin");
                ?>
">
				<input type="hidden" name="Fragment_ID" value="<?php 
                echo $Fragment_ID;
                ?>
"/>
				<input type="submit" name="Back" value="Annuler" />
				<input type="submit" name="Delete" value="supprimer" />
				</form>
<?php 
            } else {
                if (request_confirm('Add')) {
                    formulaire();