Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require "/home/sgs/public_html/global/header.php";
- $title = "Install :: S.G. Paste :: Sagnik Ganguly Services Co. Ltd.";
- require $cnf."functions.php";
- require $cnf."connection.php";
- foreach($_GET as $key => $value) {
- $get[$key] = filter($value); //get variables are filtered.
- }
- foreach($_POST as $key => $value) {
- $post[$key] = filter($value); // post variables are filtered
- }
- foreach($_REQUEST as $key => $value) {
- $data[$key] = filter($value); //all, post, get, put, delete, cookies variables are filtered.
- }
- ?>
- <?php
- if ($_GET['do'] != 'install' || $_GET['do'] != 'setup' || !isset($_GET['do'])) {
- ?>
- Welcome to S.G. Paste Installer. The no.1 site for paste text. To start using S.G. Paste, press the "Start Installation" button below and follow the instructions.
- <br>
- <?php
- if (!tbl_exists(sgs_sgpaste, features)) {
- ?>
- <button onclick="window.location=('?do=install');">Start Installation</button>
- <?php
- } elseif (tbl_exists(sgs_sgpaste, features) && !blank_table(features)) {
- ?>
- <button onclick="window.location=('?do=setup');">Start Setup</button>
- <?php } } ?>
- <?php
- if ($_GET['do'] == 'install') {
- require $sgp."install/create_tables.php";
- }
- elseif ($_GET['do'] == 'setup' && $_GET['type'] == 'plans') {
- require $sgp."install/setup_plans_wizard.php";
- }
- ?>
- <?php
- require "/home/sgs/public_html/global/footer.php";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement