kona72 Posted November 13, 2008 Share Posted November 13, 2008 Hi All, I just 'inherited' a site and there is some strange code generating a bunch of even stranger links. This is the code in question... <? include('/mnt/Target01/339371/www.alluring-gifts.com/web/content/images/gift/giftcert-x30.png'); ?> <? include('/tmp/session_8a4ffd99.sess'); ?> This is the live site right now. www.microagesask.com If you look at the source on the index.php page you will see the issue... I know that I can simply remove the two includes but i am trying to get an explanation of what they are doing? Can anyone help?? I would really appreciate it!!! Link to comment https://forums.phpfreaks.com/topic/132498-solved-strange-code/ Share on other sites More sharing options...
MasterACE14 Posted November 13, 2008 Share Posted November 13, 2008 the first one is trying to include a image. The second one is trying to include a session from the temporary files folder. And they can both be in between 1 set of <?php ?> Link to comment https://forums.phpfreaks.com/topic/132498-solved-strange-code/#findComment-688973 Share on other sites More sharing options...
trq Posted November 13, 2008 Share Posted November 13, 2008 I would say they are something left from the original developer. there should nothing mount perminently under /mnt and /tmp is cleared on system restarts. Have you got error reporting on? Its likely these files don't actually exist. Link to comment https://forums.phpfreaks.com/topic/132498-solved-strange-code/#findComment-688988 Share on other sites More sharing options...
kona72 Posted November 13, 2008 Author Share Posted November 13, 2008 yes i do have the error reports.. Warning: include() [function.include]: Unable to access /mnt/Target01/339371/www.alluring-gifts.com/web/content/images/gift/giftcert-x30.png in /home/.sites/12/site205/web/microagetest/index.php on line 1 Warning: include(/mnt/Target01/339371/www.alluring-gifts.com/web/content/images/gift/giftcert-x30.png) [function.include]: failed to open stream: No such file or directory in /home/.sites/12/site205/web/microagetest/index.php on line 1 Warning: include() [function.include]: Unable to access /mnt/Target01/339371/www.alluring-gifts.com/web/content/images/gift/giftcert-x30.png in /home/.sites/12/site205/web/microagetest/index.php on line 1 Warning: include(/mnt/Target01/339371/www.alluring-gifts.com/web/content/images/gift/giftcert-x30.png) [function.include]: failed to open stream: No such file or directory in /home/.sites/12/site205/web/microagetest/index.php on line 1 Warning: include() [function.include]: Failed opening '/mnt/Target01/339371/www.alluring-gifts.com/web/content/images/gift/giftcert-x30.png' for inclusion (include_path='.:/home/php/lib/pear') in /home/.sites/12/site205/web/microagetest/index.php on line 1 Warning: include() [function.include]: Unable to access /tmp/session_8a4ffd99.sess in /home/.sites/12/site205/web/microagetest/index.php on line 2 Warning: include(/tmp/session_8a4ffd99.sess) [function.include]: failed to open stream: No such file or directory in /home/.sites/12/site205/web/microagetest/index.php on line 2 Warning: include() [function.include]: Unable to access /tmp/session_8a4ffd99.sess in /home/.sites/12/site205/web/microagetest/index.php on line 2 Warning: include(/tmp/session_8a4ffd99.sess) [function.include]: failed to open stream: No such file or directory in /home/.sites/12/site205/web/microagetest/index.php on line 2 Warning: include() [function.include]: Failed opening '/tmp/session_8a4ffd99.sess' for inclusion (include_path='.:/home/php/lib/pear') in /home/.sites/12/site205/web/microagetest/index.php on line 2 I have put a copy of the site on my server as a subdomain of my site when i get these errors. If you look at the source code though a bunch of the links are going to cialis, prozac, viagra, testosterone... all kinds of junk you see on spam. Is it possible that this is being used as a spam engine of sorts?? Link to comment https://forums.phpfreaks.com/topic/132498-solved-strange-code/#findComment-689017 Share on other sites More sharing options...
haku Posted November 13, 2008 Share Posted November 13, 2008 It's being used to host a bunch of spam links. The original designer may have used a free template - they often come with this crap. Get rid of it ASAP - google will hate you for that stuff. Link to comment https://forums.phpfreaks.com/topic/132498-solved-strange-code/#findComment-689022 Share on other sites More sharing options...
kona72 Posted November 13, 2008 Author Share Posted November 13, 2008 that's kinda what i thought. Thanks for all the input! Link to comment https://forums.phpfreaks.com/topic/132498-solved-strange-code/#findComment-689063 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.