اخبر صديقك عن صفحتنا EddiesTellaFriend version 1.0 - خدمات ويب و Blogger

البحث بالمدونه

الاثنين

اخبر صديقك عن صفحتنا EddiesTellaFriend version 1.0

 حطه باي اسم تحب php


الكود


<?

###############################################################################

#   EddieCentral.net  http://www.eddiecentral.net

#

#   Requests, Comments, Flames, Help !! to eddie@eddiecentral.net

#

#   EddiesTellaFriend version 1.0 by Eddie

#    This script is freeware and is realeased under the GPL

#    Copyright (C) 2002  eddiecentral.net

#

#    This program is free software; you can redistribute it and/or modify

#    it under the terms of the GNU General Public License as published by

#    the Free Software Foundation; either version 2 of the License, or

#    (at your option) any later version.

#

#    This program is distributed in the hope that it will be useful,

#    but WITHOUT ANY WARRANTY; without even the implied warranty of

#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

#    GNU General Public License for more details.

#

#    You should have received a copy of the GNU General Public License

#    along with this program; if not, write to the Free Software

#    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

#    Or just download it http://www.fsf.org/

###############################################################################


# PLEASE CHANGE THE VALUES BELOW


#Config some variables

// أصحاب المواقع يرجى إرسال بريد إلكتروني تغيير هذا !! لا تريد أن تلقي البريد الإلكتروني الخاص بك

$webmaster="al_dd@hotmail.com";


// تعيين هذا إلى 0 من كنت لا ترغب في عرض معلومات حقوق التأليف والنشر

// ان الامر متروك لكم لكني نقدر أنه إذا تركت هذا حالها .. أنا يمكن استخدام حركة المرور // !! ولكن .. YOU ليست ملزمة لمغادرة هذا على موقعك سليمة ...

//في جميع الحرة !!!


$copyleft = 0;


//اسم لموقع الويب الخاص بك

$sitename="موقع الجميـع alGme3";


// تغيير إلى 0 إذا كنت لا تريد أن تلقي الإخطارات


$notify = 0;


// عنوان URL لموقع الويب الخاص بك

$siteurl ="http://www.algme3.com/";


//افتراضي لإرسال رسالة

$message="اتمنى ان تقوم بزيارة هذه الصفحة\n\t$link";


# هذا كل شيء !!!! استمتع


###################################

#تعديل أدناه فقط إذا كنت تعرف ما تقومون به !!!!

####################################

 if (empty($HTTP_REFERER)) {

     $link = $siteurl;


 } else {

     $link= $HTTP_REFERER;

 }



#form construction

###############

function tellform(){

global $email, $name, $email1, $name1, $PHP_SELF,$message,$link,$copyleft;

 ?>

 <form method="post" action="<?=$PHP_SELF?>">


<table border="0" cellpadding="0" cellspacing="1" dir=rtl

  summary="Tell a friend" width="90%" align="center" bgcolor="#c0c0c0" style="border : 1px solid #000000;">



<tr>

<td align="center" colspan="2" bgcolor="#dfdfdf">

             <h3>اخبر صديقك عن الصفحة</h3>

        </td>

         </tr>

    <tr>

<td align="center">

             <b>اسمك</b>

        </td>

<td align="center">

        <b>بريدك</b>

        </td>

</tr>

<tr>

<td align="center" bgcolor="#efefef">

        <font color="#de0000">*</font>

        <input type="text" name="name" value="<?=$name?>" size="30" />

         </td>

<td align="center" bgcolor="#efefef">

        <font color="#de0000">*</font>

            <input type="text" name="email" dir=ltr value="<?=$email?>" maxlength="40" size="30" />

                </td>

</tr>


<tr>

<td align="center" >

        <b>اسم صديقك</b></td>

<td align="center"><b>بريد صديقك</b></td>

</tr>

<tr>

<td align="center" bgcolor="#efefef">

    <font color="#de0000">*</font>

        <input type="text" name="name1" value="<?=$name1?>" size="30" /></td>

<td align="center" bgcolor="#efefef">

  <font color="#de0000">*</font>

        <input type="text" name="email1"  dir=ltr value="<?=$email1?>" size="30" /></td>

         </tr>

                <tr>

<td colspan="2" align="center">

              <b>الرسالة</b><br />

              <textarea style="background-color:#eeeeee;font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 13px;color: #000000;" rows="6" cols="50"><?=$message;?>

                  </textarea>


     </td>

    </tr>

         <tr>

<td colspan="2" align="center">


          <input type="hidden" name="submitok" value="1" />

          <input type="hidden" name="link" value="<?=$link?>" />

<input type="submit" value ="أرسل" class="select" />

<input type="reset" value ="امسح المخلات" class="select" />

</td>

</tr>

<?

        if($copyleft == 1){echo"<tr><td colspan=\"2\" bgcolor=\"#ffffff\" align=\"center\">\n<a href=\"http://www.eddiecentral.net/resources/tellafriend.php\" target=\"_blank\"><font size=\"-1\"> تم التعريب هايف الكويت Tell A friend Version 1.0\n Copyright &copy; 2002  algme3.com</font></a></td></tr>";

        }

?>

        </table>

<?

}


