TheUnknown Posted August 17, 2008 Share Posted August 17, 2008 /// FIND CLASS A // $classa = explode("<span class=\"a\">", $aud[0]); $classa = explode("</span>", $classa[1]); /// FIND CLASS A // $classs = explode("<span class=\"s\">", $aud[0]); $classs = explode("</span>", $classa[1]); /// FIND CLASS U // $classu = explode("<span class=\"u\">", $aud[0]); $classu = explode("</span>", $classu[1]); /// FIND CLASS D // $classd = explode("<span class=\"d\">", $aud[0]); $classd = explode("</span>", $classd[1]); //TAGS // $tagz = explode("»", $aud[0]); $tagz = explode("</dt>", $tagz[1]); //LINKz $linkz = explode("href=\"/", $aud[0]); $linkz = explode("\">", $linkz[1]); //NAMEZ $namez = explode($linkz[0]."\">", $aud[0]); $namez = explode("</a>", $namez[1]); //STYLE $stylez = explode("style=\"", $aud[0]); $stylez = explode("><a href=", $stylez[1]); if (!empty($aud[0])) { $name = $aud[0]; $link = $link[0]; $classa = $classa[0]; // 2 DAYS AGO $classs = $classs[0]; // 699MB $classu = $classu[0]; // YESÝL YAZILI UPLOADERS $classd = $classd[0]; // DOWNLOADERS $tagz = $tagz[0]; // TAGS $linkz = $linkz[0]; //links $namez = $namez[0]; //names $stylez = $stylez[0]; //names $stylez = str_replace("/images/", $CFG['domain']."/images/", $stylez); if (preg_match("|accept|", $aud[0])) { } $namezx=strtr($namez,"ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜßàáâãäåæçèéêëìíîïñòóôõöøùúûüÿÜü??????", "AAAAAAACEEEEIIIINOOOOOOUUUUsaaaaaaaceeeeiiiinoooooouuuuyUuSsGgIi"); $namezx = strip_tags($namezx); $beforeseo = array("/[^a-zA-Z0-9]/", "/-+/", "/-$/"); $afterseo = array("-", "-", ""); $namezx = strtolower(preg_replace($beforeseo, $afterseo , $namezx)); echo " <tr class=\"resultsrow\"> <td class=\"name\" style=\"".$stylez."\"><a href=\"".$CFG['domain']."/dl/".$namezx."/".$linkz."\" title=\"\">".$namez."</a> » ".$tagz." This is an example of what shows up in the search browser mysite.com/dl/made-of-honor-2008-dvdrip-axxo/769186992b30095794171a52af23f00f4b654a9d im trying to get rid of the 769186992b30095794171a52af23f00f4b654a9d any ideas ? Thanks Link to comment https://forums.phpfreaks.com/topic/120119-remove/ Share on other sites More sharing options...
redarrow Posted August 17, 2008 Share Posted August 17, 2008 This will help u, just replace the $x with the correct array name......... <?php $x="http://www.mysite.com/dl/made-of-honor-2008-dvdrip-axxo/769186992b30095794171a52af23f00f4b654a9d"; $res=substr($x,0,56); echo $res; ?> Link to comment https://forums.phpfreaks.com/topic/120119-remove/#findComment-618811 Share on other sites More sharing options...
TheUnknown Posted August 17, 2008 Author Share Posted August 17, 2008 Thanks for the help but i think it issues falls here <td class=\"name\" style=\"".$stylez."\"><a href=\"".$CFG['domain']."/dl/".$namezx."/".$linkz."\" title=\"\">".$namez."</a> » ".$tagz." Link to comment https://forums.phpfreaks.com/topic/120119-remove/#findComment-618812 Share on other sites More sharing options...
redarrow Posted August 17, 2008 Share Posted August 17, 2008 find the correct varable with the numbers/letters in then use sub str this goes in the php area before the current posted issue.......... <?php $tagz=substr($tagz,0,56); ?> example before this place my code sorry guessing but use substr as each varable holds diffent values ok mate. echo " <tr class=\"resultsrow\"> <td class=\"name\" style=\"".$stylez."\"><a href=\"".$CFG['domain']."/dl/".$namezx."/".$linkz."\" title=\"\">".$namez."</a> » ".$tagz." brake down of substr...... $tagz <<<<<<varable name = <<<<<<<<<<<<equal substr <<< php function name ( <<<<<< open function $tagz <<<<<<<< add the varable to use within the function , <<<<<<<< comma to tell the function there another somthink commining a number in this case 0<<<<<<<< where starting at 0 meaning the first letter that the function counts from. ,<<<<<<<<<< another comma 56 <<<<<<< the number we want the funtion to stop at and not show anythink above it )<<<<<<<<close the function ;<<< tell php end the current php function. last thing read the manual lol sorry coulnt rezist.......... Link to comment https://forums.phpfreaks.com/topic/120119-remove/#findComment-618814 Share on other sites More sharing options...
TheUnknown Posted August 18, 2008 Author Share Posted August 18, 2008 $linkz is the varable that prints out the hash 769186992b30095794171a52af23f00f4b654a9d Link to comment https://forums.phpfreaks.com/topic/120119-remove/#findComment-618818 Share on other sites More sharing options...
redarrow Posted August 18, 2008 Share Posted August 18, 2008 u asked you wanted the what i can guess is the hash gon what u mean..... are u asking now u want the hash unhased lol Link to comment https://forums.phpfreaks.com/topic/120119-remove/#findComment-618820 Share on other sites More sharing options...
TheUnknown Posted August 18, 2008 Author Share Posted August 18, 2008 OMG dude i just want this 769186992b30095794171a52af23f00f4b654a9d removed from the search bar Link to comment https://forums.phpfreaks.com/topic/120119-remove/#findComment-618821 Share on other sites More sharing options...
unrelenting Posted August 18, 2008 Share Posted August 18, 2008 $linkz is the varable that prints out the hash 769186992b30095794171a52af23f00f4b654a9d Just removed the $linkz variable then. <td class=\"name\" style=\"".$stylez."\"><a href=\"".$CFG['domain']."/dl/".$namezx."/".$linkz."\" title=\"\">".$namez."</a> » ".$tagz." Like this: <td class=\"name\" style=\"".$stylez."\"><a href=\"".$CFG['domain']."/dl/".$namezx."\" title=\"\">".$namez."</a> » ".$tagz." Link to comment https://forums.phpfreaks.com/topic/120119-remove/#findComment-618823 Share on other sites More sharing options...
TheUnknown Posted August 18, 2008 Author Share Posted August 18, 2008 thanks un Thats how for i got and now im at a stand still Now the browser shows site.com/dl/made-of-honor-2008-dvdrip-axxo PAGE CANT BE DISplayed I cant get past this part Link to comment https://forums.phpfreaks.com/topic/120119-remove/#findComment-618824 Share on other sites More sharing options...
unrelenting Posted August 18, 2008 Share Posted August 18, 2008 thanks un Thats how for i got and now im at a stand still Now the browser shows site.com/dl/made-of-honor-2008-dvdrip-axxo PAGE CANT BE DISplayed I cant get past this part What exactly should it say? Link to comment https://forums.phpfreaks.com/topic/120119-remove/#findComment-618825 Share on other sites More sharing options...
TheUnknown Posted August 18, 2008 Author Share Posted August 18, 2008 site/dl/made-of-honor-2008-dvdrip-axxo/ /dl/made-of-honor-2008-dvdrip-axxo.html im not sure Link to comment https://forums.phpfreaks.com/topic/120119-remove/#findComment-618826 Share on other sites More sharing options...
unrelenting Posted August 18, 2008 Share Posted August 18, 2008 site/dl/made-of-honor-2008-dvdrip-axxo/ /dl/made-of-honor-2008-dvdrip-axxo.html im not sure Well you need to know exactly what it should say to open the page correctly before you start adjusting the address. Link to comment https://forums.phpfreaks.com/topic/120119-remove/#findComment-618827 Share on other sites More sharing options...
TheUnknown Posted August 18, 2008 Author Share Posted August 18, 2008 i would like the links to say www.site.com/dl/made-of-honor-2008-dvdrip-axxo/ Instead of www.site.com/dl/made-of-honor-2008-dvdrip-axxo/34543654365437654365363etrre Link to comment https://forums.phpfreaks.com/topic/120119-remove/#findComment-618828 Share on other sites More sharing options...
redarrow Posted August 18, 2008 Share Posted August 18, 2008 this is a mod_rewrite issue then, becouse all the end encodded stuff needs to be there................. Link to comment https://forums.phpfreaks.com/topic/120119-remove/#findComment-618833 Share on other sites More sharing options...
unrelenting Posted August 18, 2008 Share Posted August 18, 2008 i would like the links to say www.site.com/dl/made-of-honor-2008-dvdrip-axxo/ Instead of www.site.com/dl/made-of-honor-2008-dvdrip-axxo/34543654365437654365363etrre Try this: <td class=\"name\" style=\"".$stylez."\"><a href=\"".$CFG['domain']."/dl/".$namezx."/" title=\"\">".$namez."[/url] » ".$tagz." Link to comment https://forums.phpfreaks.com/topic/120119-remove/#findComment-618851 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.