Jump to content

Ryokotsusai

Members
  • Posts

    39
  • Joined

  • Last visited

    Never

About Ryokotsusai

  • Birthday 09/18/1988

Contact Methods

  • Website URL
    http://www.gravro.com

Profile Information

  • Gender
    Male
  • Location
    In the corner of a dark room somewhere...

Ryokotsusai's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ah, oops now I feel special: while($i <= $f) { loops through it an extra time should have been while($i < $f) { Thank you
  2. Hi, I have a small function that is supposed to retrieve a list of links from a database and then build the link list from what it retrieves, but for some reason I cannot get it to work. It errors out on the "foreach" line saying: but when i printed $lin it contained the array The actual page can be found here and here is the function where it errors followed by what the print_r outputs: function links($area,$tabs = 0){ global $LINK; $i = 0; $f = count($LINK[$area]); // = 6 $t = " "; if($tabs > 0) { while($tabs > 0) { $tab .= $t; $tabs--; } } else { $tab = ""; } while($i <= $f) { $end = $tab."<li><a "; $lin = $LINK[$area][$i]; foreach($lin as $key => $val) { // Line 52 $end .= ($val != "" && $val != NULL && $key != 'text') ? $key."=\"".$val."\" " : ""; $end .= ($val != "" && $val != NULL && $key == 'text') ? ">".$val."</a></li>" : ""; } print_r($lin); $i++; unset($lin); } echo $end; } /* print_r output: Array ( [href] => http://char.rev-ro.com/cnt/cp/home/ [title] => Home Page [id] => [class] => [text] => Home ) Array ( [href] => http://char.rev-ro.com/cnt/cp/user/ [title] => User Administration [id] => [class] => [text] => User Control ) Array ( [href] => http://char.rev-ro.com/cnt/cp/admin/ [title] => Administrative Control [id] => [class] => [text] => Admin Control ) Array ( [href] => http://char.rev-ro.com/cnt/cp/site/ [title] => Site Control [id] => [class] => [text] => Site Control ) Array ( [href] => http://char.rev-ro.com/cnt/cp/stats/ [title] => Server Statistics [id] => [class] => [text] => Stats ) Array ( [href] => http://char.rev-ro.com/cnt/cp/help/ [title] => Help / Contact Us [id] => [class] => [text] => About ) */ Thanks
  3. I don't have control over the version of apache on this server, is there way, other than updating to a later version, to protect against that?
  4. I am having trouble figuring that one out (I have never heard of that before)
  5. Done Done (that's a strange one) Sorry about that, fixed Pretty sure thats fixed Not sure what that is Fixed I will try to fix the others from work, and put a filter on what the display name can be, and on the bio
  6. ok, I just severely shut down the sites db privileges so my db is protected at least a little bit, but if you would like to log in and mess with things username: hackme password: hackme please, no indecent pictures I'm going to bed now
  7. Hi, I have a small page I am working on as a side project to test and set up pages for another site, so I guess here it goes, I would like to see if there are any openings in the login page, or any other page really : http://char.rev-ro.com/login.php (pretty simple) and anything else you can come up with >.< thanks
  8. logged in with an account or by other means?
  9. Sorry, it is back now no, i hadn't thought of that
  10. isset wasn't the question i was talking about th preference ppl seem to have of using "!" in if statements @filmgod i agree that in a lot of situations it does make sense, but then again in just as many there is an "else" statment, that was always a part of it, which negates the need for the "!" as it does something anyway and would work the same the other way ie: if($this != $that) {echo "They are not the same."; } else {echo "They are the same.";} does the same thing as: if($this == $that) {echo "They are the same.";} else {echo "They are not the same.";} right? yet out of all the examples i have read, post i have seen, and scripts I have torn apart, 90% of the time the person who wrote it used != or !isset() with an else. So if it has no real advantage in a situation where there is an 'else' are we just drawn toward a negative?
  11. I see things used in a lot of scripts: if(!isset(this)) {do this} else {or do this} and my question is, Is using not set, or not equal to better, or does it have some advantage over using just isset() or ==? 'cause from what i have seen everyone seems to go towards "is not..."
  12. ok i think i took care of that, or at least i can't get it to do that anymore
  13. I fixed the index pages in the directories the login script is what i get for trying to make something while dead tired, but that no longer allows blank logins the full path thing i think i took care of, but now it wont connect to the database... let me try and figure this one out...
  14. Hi, I was wondering if anyone out there has some free time and could attack my site for me, it is not anywhere near 100% yet ( maybe closer to 10% ) and only 2 scripts have any access to the database, the login in the top corner (when your not logged in) and the registration page. I would like to know about any possible exploits that you can come up with, and feel free to do anything short of deleting the database (if possible) there are only 3 empty tables anyway link: http://www.gravityws.com thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.