كود PHP:
<?
@session_start();
define("FromIndex", "true");
require_once("functions.php");
require_once("config.php");
$ourlink = $_GET['newlink'];
//$ourlink = 'http://www.google.com';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1256">
<title>Link Protection And Make It Short</title>
<meta name="keywords" content="Protect Your Link ,Make It Short ,Link Short ,Link Protection ,Hide Url">
<meta name="description" content="Protect Your Link And Make It Short">
<META NAME="ROBOTS" CONTENT="index,nofollow">
<meta name="googlebot" content="Index, nofollow" />
<style type="text/css">
<!--
.Login_Buttons {
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
.Buttons {
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
.Buttons a:link {
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
text-decoration:none;
font-weight:bold;
}
.Buttons a:visited{
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
text-decoration:none;
font-weight:bold;
}
.Buttons a:hover{
color: #E4D168;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
text-decoration:none;
font-weight:bold;
}
.Separator {
font-size: 10px;
color: #999999;
}
body {
background-color: #E4D168;
}
.normal_text {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
.Small_Normal_Text {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
.Small_Normal_Text_Red {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color:#FF0000}
.Small_Normal_Text a:link{font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
.Small_Normal_Text a:visited{color:#0000FF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
.Small_Normal_Text a:hover{color:#FF9900; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
.Login_Text_Box {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; border:#40799A solid 1px; }
.errormsg {font-size: 12px; color: #FF0000; }
.Small_Normal_Text2 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color:#FFFFFF}
.Small_Normal_Text2 a:link{font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color:#FFFFFF; text-decoration:none;}
.Small_Normal_Text2 a:visited{font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color:#FFFFFF; text-decoration:none;}
.Small_Normal_Text2 a:hover{color:#FF9900; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
-->
</style>
<script type="text/javascript">
function condelete(URI) {
if (confirm("Are you sure you want to delete this link ?")) {
window.location.href=URI;
}
}
function condeluser(URI) {
if (confirm("Are you sure you want to delete this user ?")) {
window.location.href=URI;
}
}
function conbanuser(URI) {
if (confirm("Are you sure you want to Ban/UnBan this user ?")) {
window.location.href=URI;
}
}
</script>
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" rightmargin="0" topmargin="0">
<table width="935" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="border:#666666 1px solid">
<tr>
<td height="1" colspan="2" align="center" bgcolor="ffffff" >
<a href="http://www.klamaraby.com/link/index.php">
<img src="http://www.klamaraby.com/link/templates/default/images/logo.jpg" alt="Protect Your Link And Make It Short" border="0" /></a></td>
</tr>
<tr background="templates/default/images/buttons.gif">
<td height="28" colspan="2" bgcolor="#3366CC" class="Separator"><div align="center">
<p dir="rtl">|| <span class="Buttons"><a href="index.php">الصفحة الرئيسية</a></span> ||<?=($template['notlogged'])?' <span class="Buttons"><a href="index.php?act=login">تسجيل الدخول</a></span> || <span class="Buttons"><a href="index.php?act=register">التسجيل</a></span> ||':''?> <span class="Buttons"><a href="index.php?act=create">إنشيء
روابط جديدة</a></span> ||<?=($template['ifadmin'])?': <span class="Buttons"><a href="index.php?act=admin">الإدارة</a></span> ||':''?> <span class="Buttons"><a href="index.php?act=cp">لوحة
التحكم</a></span> ||<?=(!$template['notlogged'])?' <span class="Buttons"><a href="index.php?act=logout">تسجيل الخروج</a></span> ||':''?> <span class="Buttons"><a href="index.php?act=contact">إتصل
بنا </a></span> ||</div></td>
</tr>
<td width="125" height="240%" valign="top" bgcolor="#FFFFFF">
<script type="text/javascript"><!--
google_ad_client = "pub-9202027280598774";
/* 120x240, created 6/19/09 */
google_ad_slot = "4597777550";
google_ad_width = 120;
google_ad_height = 240;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
<td width="724" valign="top" bgcolor="#FFFFFF">
<div align="center">
<table width="730" border="0">
<tr>
<td><p align="center">
<p dir="rtl">يمكنك مع كلام عربي من إختصار وتقصير روابط التحميل الخاص بك بكل سهولة<span lang="ar-eg">
,حيث يتاح لك إختصار العديد من الروابط في وقت واحد والتحكم في روابطك متا شئت</span><p>
KlamAraby Short URL Service is a free URL forwarding service (Short & Protect Links) allowing anyone to take any existing URL and shorten it. Just type/paste a URL in the box in the
<a href="http://www.klamaraby.com/link/index.php">
<span style="text-decoration: none">main page</span></a> to shorten it and the short URL will forward to the long one, and it never expires.</p>
</p>
<br>
<!-- Google Adsense -->
<script type="text/javascript"><!--
google_ad_client = "pub-9202027280598774";
/* 728x90, created 6/15/09 */
google_ad_slot = "5587443486";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- Google Adsense -->
<center>
<p align="justify" class="normal_text"><font size="3" face="Arial">
<p><div id="waiting"><h3>خطأ :- المتصفح لا يدعم الجافا سكربت</h3></div></p>
<script>
function fnHide(secs){
secs--;
if(secs>0)
{
document.getElementById("waiting").innerHTML = " الرجاء الانتظار تبقى لبدء تحميل الملف <b>"+secs+"</b> ثواني.";
window.setTimeout("fnHide("+secs+")",1000);
}
else {
document.getElementById("waiting").innerHTML = "<a href=\"<?php echo $ourlink;?>\" target=\"_blank\"><b>اضغط هنا للتحميل</b></a>";
}
}
window.onload=fnHide(10);
</script>
</font></p></p></center>
</tr>
<tr>
<td><br>
<p align="center">
<!-- Google Adsense -->
<script type="text/javascript"><!--
google_ad_client = "pub-9202027280598774";
/* 728x90, created 6/15/09 */
google_ad_slot = "5587443486";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- Google Adsense -->
</tr>
</table></div>
</td>
</tr>
<tr>
<td height="20" colspan="2" align="center" bgcolor="#3366CC" class="Buttons">
Copyright © 2009 KlamAraby.com. All rights reserved.</td>
</tr>
</table>
<!-- Google Analytics -->
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-3359953-1";
urchinTracker();
</script>
<!-- Google Analytics -->
</center>
</body>
</html>
كود PHP:
<?
/*
Url Hider Script
By 0xyGen a.k.a Yns @ Linuxboyz
Version 1.0
file : go.php
contact : yns@linuxboyz.com
*/
// .htaccess RewriteRule ^(.*)$ go.php?key=$1&%{QUERY_STRING} [L]
include_once("includes/config.php");
include_once("includes/func.php");
$key = strip_tags($_GET['key']);
$query = mysql_query("SELECT * FROM urls WHERE u2h='".mysql_escape_string($key)."'");
if (mysql_num_rows($query) < 1)
{
echo "<h3>NOT FOUND</h3>";
exit;
}
$row = mysql_fetch_array($query);
$hit = $row['hit']+1;
$q = mysql_query("UPDATE urls SET hit='$hit' WHERE u2h='".mysql_escape_string($key)."'") || die(mysql_error());
if(!$q)
{
exit;
}
?>
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1256">
<LINK REL="STYLESHEET" TYPE="text/css" HREF="http://www.klamaraby.com/1/img/style.css">
<META NAME="Author" CONTENT="klamaraby.com">
<META NAME="ROBOTS" CONTENT="index,nofollow">
<meta name="googlebot" content="Index, nofollow" />
<title>KlamAraby.com | Short Url Service & Protect Your Links | خدمة اختصار وحماية الروابط</title>
</head>
<body background="http://www.klamaraby.com/1/img/back.jpg" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0"
bgcolor="#ffffff" style="background-attachment: fixed">
<div>
<div align="center">
<table border="0" width="100%" id="table1" cellpadding="0" style="border-collapse: collapse">
<tr>
<center>
<td class="logo"><p align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-9202027280598774";
/* 728x90, created 6/15/09 */
google_ad_slot = "5587443486";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center></td>
</tr>
</table>
</div>
<table border="0" width="99%" height="390" id="table1" cellpadding="0" style="border-collapse: collapse">
<tr>
<td><center>
<p><div id="waiting"><h3>خطأ :- المتصفح لا يدعم الجافا سكربت</h3></div></p>
<script>
function fnHide(secs){
secs--;
if(secs>0)
{
document.getElementById("waiting").innerHTML = " الرجاء الانتظار تبقى للانتقال للصفحة <b>"+secs+"</b> ثواني.";
window.setTimeout("fnHide("+secs+")",1000);
}
else {
document.getElementById("waiting").innerHTML = "<a href=\"<? $row['url'];?>\" target=\"_blank\"><b>اضغط هنا للانتقال</b></a>";
}
}
window.onload=fnHide(10);
</script>
</center></td>
</tr>
</table>
<div align="center">
<table border="0" width="100%" id="table1" cellpadding="0" style="border-collapse: collapse">
<tr>
<center>
<td class="logo"><p align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-9202027280598774";
/* 728x90, created 6/15/09 */
google_ad_slot = "5587443486";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<p dir="rtl" align="center"><font color="#800000">يمكنك مع كلام عربي </font>
<a href="http://www.klamaraby.com/1/index.php">
<span style="text-decoration: none"><font color="#800000">إختصار وتقصير روابط التحميل</font></span></a><font color="#800000"> الخاص بك بكل سهولة
-
Get Short & Protected Link for your big files links with KlamAraby Shorten Url Service</font></p>
</center></td>
</tr>
</table>
</div>
<!-- Google Analytics -->
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-3359953-1";
urchinTracker();
</script>
<!-- Google Analytics -->
</body>
</html>