vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Please Help me, i'm dumb (https://vborg.vbsupport.ru/showthread.php?t=51524)

The_Cyberdemon 04-12-2003 03:21 PM

Please Help me, i'm dumb
 
I'll post all of my problems in here since i have so many.
I'm linking this off to someone on irc.

___


PHP Code:

<body background="http://www.blindedstorms.com/palm-tree.jpg">
<?php
error_reporting
(7);

require(
"./global.php");



if(!
$where) {
$where='start';
}

$action="start";
$thisurl $PHP_SELF;
// ############################### start ###############################
if ($where=="start" OR $HTTP_GET_VARS['where']=="start") {
echo (
'<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">Welcome to the Clan Hack Installer!</font></td></table><table width="100%"><tr>
<td align="center">Please click "NEXT" to begin!<br>If you would like the rank hack uninstalled (*sigh*), click "KILL EM"</td></tr></table></td></tr></table>'
);
$action="install";
echo (
"<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=install' style=\"color: purple;\">NEXT -></a><br><a href='$thisurl?s=$session[sessionhash]&where=mekill' style=\"color: purple;\">KILL EM</a></td></tr></table>");
}
// ############################### install ###############################
if ($HTTP_GET_VARS['where']=="install") {
echo (
'<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">Are You Sure?</font></td></table><table width="100%"><tr>
<td align="center">If you click yes, the table "clan" will be added with 4 columns. Is this what you want?</td></tr></table></td></tr></table>'
);
$action="install";
echo (
"<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=clandb' style=\"color: purple;\">OH YEAH</a>   <a href='$thisurl?s=$session[sessionhash]&where=start' style=\"color: purple;\">NO WAY!</a></td></tr></table>");
}
// ############################### install clandb###############################
if ($HTTP_GET_VARS['where']=="clandb") {
echo (
'<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">Table Added</font></td></table><table width="100%"><tr>
<td align="center">Added stuff</td></tr></table></td></tr></table>'
);
$DB_site->query("CREATE TABLE clan (
   clanid smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
   title varchar(50) NOT NULL,
   pass varchar(50) NOT NULL,
   leader varchar(50) NOT NULL,
)"
);
echo (
"<table width=\"100%\"><tr><td align=\"center\">The following tables where added:<ul>
    <li>clan
</ul><br>The following columns were added:<ul>
    <li>clanid
        <li>title
        <li>pass
        <li>leader
</ul><br></td></tr></table>"
);
echo (
"<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=installuser' style=\"color: purple;\">NEXT -></a></td></tr></table>");
}
// ############################### kill clandb###############################
if ($HTTP_GET_VARS['where']=="mekill") {
echo (
'<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">Are You Sure?</font></td></table><table width="100%"><tr>
<td align="center">If you click yes, the clan table WILL BE DELETED! Are you sure you want to do this?</td></tr></table></td></tr></table>'
);
echo (
"<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=delete' style=\"color: purple;\">YES</a>   <a href='$thisurl?s=$session[sessionhash]&where=start' style=\"color: purple;\">NO WAY!</a></td></tr></table>");
}
// ############################### delete now ###############################
if ($HTTP_GET_VARS['where']=="delete") {
echo (
'<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">DONE</font></td></table><table width="100%"><tr>
<td align="center">The table "CLAN" has been deleted!</td></tr></table></td></tr></table>'
);
echo (
"<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=delete' style=\"color: purple;\">YES</a>   <a href='$thisurl?s=$session[sessionhash]&where=start' style=\"color: purple;\">NO WAY!</a></td></tr></table>");
$DB_site->query("DROP TABLE IF EXISTS clan");
}
// ############################### install users ###############################
if ($HTTP_GET_VARS['where']=="installuser") {
echo (
'<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">User Install</font></td></table><table width="100%"><tr>
<td align="center">If you click yes, the column "clan" will be added to your "user" table. Is this what you want?</td></tr></table></td></tr></table>'
);
echo (
"<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=doinstalluser' style=\"color: purple;\">OH YEAH</a>   <a href='$thisurl?s=$session[sessionhash]&where=start' style=\"color: purple;\">NO WAY!</a></td></tr></table>");
}
// ############################### do install user###############################
if ($HTTP_GET_VARS['where']=="doinstalluser") {
echo (
'<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">Column Added</font></td></table><table width="100%"><tr>
<td align="center">Added stuff</td></tr></table></td></tr></table>'
);
$DB_site->query("ALTER TABLE user ADD clan SMALLINT(5) DEFAULT '1' NOT NULL");
echo (
"<table width=\"100%\"><tr><td align=\"center\">The following tables where edited:<ul>
    <li>user
</ul><br>The following columns were added:<ul>
    <li>clan
</ul><br></td></tr></table>"
);
echo (
"<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=installuser' style=\"color: purple;\">NEXT -></a></td></tr></table>");
}
// ############################### install users ###############################
if ($HTTP_GET_VARS['where']=="testing") {
echo (
'<table width="100%" align="center"><tr><td><table width="100%" background="http://www.blindedstorms.com/bar.gif"><td align="center"><font size="4">User Install</font></td></table><table width="100%"><tr>
<td align="center">If you click yes, the column "clan" will be added to your "user" table. Is this what you want?</td></tr></table></td></tr></table>'
);
echo (
"<table width=\"100%\"><tr><td align=\"center\"><a href='$thisurl?s=$session[sessionhash]&where=doinstalluser' style=\"color: purple;\">OH YEAH</a>   <a href='$thisurl?s=$session[sessionhash]&where=start' style=\"color: purple;\">NO WAY!</a></td></tr></table>");
echo (
"<tr>
    <td bgcolor="
#13486D"><normalfont><b>Style Set:</b><br>
    
<smallfont>You may pick a style set to browse with that may or may not override the default settings.</smallfont></normalfont></td>
    <
td bgcolor="#13486D"><smallfont>
        <
select name="newstyleset">");
$templatefetch=$DB_site->query("SELECT FROM templateset ORDERY BY title");
while (
$template=$DB_site->fetch_array($templatefetch)) {
echo ("
<option value="$template[templatesetid]"$template[title] </option>");
}        
echo ("        
</select>
    </
smallfont></td>
</
tr>");
}
?>



All times are GMT. The time now is 09:20 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01553 seconds
  • Memory Usage 1,772KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete