| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/store.tiacyrusxxx.com/public_html/dev/TSCP2/ |
Upload File : |
<?php
/*
include_once ('config.php');
dbConn();
*/
$contents = "RewriteEngine on\n";
// MODELS
$sql = @mysql_query("SELECT model_id, name FROM cms_models ORDER BY name") or die('Error:' . mysql_error());
while ($row = mysql_fetch_array($sql)) {
$url = str_replace(" ","",strtolower($row['name']));
$contents .= "RewriteRule ^".$url."$ model.php?id=".$row['model_id']." [L]\n";
}
/*
$sql = @mysql_query("SELECT photographer_id, name FROM cms_photographers ORDER BY name") or die('Error:' . mysql_error());
while ($row = mysql_fetch_array($sql)) {
$url = str_replace(" ","",strtolower($row['name']));
$contents .= "RewriteRule ^".$url."$ photographer.php?id=".$row['photographer_id']." [L]\n";
}
$write_file = $baseroot.".htaccess";
$write = @fopen($write_file, 'w') or die("can't open file");
@fwrite($write, $contents);
@fclose($write);
*/
//printf("<meta http-equiv=\"Refresh\" content=\"0;url=./".$_GET['next']."\">");
?>