#header

###############

function doheader(){

  ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<title>أخبر صديقك</title>

<meta name="Keywords" content="" />

<meta name="Description" content="" />

<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">

</head>

<style type="text/css">

<!--


.select {

font: 11px Verdana, Arial, Helvetica, sans-serif;

background-color:#666666;

font-weight: bold;

color: #ffffff;

}

body,p,td{

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 13px;

}

 -->

</style>

<body>


 <?

}

#footer

#################

function dofooter(){

?>

</body>

</html>

<?

}




if (getenv(HTTP_X_FORWARDED_FOR)){

$ip=getenv(HTTP_X_FORWARDED_FOR);

}

else {

$ip=getenv(REMOTE_ADDR);

}



if(!isset($submitok)){

    doheader();

tellform();

    dofooter();

exit;

}else{


    // Lets check for Errors

$form_errors = array();


if ((!$name) ||($name == "") || (strlen($name) < 1) ){

  $form_errors["Missing_Name"] = true;

}

  if ((!$name1) ||($name1 == "") || (strlen($name1) < 1) ){

  $form_errors["Missing_Name1"] = true;

}

  if(!eregi("^([a-zA-Z0-9._-])+@([a-zA-Z0-9._-])+\.([a-zA-Z0-9._-])([a-zA-Z0-9._-])+", $email)) {

           $form_errors["Email_badformat"] = true;

   }


  if(!eregi("^([a-zA-Z0-9._-])+@([a-zA-Z0-9._-])+\.([a-zA-Z0-9._-])([a-zA-Z0-9._-])+", $email1)) {

           $form_errors["Email_badformat1"] = true;

   }

//Display errors caught

   if (count($form_errors)) {

              doheader();

  if ($form_errors["Missing_Name"]) {

                    echo("<font color=\"#cc0000\"><p align=right><b>يجب ان تكتب اسمك</b></font><br />\n");

  }


  if ($form_errors["Missing_Name1"]) {

echo("<font color=\"#cc0000\"><b><p align=right>يجب ان تكتب اسم صديقك</b></font><br />\n");

  }

  if ($form_errors["Email_badformat"]) {

                    echo("<font color=\"#cc0000\"><b><p align=right>هناك خطأ في بريدك أو لم تقم بكتابته</b></font><br />\n");

              }


  if ($form_errors["Email_badformat1"]) {

                    echo("<font color=\"#cc0000\"><b><p align=right>هناك خطأ في بريد صديقك أو لم تقم بكتابته</b></font>\n<br />\n");

              }


              tellform();

              dofooter();

              exit;

   }


//No errors if script reaches this point so MAIL IT !!

$today = date("F j, Y, g:i a");

$name = trim(str_replace("\\'", "'", $name));

$name1 = trim(str_replace("\\'", "'", $name1));

$email = trim(str_replace("\\'", "'", $email));

$email1 = trim(str_replace("\\'", "'", $email1));

$message = trim(str_replace("\\'", "'", $message));

$message .="\n\nاسم صديقك: $name\nبريد صديقك : $email\nرقم ايبي المرسل : $ip\nبتاريخ: $today";

 $subject = "$name1";


$mailsent=@mail($email1, $subject, $message, "From: \"$name\"<$email>\r\nReply-To: $email\r\nX-Sender:$name using $email\r\nReturn-Path: $webmaster");


//notify webmaster if need be

if($notify ==1){

    $message1 = "$name using $email refered $name1 of $email1 to your site";

    $message1.="\nMessage sent from : $ip\nDate and time sent: $today";

    @mail($webmaster, "Referal notification", $message1, "From: \"$name\"<$email>\r\nReply-To: $email\r\nX-Sender:$name using $email\r\nReturn-Path: $webmaster");

}

if($mailsent){

    doheader();

 ?>

        <center><b> تم ارسال البريد الى <?=$name1?></b></center>

    <p />

                    <center>

              <br />&nbsp;<br />

                 <form action=""><input type="button"value="اغلق النافذة" onclick="window.close();" class="select" /></form>

               </center>

                     <?

                     dofooter();



}else{

        doheader();

 ?>


            <b><p align=right>لم يتم ارسال البريد هناك خطأ ما</b>

             <p />


<?

  tellform();

dofooter();


     }

}

?>


يمكنك تعدل 

https://www.mediafire.com/file/4wmhxhkowfmnuon/akbrsataek.rar

وتضع تصيم حوله

ليست هناك تعليقات:

إرسال تعليق

تعريب وتطوير هايف السـ العجمي ـفراني