<?php
// Error Reporting..
//error_reporting(E_ALL);
// Set path to recipe installation..
define ('PATH', __DIR__."/");
// Database connection..
include(PATH.'control/connect.inc.php');
//@mysql_query("SET CHARACTER SET 'utf8'");
//@mysql_query("SET NAMES 'utf8'");
include(PATH.'control/defined.inc.php');
include(PATH.'control/functions.php');
// recipe..
if (isset($_GET['id'])) {
header ('HTTP/1.1 301 Moved Permanently');
$RECIPE = getTableData('recipes','id',(int)$_GET['id']);
$CAT = getTableData('categories','id',$RECIPE->cat);
header("Location: http://www.turkish-media.com/yemektarifleri/tarifler/".seoUrl($CAT->catname)."/".seoUrl($RECIPE->name)."/".$_GET['id']."/1/index.html");
}
?>
<?php
// Error Reporting..
//error_reporting(E_ALL);
// Set path to recipe installation..
define ('PATH', __DIR__."/");
// Database connection..
include(PATH.'control/connect.inc.php');
//@mysql_query("SET CHARACTER SET 'utf8'");
//@mysql_query("SET NAMES 'utf8'");
include(PATH.'control/defined.inc.php');
include(PATH.'control/functions.php');
// recipe..
if (isset($_GET['id'])) {
header ('HTTP/1.1 301 Moved Permanently');
$RECIPE = getTableData('recipes','id',(int)$_GET['id']);
$CAT = getTableData('categories','id',$RECIPE->cat);
header("Location: http://www.turkish-media.com/yemektarifleri/tarifler/".seoUrl($CAT->catname)."/".seoUrl($RECIPE->name)."/".$_GET['id']."/1/index.html");
}
?>
| Key | Value |
| id | 4396 |
| ord | id |
| asc | DESC |
| Key | Value |
| USER | media |
| HOME | /home/media |
| SCRIPT_NAME | /yemektarifleri/viewrecipe.php |
| REQUEST_URI | /yemektarifleri/viewrecipe.php?id=4396&ord=id&asc=DESC |
| QUERY_STRING | id=4396&ord=id&asc=DESC |
| REQUEST_METHOD | GET |
| SERVER_PROTOCOL | HTTP/1.1 |
| GATEWAY_INTERFACE | CGI/1.1 |
| REMOTE_PORT | 51912 |
| SCRIPT_FILENAME | /home/media/public_html/yemektarifleri/viewrecipe.php |
| SERVER_ADMIN | webmaster@turkish-media.com |
| CONTEXT_DOCUMENT_ROOT | /home/media/public_html |
| CONTEXT_PREFIX | |
| REQUEST_SCHEME | http |
| DOCUMENT_ROOT | /home/media/public_html |
| REMOTE_ADDR | 62.210.77.51 |
| SERVER_PORT | 80 |
| SERVER_ADDR | 206.72.199.7 |
| SERVER_NAME | www.turkish-media.com |
| SERVER_SOFTWARE | Apache/2.4.29 (cPanel) OpenSSL/1.0.2m mod_bwlimited/1.4 |
| SERVER_SIGNATURE | |
| PATH | /sbin:/usr/sbin:/bin:/usr/bin |
| HTTP_HOST | www.turkish-media.com |
| HTTP_ACCEPT_LANGUAGE | en-US,en;q=0.5 |
| HTTP_USER_AGENT | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0 |
| HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
| proxy-nokeepalive | 1 |
| SCRIPT_URI | http://www.turkish-media.com/yemektarifleri/viewrecipe.php |
| SCRIPT_URL | /yemektarifleri/viewrecipe.php |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /yemektarifleri/viewrecipe.php |
| REQUEST_TIME_FLOAT | 1515381824.273 |
| REQUEST_TIME | 1515381824 |
| argv | Array ( [0] => id=4396&ord=id&asc=DESC ) |
| argc | 1 |