Jump to content

Remove


TheUnknown

Recommended Posts

/// 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("&#187;", $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> &#187; ".$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

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> &#187; ".$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

$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> &#187; ".$tagz."

 

Like this:

 

<td class=\"name\" style=\"".$stylez."\"><a href=\"".$CFG['domain']."/dl/".$namezx."\" title=\"\">".$namez."</a> &#187; ".$tagz."

Link to comment
https://forums.phpfreaks.com/topic/120119-remove/#findComment-618823
Share on other sites

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] &#187; ".$tagz."

Link to comment
https://forums.phpfreaks.com/topic/120119-remove/#findComment-618851
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.