Jump to content

Tom

Members
  • Posts

    1517
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Tom

  1. I believe you have to run the header() function before any php tag is closed.
  2. My edits made it closer to valid HTML... that would be a better start.
  3. You asked me on Skype before posting this and yet you've made none of the changes I pointed out to you...
  4. Email addresses aren't stored in a file accessible through FTP, they're in the users table in the database. You'll need to access your cPanel/equivalent to go through to the database admin.
  5. What do you mean by publish? Like make available to download by the public? If so, no..
  6. This has come up so many times I'm sure. Surprisingly difficult to find in search though. <?php if(MainController::$activeModule != 'Frontpage'){ ?> <div></div> <?php } ?>
  7. IIS is always the problem. Unless you're using asp Windows servers are sucky and expensive...
  8. Did you select a database type correctly when installing? What that line is doing is looking for the correct class for your selected database type, where your selected type is blank.
  9. Or for a more compact solution, within the same function: if(!empty($this->post->submit)){ MyClass::SubmitData($this->post->var1, $this->post->var2, $this->post->varn); // show success template? } else { // Show form template } And then just have your form submit to itself.
  10. Submitting Data $sql = "INSERT INTO table (field, names, here) VALUES (1, 2, 3)"; $res = DB::query($sql); Retrieving Data $sql = "SELECT * FROM table WHERE id='5'"; return DB::get_results($sql); Then you'd get the data as per your example and loop through the rows.
  11. If 5 rupees isn't enough how much are you expecting people to offer? Will be interesting to see what you think it's worth compared to what everyone else thinks it's worth...
  12. Yep... index is probably a bad example though as in that case it'll be looking for a function called one first. So using your example "one" would be the function name and two etc would be the vars it takes.
  13. Tom

    FsPaintShop

    Have to agree with magicflyer on that particular statement. You can't really claim to be a good communicator and precede it by saying you don't want them to contact you. You should be able to estimate work times and respond to them appropriately so they don't need to email you frequently.
  14. No that's wrong. Read my example
  15. Do you have access to your php error log? Have you made a change that would cause it to error?
  16. IIRC: public function index($one, $two, ... $n){ // Then you can do something like switch($one){ case 'action': $this->functionForAction(); break; } } Or just pile it all into the index function
  17. public static function parserSide... also remove Template::Show('rssfeed.tpl'); and then wherever you want to show the list: <?php RssFeed::parserSide(... as a side note, the loop can be shortened a bit: for($i = 0; $i <= 5; $i++){ $feeditem = $rss->channel->item[$i]; echo '<li><a href="'.$feedItem->link.'" title="'.$feedItem->title.'">'.$feedItem->title.'</a></li>'; }
  18. Tom

    VAForum 2

    Checked the code on github it seems to do that already. If you download a fresh copy and try does it do it? Looking back over this now it clearly needs rewriting, this can all be done so much better. I just have no time for it
  19. That's simpilot's site so it's most likely a module he's written himself that he isn't releasing. If you search the forum for "Statistics" you'll get some examples of basic stats, but nothing that detailed.
  20. Well in php to send it to them: $validationCode = md5($userinfo->pilotid.$userinfo->email.$userinfo->password); Then when checking: "SELECT * FROM ".TABLE_PREFIX."pilots WHERE MD5(CONCAT(pilotid, email, password)) = '".$validationCode."'" Where validation code in the sql is coming from the URL... (so make sure it's cleaned first)
  21. If they knew the salt there would be no point in it existing, so yes it would greatly reduce security. You could do something like md5 their pilotid+email+something else in the pilot row - something that doesnt change, then you can compare what's in the url without having to add any extra fields in the database.
  22. Can you get the headers and find out where it's coming from? Got to be someone we know...
×
×
  • Create New...