Jump to content

Faks

Members
  • Posts

    62
  • Joined

  • Last visited

Everything posted by Faks

  1. As we see i got warning why ? i recommend administration to RFTM and rules . why should i get a warning for allowing other for hacking my own server aye ? explain this point of view .... i see administration is basing on rule nr 9 but in this case it's can't be used because i authorize actions for others .
  2. code is taken from phpacademy video jQuery Tutorials: Dynamic countdown to redirect Problem is simple countdown doesn't appears maybe somebody knows how to fix it ? any way here is a demo page code in live action http://hostings.flush.ws/tests.php | status: broken
  3. leftjoin could resolve all find mysql lefjoin !
  4. check previews thread and don't spam the forum ... same bug i see here and MISTAKE
  5. Problem should be gone and don't screw around with coding if you don't understanding it are we clear ? <?php require('connection.php'); if (isset($_GET['op']) && $_GET['op'] == "d") if($_GET['op'] == "d" && !empty($_GET['id']) ) { $result = mysql_query($query) or die(mysql_error()); } $query="SELECT fid, cust_no, fname, lname, office FROM psrinfo"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array( $result )) { echo "<table width='75%' border='1' align='center' cellpadding='0' cellspacing='0'> <tr> <th scope='col'><form name='form1' method='post' action=''> Customer No: <input name='cust_no' type='text' id='cust_no' value='{$row['cust_no']}'> <br> <b>Office:</b> <input name='office' type='text' id='office' value='{$row['office']}'> <br> <b>Customer First Name:</b> <input name='fname' type='text' id='fname' value='{$row['fname']}'> <br> <b>Customer Last Name:</b> <input name='lname' type='text' id='lname' value='{$row['lname']}'> </form></th> </tr> </table>"; } ?>
  6. http://www.phpfreaks.com/tutorial/basic-pagination full tutorial how to make it use it wise
  7. odd but i tested and both form's use same query's and they execute but still 1. form not working but 2.works no Mather how odd it sounds if wish to test it check it on website but i am still wondering what could cause such issues :'( is there anybody who knows how to fix the bug
  8. My problem could be odd if say it but i will spill it out, only don't say I am mad completely jut a bit ! 1.when comment is first in whole news if i press edit appear html form but if i am trying to submit any information it returns to comments and don't update ! 2.if there were more than one comment in news if i press edit appear html forms 1.not working | 2.working and do updates | 3.were appear but is gone but not sure does bug will return also not working ! Sample how it looks ! This is indeed odd hope somebody has knowledge in such issues or at least a cure for such severe bug website http://hostings.flush.ws/ user guest password guest11 | to test bug :'( go to the news comments and spam as much needed ! Link to edit code echo "<a href='/?section=nwcomment&id=".$id."&comment=edit&id_edit=".$row_news_comment['hosting_comment_id']."'>Edit Comment</a>"; Update code as far i know it is correct at least i do hope sow (also this code is inside while cycle ) if ($_GET['comment'] == 'edit') { $comment_id_edit = (INT)$_GET['id_edit']; $comment_text = $row_news_comment['hosting_comment_text']; $edit_comment_text = $_POST['hosting_comment_text']; if(isset($_POST['hosting_comment_text'])) { mysql_query("UPDATE hosting_comment SET hosting_comment_text = '".$edit_comment_text."' WHERE hosting_comment_id = '".$comment_id_edit."' ") or die (mysql_error()); } if (isset($_POST['Submit'])) { echo "<meta http-equiv='REFRESH' content='0;url=/?section=nwcomment&id=".$id."'>"; } echo ("<form action='/?section=nwcomment&id=".$id."&comment=edit&id_edit=".$comment_id_edit."'' id='edit_comment' name='edit_comment' method='post'> <p> <textarea name='hosting_comment_text' cols='50' rows='10' id='textarea' value='$edit_comment_text' ></textarea> <p> <input type='submit' name='Submit' id='button' value='{$lang['BODY_NEWS_COMMENT_SUBMIT']}' /> <input type='reset' name='Reset' id='button' value='{$lang['BODY_NEWS_COMMENT_RESET']}' /> </p> </form>"); } if is needed more complete code just ask i will publish it (i hope to fix bug as soon possible grand opening of registration will be on the Aprils Fools Day)
  9. well thanks for everybody for trying ! I found my mistake and resolved it by the way mine code is correct only it needed few changes
  10. again bump that's sad :-\
  11. i am using code witch were posted and still is the bug i don't use any more mine code .... #echo "<div align='center' class='thread'>Forum</div><table width='900' border='1' align='center' cellpadding='0' cellspacing='0'>"; echo "<div align='center' class='thread'>Forum</div>"; $forum_select = "select hosting_forum.hosting_forum_id,hosting_forum.hosting_forum_title,hosting_forum.hosting_forum_description,hosting_forum.hosting_forum_icon,hosting_forum_group.hosting_forum_group_name from hosting_forum, hosting_forum_group where hosting_forum.hosting_forum_group_id = hosting_forum_group.hosting_forum_group_id" or die (mysql_error()); $forum_selects = mysql_query($forum_select); #echo "<tr><td colspan='6' style='padding: 7px;color:red'>"."Forumu nosaukimi nedarbojas"."</td></tr>"; while ($forum_show = mysql_fetch_array($forum_selects)) { #$forum_name = mysql_query("SELECT * FROM hosting_forum_group"); # while($forum_group_name = mysql_fetch_array($forum_name)) #{ #if ($forum_group_name['hosting_forum_group_id'] == $forum_show['hosting_forum_group_id']) #{ echo "<table width='900' border='1' align='center' cellpadding='0' cellspacing='0'>"; echo "<tr><td colspan='6' style='padding: 7px;color:red'>".$forum_show['hosting_forum_group_name']."</td></tr>"; echo "<tr><td style='white-space: nowrap;' align='center' width='1%'>".$forum_show['hosting_forum_icon']."</td>"; echo "<td>"."<a href='/?section=forumview&id=".$forum_show['hosting_forum_id']." '>".$forum_show['hosting_forum_title']."</a><br />".$forum_show['hosting_forum_description']."</td>"; echo "<td width='230'> </td></tr>"; echo "</table><br>"; #} } here is the new code it even doesn't look like at the beginning at all . also i am granting access to website to you http://hostings.flush.ws/?section=forum user help pass help22
  12. at beginning of topic there is Code .
  13. bump :-\ :'(
  14. yes but i have to modify it but i am going to check it maybe it resolves the problem but as i see the code i am thinking about left join instead double select witch buffers the code sad news bug is still present even with new code !
  15. this is what i am trying to achieve i have edited image to show it .
  16. this code won't work because forum_group is different table in database the mistake is secondary forum must be once not twice showed they should be merged under it like in this forum index i hope somebody understand me because as native i having difficulty's to describe it in details .
  17. This is how looks bug looks : :-\ Code echo "<div align='center' class='thread'>Forum</div>"; $forum_select = mysql_query("SELECT * FROM forum") or die (mysql_error()); while ($forum_show = mysql_fetch_array($forum_select)) { $forum_name = mysql_query("SELECT * FROM forum_group"); while($forum_group_name = mysql_fetch_array($forum_name)) { if ($forum_group_name['hosting_forum_group_id'] == $forum_show['hosting_forum_group_id']) { echo "<table width='900' border='1' align='center' cellpadding='0' cellspacing='0'>"; echo "<tr><td colspan='6' style='padding: 7px;color:red'>".$forum_group_name['hosting_forum_group_name']."</td></tr>"; echo "<tr><td style='white-space: nowrap;' align='center' width='1%'>".$forum_show['hosting_forum_icon']."</td>"; echo "<td>"."<a href='/?section=forumview&id=".$forum_show['hosting_forum_id']." '>".$forum_show['hosting_forum_title']."</a><br />".$forum_show['hosting_forum_description']."</td>"; echo "<td width='230'> </td></tr>"; echo "</table><br>"; } } } I Hope to resolve the problem maybe somebody can explain where is my mistake to fix it and resolve it !
  18. thanks i for good idea and it helped me to resolve the problem
  19. but how
  20. bump nobody can help me ?
  21. Hi all i am working on forum and i am close to testing stage and right now i am fighting serious bugs with $_GET ... http://hostings.flush.ws/?section=forumview&id=1 [you can manipulate the values and create unknown threads in unknown forums ] http://hostings.flush.ws/?section=forumthreadsubmit&id=1 [you can manipulate the values and create unknown threads ] also can mix both and get like backdoor trojan without admin knowledge if ($id = ((isset($_GET['id'])) && (ctype_digit($_GET['id'])) ? (int)$_GET['id'] : '')) { true; } else { echo $redirect.false; } Sow if somebody could show example how to counter attack value changing You can login in web with user help pass help12 address http://hostings.flush.ws/?section=news
  22. yeah did sow well one mistake less but edit and delete not working !
  23. and how to resolve this ?
×
×
  • 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.