diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..857d2b3 --- /dev/null +++ b/.htaccess @@ -0,0 +1,23 @@ +#only if using apache + +ErrorDocument 403 /error.php?code=403 +ErrorDocument 404 /error.php?code=404 + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^([^\.]+)$ $1.php [NC,L] + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^([^\.]+)$ $1.php [NC,L] +RewriteRule ^(.*)\.aspx$ $1 [L] + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^([^\.]+)$ $1.php [NC,L] +RewriteRule ^(.*)\.ashx$ $1 [L] + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^([^\.]+)$ $1.php [NC,L] +RewriteRule ^(.*)\.html$ $1 [L] \ No newline at end of file diff --git a/about.php b/about.php index 4a5a8b0..b97fda6 100644 --- a/about.php +++ b/about.php @@ -1,3 +1,4 @@ error +

(this is a placeholder by the way)

diff --git a/grublox.sql b/grublox.sql index 07002e2..5a7d553 100644 --- a/grublox.sql +++ b/grublox.sql @@ -30,7 +30,7 @@ SET time_zone = "+00:00"; CREATE TABLE `users` ( `id` int(11) NOT NULL, `username` varchar(20) NOT NULL, - `password` varchar(50) NOT NULL, + `password` varchar(450) NOT NULL, `date` datetime NOT NULL DEFAULT current_timestamp(), `token` varchar(25) DEFAULT NULL COMMENT 'Token for joining. Useful to secure joining to prevent unauthorized users to use other names.', `description` varchar(250) DEFAULT NULL, diff --git a/home.php b/home.php index 3f094ef..9d7895d 100644 --- a/home.php +++ b/home.php @@ -9,6 +9,25 @@ session_start(); require_once 'core/classes.php'; require_once 'core/classes/user.php'; $user = new User($con, $_SESSION['user']); + +$himsgs = [ + "Hello", + "What's up", + "How you doing", + "Ayo", + "Hola", + "Welcome", + "Welcome back", + "Hi", + "Hey", + "Heyyo", + "Howdy", + "Hi there", + "Ahoy" +]; +$himsg = array_rand($himsgs); +$himsg = $himsgs[$himsg]; + $getitstarted = new PartyStarter; $getitstarted->header(); ?> @@ -18,7 +37,7 @@ $getitstarted->header();


- Welcome back, getUsername(); ?> + , getUsername(); ?>!

Friends (2)

@@ -84,4 +103,4 @@ $getitstarted->header();
- \ No newline at end of file + diff --git a/sex.php b/phpinfo.php similarity index 100% rename from sex.php rename to phpinfo.php