56KBs's Profile
Reputation: 0
Apprentice
- Group:
- Members
- Active Posts:
- 24 (0.03 per day)
- Joined:
- 17-January 11
- Profile Views:
- 422
- Last Active:
Oct 30 2011 01:39 PM- Currently:
- Offline
Previous Fields
- Country:
- GB
- OS Preference:
- Windows
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- PC
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: Click anchor to load AJAX
Posted 30 Oct 2011
I have now got the same code as you, on click I now get the alert "Error: error", I am unsure if this is because of my URL being incorrect. I've tried a direct URL and just get the same thing, the same happens with relative URL's
EDIT: I have now got it to work! For some reason my anchor had a href of "", which would cause it to reload the page and removing my GET from the page -
In Topic: Usage of PHP OOP and it vs using functions
Posted 5 Oct 2011
When you say programming courses I assume you are meaning courses ran in school, if this is the case then for AS we were taught Pascal, so OOP wasn't really part of it, and our teacher doesn't know languages like PHP. -
In Topic: CSS Sliding Doors, Drop Down issue
Posted 26 Aug 2011
Firstly, thanks for the reply. Although there seems to be some issues I am having with this, I copied the styles for setting the sliding doors images, shoved in another ul so it is .navigation ul ul li, this seemed to make no difference at all, and it still causing both levels to be the highlighted version of text.
I used the left: 50%; due to using a right: 50%; in order to cause my navigation to become centered (Although now having thought of it, change my navigation div to have max-width and just margin: 0 auto; that instead) -
In Topic: $_GET Page insecurities and a better way?
Posted 25 Jul 2011
I'm doing it like this -
<?php if (isset($_GET['page'])) { $page = $_GET['page']; } else { $page = 'index'; } $file_path = 'includes/' .$page . '.php'; if (!isset($_SESSION['username']) && $page != 'login') header("Location: " . mod_rewrite_check('login')); elseif (file_exists($file_path)) require($file_path); else require('includes/404.php'); ?>
(This line with the session could probably be amended by using a login check function I have but oh well)
I'm just asking this because I plan to soon switch my main index page, currently acting as the admin panel (Which the above is from) with a front end to my system and a separate directory to the admin section. I just fear someone could guess the directory to my admin section, then get into the included files.
I could continue using the method above but include the functions file on each of the included files, running a login check on each necessary to ensure if direct connection is made to the included file a header will push them away.
I'd like my system to be as secure as possible as I wish to release it via open source in the future (Once it has been used for my A2 computing exam). -
In Topic: htaccess, nice urls and header location issues
Posted 23 Jul 2011
It was working as far as I saw, it redirected me to /login as it should and it worked fine.
Oh well, I shall keep just editing my code in the hope it works, if not I can resort to turning off that kind of linking so it's ok.
If only it worked as it does on XAMPP. Maybe it's just the fact it's godaddy
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
-
Contact Information
- E-mail:
- Private
Friends
|
|


Find Topics
Find Posts
View Reputation Given

|
Comments
56KBs has no profile comments yet. Why not say hello?