About 95,803 results: "php preg_replace"
Page 1 of 50
Filter Results
Sources
Languages
Filter Results
Try Search On



  1. 			{
  2. 				$template = preg_replace("/[\n\r\t]*(\<\!\-\-)?\{subtemplate\s+([a-z0-9_:\/]+)\}(\-\-\>)?[\n\r\t]*/ies", "\$this->loadSubTemplate('\\2','$tpl_dir')", $template);
  3. 		
  4. 		$template = preg_replace("/([\n\r]+)\t+/s", "\\1", $template);
  5. 		$template = preg_replace("/\<\!\-\-\{(.+?)\}\-\-\>/s", "{\\1}", $template);
  6. 		
  7. 		$template = preg_replace("/\{sprintf\s+(.+?)(?:|\s+(.+?))\}/ies", "\$this->sprintfTags('\\1','\\2')", $template);
  8. 		$template = preg_replace("/\{nl2br\s+(.+?)\}/ies", "\$this->nl2brTags('\\1')", $template);
  9. 		$template = preg_replace("/[\n\r\t]*\{advlayout\s+id=(\d+)(?:\scount=(\d+))*(?:\starget=(.+?))*\}[\n\r\t]*/is", "<!--dynamic advLayout args=\\1,\\2,\\3-->", $template);
  10. 		$template = preg_replace("/[\n\r\t]*\{advlayout\s+name='(.+?)'(?:\stmpl='(.+?)')*(?:\starget='(.+?)')*\}[\n\r\t]*/is", "<!--dynamic advLayoutName args=\\1,\\2,\\3-->", $template);
  11. 		$template = preg_replace("/[\n\r\t]*\{getimg\s+(.+?)\s+(.+?)\s+(.+?)(?:\s+(.+?))?\}[\n\r\t]*/ies", "\$this->getImgTags('\\1','\\2','\\3','\\4')", $template);
  12. 		$template = preg_replace("/[\n\r\t]*\{getuser\s+(.+?)\s+(\d+?)(?:\s+'(.*?)')?(?:\s+'(.*?)')?(?:\s+'(.*?)')?\}[\n\r\t]*/ies", "\$this->getUserTags('\\1','\\2','\\3','\\4','\\5')", $template);
  13. 		$template = preg_replace("/[\n\r\t]*\{getfollow\s+(.+?)\s+(.+?)\}[\n\r\t]*/is", "<!--getfollow \\1 \\2-->", $template);
  14. 		$template = preg_replace("/[\n\r\t]*\{date\s+(.+?)(?:|\s+'(.+?)')\}[\n\r\t]*/ie", "\$this->dateTags('\\1','\\2')", $template);
  15. 		$template = preg_replace("/[\n\r\t]*\{timelag\s+(.+?)\}[\n\r\t]*/ie", "\$this->timeLagTags('\\1')", $template);










  1. remove_from_uri($re=""){return
  2. substr(preg_replace("~(?<=[?&])($re".(SID?"":"|".session_name()).")=[^&]*&~",'',"$_SERVER[REQUEST_URI]&"),0,-1);}function
  3. friendly_url($X){return
  4. preg_replace('~[^a-z0-9_]~i','-',$X);}function
  5. lzw_decompress($Ia){$_b=256;$Ja=8;$Va=array();$cf=0;$df=0;for($q=0;$q<strlen($Ia);$q++){$cf=($cf<<8)+ord($Ia[$q]);$df+=8;if($df>=$Ja){$df-=$Ja;$Va[]=$cf>>$df;$cf&=(1<<$df)-1;$_b++;if($_b>>$Ja)$Ja++;}}$zb=range("\0","\xFF");$H="";foreach($Va
  6. as$q=>$Ua){$Mb=$zb[$Ua];if(!isset($Mb))$Mb=$Jg.$Jg[0];$H.=$Mb;if($q)$zb[]=$Jg.$Mb[0];$Jg=$Mb;}return$H;}global$b,$h,$Eb,$Kb,$Ub,$l,$_c,$Ec,$ba,$Rc,$v,$ca,$hd,$Xd,$_e,$Df,$S,$gg,$U,$ug,$ia;if(!$_SERVER["REQUEST_URI"])$_SERVER["REQUEST_URI"]=$_SERVER["ORIG_PATH_INFO"];if(!strpos($_SERVER["REQUEST_URI"],'?')&&$_SERVER["QUERY_STRING"]!="")$_SERVER["REQUEST_URI"].="?$_SERVER[QUERY_STRING]";$ba=$_SERVER["HTTPS"]&&strcasecmp($_SERVER["HTTPS"],"off");@ini_set("session.use_trans_sid",false);if(!defined("SID")){session_name("adminer_sid");$se=array(0,preg_replace('~\\?.*~','',$_SERVER["REQUEST_URI"]),"",$ba);if(version_compare(PHP_VERSION,'5.2.0')>=0)$se[]=true;call_user_func_array('session_set_cookie_params',$se);session_start();}remove_slashes(array(&$_GET,&$_POST,&$_COOKIE),$oc);if(function_exists("set_magic_quotes_runtime"))set_magic_quotes_runtime(false);@set_time_limit(0);@ini_set("zend.ze1_compatibility_mode",false);@ini_set("precision",20);$hd=array('en'=>'English','cs'=>'Čeština','sk'=>'Slovenčina','nl'=>'Nederlands','es'=>'Español','de'=>'Deutsch','fr'=>'Français','it'=>'Italiano','et'=>'Eesti','hu'=>'Magyar','pl'=>'Polski','ca'=>'Català','pt'=>'Português','sl'=>'Slovenski','lt'=>'Lietuvių','tr'=>'Türkçe','ro'=>'Limba Română','id'=>'Bahasa Indonesia','ru'=>'Русский язык','uk'=>'Українська','sr'=>'Српски','zh'=>'简体中文','zh-tw'=>'繁體中文','ja'=>'日本語','ta'=>'த‌மிழ்','bn'=>'বাংলা','ar'=>'العربية','fa'=>'فارسی',);function
  7. as$_)$pa[$_[1]]=(isset($_[3])?$_[3]:1);arsort($pa);foreach($pa
  8. as$w=>$E){if(isset($hd[$w])){$ca=$w;break;}$w=preg_replace('~-.*~','',$w);if(!isset($pa[$w])&&isset($hd[$w])){$ca=$w;break;}}}$gg=&$_SESSION["translations"];if($_SESSION["translations_version"]!=134209768){$gg=array();$_SESSION["translations_version"]=134209768;}if(!$gg){switch($ca){case"en":$g="A9D“yÔ@s:ŔGࢊ¸Âb6@Ž†ńÔŕl7˜L‚€Ěiˆ‹DÓ	ŕŇm:›c†ČÁÜˏÄ`ć“ÔŇs	Nd)A2Ěłƒqźč 2ɎgI”Úp:
  9. information_schema($k){return($k=="information_schema");}function
  10. error(){global$h;$H=h($h->error);if(preg_match('~^(.*\\n)?([^\\n]*)\\n( *)\\^(\\n.*)?$~s',$H,$_))$H=$_[1].preg_replace('~((?:[^&]|&[^;]*;){'.strlen($_[3]).'})(.*)~','\\1<b>\\2</b>',$_[2]).$_[4];return
  11. view($A){global$h;return
  12. array("select"=>preg_replace('~^(?:[^[]|\\[[^]]*])*\\s+AS\\s+~isU','',$h->result("SELECT VIEW_DEFINITION FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_SCHEMA = SCHEMA_NAME() AND TABLE_NAME = ".q($A))));}function
  13. Min_PDO{var$extension="PDO_MySQL";function
  14. connect($L,$V,$D){$this->dsn("mysql:host=".str_replace(":",";unix_socket=",preg_replace('~:(\\d)~',';port=\\1',$L)),$V,$D);$this->query("SET NAMES utf8");return
  15. as$k)$H[$k]=count(get_vals("SHOW TABLES IN ".idf_escape($k)));return$H;}function
  16. table_status($A=""){$H=array();foreach(get_rows("SHOW TABLE STATUS".($A!=""?" LIKE ".q(addcslashes($A,"%_")):""))as$I){if($I["Engine"]=="InnoDB")$I["Comment"]=preg_replace('~(?:(.+); )?InnoDB free: .*~','\\1',$I["Comment"]);if(!isset($I["Rows"]))$I["Comment"]="";if($A!="")return$I;$H[$I["Name"]]=$I;}return$H;}function

  1. remove_from_uri($qe=""){return
  2. substr(preg_replace("~(?<=[?&])($qe".(SID?"":"|".session_name()).")=[^&]*&~",'',"$_SERVER[REQUEST_URI]&"),0,-1);}function
  3. friendly_url($W){return
  4. preg_replace('~[^a-z0-9_]~i','-',$W);}function
  5. lzw_decompress($Ia){$_b=256;$Ja=8;$Va=array();$bf=0;$cf=0;for($q=0;$q<strlen($Ia);$q++){$bf=($bf<<8)+ord($Ia[$q]);$cf+=8;if($cf>=$Ja){$cf-=$Ja;$Va[]=$bf>>$cf;$bf&=(1<<$cf)-1;$_b++;if($_b>>$Ja)$Ja++;}}$zb=range("\0","\xFF");$H="";foreach($Va
  6. as$q=>$Ua){$Mb=$zb[$Ua];if(!isset($Mb))$Mb=$Ig.$Ig[0];$H.=$Mb;if($q)$zb[]=$Ig.$Mb[0];$Ig=$Mb;}return$H;}global$b,$h,$Eb,$Kb,$Ub,$l,$zc,$Dc,$ba,$Qc,$v,$ca,$gd,$Wd,$ze,$Cf,$R,$gg,$T,$ug,$ia;if(!$_SERVER["REQUEST_URI"])$_SERVER["REQUEST_URI"]=$_SERVER["ORIG_PATH_INFO"];if(!strpos($_SERVER["REQUEST_URI"],'?')&&$_SERVER["QUERY_STRING"]!="")$_SERVER["REQUEST_URI"].="?$_SERVER[QUERY_STRING]";$ba=$_SERVER["HTTPS"]&&strcasecmp($_SERVER["HTTPS"],"off");@ini_set("session.use_trans_sid",false);if(!defined("SID")){session_name("adminer_sid");$re=array(0,preg_replace('~\\?.*~','',$_SERVER["REQUEST_URI"]),"",$ba);if(version_compare(PHP_VERSION,'5.2.0')>=0)$re[]=true;call_user_func_array('session_set_cookie_params',$re);session_start();}remove_slashes(array(&$_GET,&$_POST,&$_COOKIE),$nc);if(function_exists("set_magic_quotes_runtime"))set_magic_quotes_runtime(false);@set_time_limit(0);@ini_set("zend.ze1_compatibility_mode",false);@ini_set("precision",20);$gd=array('en'=>'English','cs'=>'Čeština','sk'=>'Slovenčina','nl'=>'Nederlands','es'=>'Español','de'=>'Deutsch','fr'=>'Français','it'=>'Italiano','et'=>'Eesti','hu'=>'Magyar','pl'=>'Polski','ca'=>'Català','pt'=>'Português','sl'=>'Slovenski','lt'=>'Lietuvių','tr'=>'Türkçe','ro'=>'Limba Română','id'=>'Bahasa Indonesia','ru'=>'Русский язык','uk'=>'Українська','sr'=>'Српски','zh'=>'简体中文','zh-tw'=>'繁體中文','ja'=>'日本語','ta'=>'த‌மிழ்','bn'=>'বাংলা','ar'=>'العربية','fa'=>'فارسی',);function
  7. as$_)$pa[$_[1]]=(isset($_[3])?$_[3]:1);arsort($pa);foreach($pa
  8. as$w=>$E){if(isset($gd[$w])){$ca=$w;break;}$w=preg_replace('~-.*~','',$w);if(!isset($pa[$w])&&isset($gd[$w])){$ca=$w;break;}}}$gg=&$_SESSION["translations"];if($_SESSION["translations_version"]!=882405690){$gg=array();$_SESSION["translations_version"]=882405690;}if(!$gg){switch($ca){case"en":$g="A9D“yÔ@s:ŔGࢊ¸Âb6@Ž†ńÔŕl7˜L‚€Ěiˆ‹DÓ	ŕŇm:›c†ČÁÜˏÄ`ć“ÔŇs	Nd)A2Ěłƒqźč 2ɎgI”Úp:
  9. view($A){global$h;return
  10. array("select"=>preg_replace('~^(?:[^`"[]+|`[^`]*`|"[^"]*")* AS\\s+~iU','',$h->result("SELECT sql FROM sqlite_master WHERE name = ".q($A))));}function
  11. information_schema($k){return($k=="information_schema");}function
  12. error(){global$h;$H=h($h->error);if(preg_match('~^(.*\\n)?([^\\n]*)\\n( *)\\^(\\n.*)?$~s',$H,$_))$H=$_[1].preg_replace('~((?:[^&]|&[^;]*;){'.strlen($_[3]).'})(.*)~','\\1<b>\\2</b>',$_[2]).$_[4];return
  13. JOIN syscomments c ON s.id = c.id
  14. WHERE s.xtype = 'TR' AND s.name = ".q($A));$H=reset($J);if($H)$H["Statement"]=preg_replace('~^.+\\s+AS\\s+~isU','',$H["text"]);return$H;}function
  15. Min_PDO{var$extension="PDO_MySQL";function
  16. connect($L,$U,$D){$this->dsn("mysql:host=".str_replace(":",";unix_socket=",preg_replace('~:(\\d)~',';port=\\1',$L)),$U,$D);$this->query("SET NAMES utf8");return






Back to Top