Jump to content

Racc

Members
  • Posts

    35
  • Joined

  • Last visited

    Never

About Racc

  • Birthday 05/11/1988

Contact Methods

  • AIM
    OMGxRaccoon
  • MSN
    R.a.c.c@hotmail.co.uk

Profile Information

  • Gender
    Not Telling

Racc's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. basically, all of my links are http://localhost/?s=links http://localhost/?s=downloads etc I normally the link to delete a post contains a variable. I'm unsure on how to do that. This is how it normally would be. http://localhost/include/delete_news.php?id='.$row['id'] IE: http://localhost/include/delete_news.php?id=1 http://localhost/include/delete_news.php?id=2 http://localhost/include/delete_news.php?id= *ETC* Since I change all my links to "s?=NAME" it will not work correctly. How do I adjust the lines: while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo '<tr> <td>'.$row['id'].'</td> <td>'.$row['title'].'</td> <td><a href="include/delete_news.php?id='.$row['id'].'">Delete</a></td> <td><a href="include/edit_news.php?id='.$row['id'].'">Edit </tr>'; To acomidate how my links are done. thanks, any help is appreciated.
  2. I can't edit or del the news I have posted. <?php session_start(); ob_start(); if (isset($_GET['s'])) $s = $_GET['s']; else $s = "main"; include("include/container.php"); include("include/header.php"); include("include/nav.php"); ?> <link rel="stylesheet" type="text/css" href="style.css" media="screen"></head> <title>Racc</title> <div id="content"> <?php if ($s == "main") { include("include/news.php"); } else if ($s == "blog") { include("include/blog.php"); } /*lololol admin stuff*/ else if ($s == "admincp") { include("include/admincp.php"); } /*lololol newsmanaging*/ else if ($s == "newsmanage") { include("include/admincp/news_manage.php"); } else if ($s == "addnews") { include("include/admincp/addnews.php"); } /* lololol blogmanaging*/ else if ($s == "blogmanage") { include("include/admincp/blog_manage.php"); } else if ($s == "addblog") { include("include/admincp/addblog.php"); } /*lololol end admin stuff*/ else if ($s == "logout") { include("include/process.php"); } else if ($s == "downloads") { include("include/downloads.php"); } else if ($s == "tutorials") { include("include/tutorials.php"); } else if ($s == "author") { include("include/author.php"); } else if ($s == "links") { include("include/links.php"); } else if ($s == "comments") { include("include/comments.php"); } else { echo "<p class=\"error\">The section $s does not exist!</p>\n"; } ?> </div> </body> </html> <?php ob_end_flush(); ?> That's my index, that's how I do my links. <?php include('include/session.php'); if(!isset($_SESSION['userid'])){ ?> <br><br> <form action="include/process.php" method="POST"> Username:<input type="text" name="user" maxlength="30" value="<? echo $form->value("user"); ?>"></td><td><? echo $form->error("user"); ?></td></tr><BR> Password:<input type="password" name="pass" maxlength="30" value="<? echo $form->value("pass"); ?>"></td><td><? echo $form->error("pass"); ?></td></tr> <input type="hidden" name="sublogin" value="1"> <br> <input type="submit" value="Login"></td></tr> </form> <?php }else{ $query = "SELECT id, title FROM blog_posts"; $result = @mysql_query($query); if ($result) { echo '<div align="center"> <table border="0"> <tr> <td><b>ID</b></td> <td><b>Title</b></td> <td><b>Delete</b></td> <td><b>Edit</b></td> </tr>'; while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo '<tr> <td>'.$row['id'].'</td> <td>'.$row['title'].'</td> <td><a href="include/delete_news.php?id='.$row['id'].'">Delete</a></td> <td><a href="include/edit_news.php?id='.$row['id'].'">Edit </tr>'; } } else { echo 'Sorry, but we could not retrieve any blogroggoring records.'; } echo '<a href="?s=addblog" title="addblog" id="addblog"><span>Add Blog</span></a>'; } ?> That's for the bloggroggering section, that's how it would normally work. How would I change it to start using my link system. (I'm sorry if none of this is clear, i'm hopped up on cold medication and i'm insanely sick. :< )
  3. I have a little cms that's not protected (sites not out yet, so no worries =D). But from it you can add news, edit news, and soon you can add tutorials, links etc. I only want admin access for it. How would I secure it? I did make security levels for users, if I incorporated that would it be insecure? Any help would be appreciated. =D
  4. Thanks! More importantly, thank you everyone.
  5. I'm pretty new to php/mysql, could you explain abit?
  6. I like the design but you should load everything into the index. And the index will contain the header,footer,left column, then when you click something it loading the section in index to a different page. It'll cut the load time abit and just make it nicer. Also use CSS for the image ontop and have it in the background. I'm obsessed with having the header in the background. VBnet/tutorials.html = broken link User credentials are sent in clear text around 20 times. Trace method is enabled on your server which leads to ARP posioning. You might wanna talk to your host about the trace method and fix the link. The credential thing is no biggie, it's a pretty low security risk most sites do have the credentials being sent in clear text.
  7. Basically I have a comment system on posts. When I try opening it I get an error (no thread selected) Which the link should be "http://localhost/index.php?s=comments=1" Now the 1 is '.$url'. I define the URL by using this... if ($result) { while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $url = 'index.php?s=comments='.$row['id']; echo '<p><b>'.$row['title'].'</b><br /> '.$row['sd'].'<br /> Posted by : <b>'.$row['author'].'</b><br /> '.$row['post'].'<br /> <a href="javascript:openComments(\''.$url.'\')"> <a href=\''.$url.'\' title="comments" id="comments"><span>Comments</span></a></a></p>'; So how would I change the index to accomidate that? The index is what defines what the URL is linked to. <?php if ($s == "main") { include("include/news.php"); } else if ($s == "login") { include("include/login.php"); } else if ($s == "logout") { include("include/process.php"); } else if ($s == "register") { include("include/register.php"); } else if ($s == "profile") { include("include/userinfo.php"); } else if ($s == "comments") { include("include/comments.php"); } else if ($s == "admin") { include("include/addnews.php"); } else if ($s == "downloads") { include("include/downloads.php"); } else if ($s == "tutorials") { include("include/tutorials.php"); } else if ($s == "author") { include("include/author.php"); } else if ($s == "links") { include("include/links.php"); } else { echo "<p class=\"error\">The section $s does not exist!</p>\n"; } ?> Thanks, I'm sure it's really easy, i'm beating myself up over this.
  8. Due to the amount of shaping and re-shaping he does, I doubt it. But who knows.
  9. Me and a buddy had a proxy which stored all passwords in a database, i stopped it though.  Abit too unethical for me.
  10. [quote author=Jenk link=topic=124711.msg522450#msg522450 date=1170755426] If you are going to cling onto the point about arabic writing, you may as well just give up now. It's a minor point at best. Besides which, no where does he state he wants to have right to left reading, all he has simply asked is which side of the screen do we prefer the navigation menu/bar to be on when browsing. [/quote] Indeed we were going off topic. Depends on how the layout looks with it, it all needs to flow.
  11. Oh yeah, I removed that a bit back to prove to them that file extensions meant nothing. They were claiming that any file that ended with ".php" was a php file, and that nothing else would be php, or nothing else could use the php extension. If the person saw the phpBB it would be a dead giveaway. I'll be adding that back in when I get home later. As for the note about phpBB being garbage, have you taken a look into phpBB3? It's got file attachments built-in, along with most of the majorly used mods out there, and a ton of extra performance and security. I'm planning on upgrading as soon as it releases. I'm also going to be modifying my board to stop the spam accounts using a few of my own human checking methods (not generic CAPTCHAs, i.e. text/numbers in image). Oddly enough i have a checkbox for "are you human?" I also have advanced image verification. Still spam got though.
  12. [quote author=Jenk link=topic=124711.msg522434#msg522434 date=1170754180] It might not be the minority.. his site may be niched for the Arabic user base, or, he is maintaining a multi-lingual site. Another option is to let the user choose, via an option in the "control panel." Simply have two (or more) CSS stylesheets, and an option to choose them. [/quote] Yes, but if it's english why would this even matter? English is read from left to right, top to bottom.  He seems to speak English quite well I doubt it's majority Arabic. Good idea on the control panel.  Maybe add an option on registration aswell?
×
×
  • 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.