رد جديد  مشاركة جديدة 
كيف اضع اعلان ادسنس هنااااااا
الكاتب الرسالة
LaMoRe
عضو مشارك
***



المشاركات : 100
مجموعة : الأعضاء
الإنتساب : 02-02-2008
الحالة : غير متصل
السمعة : 0
الرد : #1
كيف اضع اعلان ادسنس هنااااااا

بسم الله الرحمن الرحيم

السلام عليكم حبايبي

كنت عايز اضع اعلان ادسنس هنااااااااااااااا

ياريت الافادة جزاكم الله كل خير



وده index.php


كود PHP :
<?php

include("./config.php");
include(
"./header.php");

$userip=$_SERVER['REMOTE_ADDR'];
$time=time();

///////////////////////////////////////////TIMER////////////////////////////////////

if(file_exists("./uploader/".$userip.".mfh"))
{

$downloaders fopen("./uploader/".$userip.".mfh","r+");
flock($downloaders,2);

while (!
feof($downloaders)) {
  
$user[] = chop(fgets($downloaders,65536));
}

fseek($downloaders,0,SEEK_SET);
ftruncate($downloaders,0);

$youcantdownload 0;
foreach (
$user as $line) {
list(
$savedip,$savedtime) = explode('|',$line);
 if (
$savedip == $userip) {
    if (
$time $savedtime + ($uploadtimelimit*60)) {
      
$youcantdownload 1;
      
$downtimer $time $savedtime ;
      
$counter $uploadtimelimit*60 $downtimer;
    }
  }

  if (
$time $savedtime + ($uploadtimelimit*60)) {
    
fputs($downloaders,"$savedip|$savedtime\n");
  }
}


if(
$youcantdownload==1) {
?><center><table style="margin-top:0px;width:790px;height:400px;"><tr><td style="border:1px #AAAAAA solid;height:100%;background-color:#FFFFFF;padding:20px;text-align:left;" valign=top><?
echo "<h1><center>Upload Time Limit</center></h1>";
        
?><****** type="text/java******">

var running = false
var endTime = null
var timerID = null
var totalMinutes = <?php echo $counter;?>;

function startTimer() {
    running = true
    now = new Date()
    now = now.getTime()
    endTime = now + (1000 * totalMinutes);
    showCountDown()
}

function showCountDown() {
    var now = new Date()
    now = now.getTime()
    if (endTime - now <= 0) {
       clearTimeout(timerID)
       window.location.reload()

    } else {
        var delta = new Date(endTime - now)
        var theMin = delta.getMinutes()
        var theSec = delta.getSeconds()
        var theTime = theMin
        theTime += ((theSec < 10) ? ":0" : ":") + theSec
        ********.getElementById('SessionTimeCount').innerHTML = 'Please wait ( <font color="#FF0000">' + theTime + '</font> ) Minutes for Upload'
        if (running) {
            timerID = setTimeout("showCountDown()",1000)
        }
    }
}

window.onload=startTimer
</******>


<center><span id="SessionTimeCount"></span></center><br /><br /><br /><br />
 <?

        
include("./bottomads.php");

?><td><tr><table><?
 
include("./footer.php");
      die();

}

}

///////////////////////////////////////////TIMER///////////////////////


$sizehosted 0//get the storage size hosted
$handle opendir("./storage/");
while(
$file readdir($handle)) {
$sizehosted $sizehosted filesize ("./storage/".$file);
  if((
is_dir("./storage/".$file.'/')) && ($file != '..')&&($file != '.'))
  {
  
$sizehosted $sizehosted total_size("./storage/".$file.'/');
  }
}
$sizehosted round($sizehosted/1024/1024,2);

if(isset(
$allowedtypes)){ //get allowed filetypes.
  
$types implode(", "$allowedtypes);
  
$filetypes "<b>$lang[allfile]</b> ".$types."<br /><br />";
} else { 
$filetypes ""; }

if(isset(
$categories)){ //get categories
  
$categorylist "$lang[cat2]: <select name=\"category\">";
  foreach(
$categories as $category){
    
$categorylist .= "<option value=\"".$category."\">".$category."</option>";
  }
  
$categorylist .= "</select><br />";
} else { 
$filetypes ""; }

if(isset(
$_GET['page']))
  
$p $_GET['page'];
else
  
$p "0";
include 
'total.php';

if (
$enhancedupload == "true") {
switch(
$p) {
case 
"tos": include("./pages/tos.php"); break;
case 
"faq": include("./pages/faq.php"); break;
default: include(
"./pages/upload.php"); break;
}
} else {
switch(
$p) {
case 
"tos": include("./pages/tos.php"); break;
case 
"faq": include("./pages/faq.php"); break;
default: include(
"./pages/upload2.php"); break;
}
}

include(
"./footer.php");
?>


وفي مشكلة تانية وهي اني كل ما احاول ارفع تكست او غيره

الاقيه يحولني على بلوج وموقع اخر

اعتقد ان المشكلة في ملف ال config

اللي مش عارف اعدله

ارجوا مساعدتكم

وده الملف


كود PHP :
<?php

$version 
'2.0';
$sname 'MFH v2.0';

$enhancedupload "$content[58]";
// Set this to true to enable the progress bar (needs Perl)

$fop =  fopen('secure/settings.mfh''r');
$content fread($fop'999');
fclose($fop);
$content explode("|"$content);

$compname "$content[0]";
//// Your Company Name

$slogan "$content[1]";
//// Your Company Slogan

$******url "$content[2]";
//// the URL to this ****** with a trailing slash

$u****** = "$content[55]";
//// the URL to the cgi-bin upload-****** (upload.pl)

$p****** = "$content[56]";
//// the URL to the cgi-bin progress-****** (progress.pl)

$configfile "$content[57]";
//// the Name of the cgi-bin Config-File (e.G. "Uploads" without an Endings)

$domains[1] = "$content[44]";
$domains[2] = "$content[45]";
$domains[3] = "$content[46]";
$domains[4] = "$content[47]";
$domains[5] = "$content[48]";
$domains[6] = "$content[49]";
$domains[7] = "$content[50]";
$domains[8] = "$content[51]";
$domains[9] = "$content[52]";
$domains[10] = "$content[53]";
$rand rand(1,10);
$multiserverx =  $domains[$rand];
////Multiserver Configuration

$adminpass $content[16];
//// set this password to something other than default
//// it will be used to access the admin panel

$email $content[17];
//// your eMail-Adress for abuse/support and user registration page

$maxfilesize $content[3];
//// the maximum file size allowed to be uploaded (in megabytes)

$downloadtimelimit $content[4];
//// time users must wait before downloading another file (in minutes)

$uploadtimelimit $content[5];
//// time users must wait before uploading another file (in minutes)

$nolimitsize $content[6];
//// if a file is under this many megabytes, there is no time limit

$deleteafter $content[7];
//// delete files if not downloaded after this many days

$downloadtimer $content[8];
//// length of the timer on the download page (in seconds)

$language $content[15];

if (
$content[9]=="false")
  
$result9 false;
else
  
$result9 true;

$enable_filelist $result9;
//// allows users to see a list of uploaded files. set to false to disable

if ($content[10]=="false")
  
$result10 false;
else
  
$result10 true;

$shourturl $result10;
//// Short url Eg yourdomain.com/13232 needs mod_rewrite enabled. For More Info See Our Froum

if ($content[11]=="false")
  
$result11 false;
else
  
$result11 true;

$emailoption $result11;
//// set this to true to allow users to email themselves the download links

if ($content[12]=="false")
  
$result12 false;
else
  
$result12 true;

$passwordoption $result12;
//// set this to true to allow users to password protect their uploads

if ($content[13]=="false")
  
$result13 false;
else
  
$result13 true;

$de******ionoption $result13;
//// set this to true to disable the de******ion field

if ($content[14]=="false")
  
$result14 false;
else
  
$result14 true;

$enable_topten =  $result14;
//// Make It true if you want to enable Top ten files

if ($content[33]=="false")
  
$result33 false;
else
  
$result33 true;

$admin =  $result33;
//// Make it true if you want to enable Admin-Link

if ($content[39]=="false")
  
$result39 false;
else
  
$result39 true;

$search =  $result39;
//// Make it true if you want to enable Search-Link

//$categories = array("********s","Applications","Audio","Misc");
//// remove the //'s from the above line to enable categories
//// Users will be able to choose from this list of categories

//$allowedtypes = array("txt","gif","jpg","jpeg");
//// remove the //'s from the above line to enable file extention blocking
//// only file extentions that are noted in the above array will be allowed

$dlspeed $content[34];
//// the maximum download-speed for free-users (in kb - kilobytes)

$pps1 $content[18];
//// the hits shows on admin's filelist

$pps2 $content[19];
//// the hits shows on filelist

$pps3 $content[20];
//// the hits shows on admin's downloadslist

$pps4 $content[43];
//// the hits shows on admin's downloadslist

$pps5 $content[43];
//// the hits shows on admin's downloadslist

$style $content[21];
//// The Style of your MiniFileHost

$your_name $content[26];
//// Your Name

$your_street $content[22];
//// Your Street

$your_city $content[23];
//// Your Name

$your_url $content[24];
//// Your Internet-Adress

$your_phone $content[25];
//// Your Phone-Number

$your_aemail $content[27];
//// Your Abuse-EMail

$sendmail="admin@filehost.com";
////Link SendMail and AbuseMail Adresse

if ($content[38]=="false")
  
$result38 false;
else
  
$result38 true;

$multi_upload_slots $result38;
////Enable/Disable multiple upload slots = true or false

$searchhits $content[41];
//// The Number of Search-Hits per Page

$notalloweddfiletypes "/(\.sh)|(\.php)|(\.php2)|(\.php3)|(\.php4)|(\.php5)|(\.php6)|(\.shtml)|(\.htaccess)|(\.cgi)|(\.pl)|(\.phtml)|(\.phtm)|(\.pif)|(\.xhtml)|(\.dhtml)|(\.html)|(\.htm)|(\.xhtm)|(\.py)$/";
////Show Not Allowed Files in Startpage and in Upload.php

if ($content[40]=="false")
  
$result40 false;
else
  
$result40 true;

$uploadsecuritycode $result40;
//// set this to true to UPLOAD Seuritycode

if ($content[42]=="false")
  
$result42 false;
else
  
$result42 true;

$pfolder $result42;
//// set this to true to UPLOAD Seuritycode

?>



اخر مواضيعى
2008-02-21 02:20 AM
إعرض جميع مشاركات العضو إقتبس الرسالة فى رد
Pepo
عضو مميز
****



المشاركات : 5,426
مجموعة : المميزين
الإنتساب : 30-12-2006
الحالة : غير متصل
السمعة : 38
الرد : #2
Re: كيف اضع اعلان ادسنس هنااااااا

بسم الله الرحمن الرحيم

بالنسبة لكود ادسينس.. هاتحط الكود مرة بعد include("./header.php");
مباشرة والثانية قبل include("./footer.php");

بالنسبة لمشكلة انك مش قادر ترفع حاجة.. ياريت تمدنا بالإسكريبت نفسه عشان نقدر نفيدك

اخر مواضيعى

مع التحية Pepo
لولا ان لهذا المنتدى اخوة واخوات مثلكم.. ما كان له وجود حتى الأن
احبكم فى الله
2008-02-21 08:43 AM
زيارة موقع العضو إعرض جميع مشاركات العضو إقتبس الرسالة فى رد
LaMoRe
عضو مشارك
***



المشاركات : 100
مجموعة : الأعضاء
الإنتساب : 02-02-2008
الحالة : غير متصل
السمعة : 0
الرد : #3
Re: كيف اضع اعلان ادسنس هنااااااا

بسم الله الرحمن الرحيم

شكرا اخ بيبو

وده رابط تحميل الاسكربت

غير مسموح بعرض الروابط الا بعد التسجيل و تفعيل العضوية


2008-02-21 12:39 PM
إعرض جميع مشاركات العضو إقتبس الرسالة فى رد
يونس البار
مشرف
*****



المشاركات : 576
مجموعة : المشرفين
الإنتساب : 04-12-2007
الحالة : غير متصل
السمعة : 4
الرد : #4
RE: كيف اضع اعلان ادسنس هنااااااا

بسم الله الرحمن الرحيم

اهلا بك اخي
ارجو ان تتحقق من الرابط انه لا يعمل

/

من الصورة يتضح لي انه سكربت مركز تحميل Mini File Host Eam
ادا كان كدلك قم بمايلي
لاضافة الاعلانات و تظهر في جميع الصفحات عليك اضافة كود الاعلانات داخل الملفات التالية
ads.php
bottomads.php
squareads.php

/

بالنسبة للمشكلة التانية لم افهم مادا تقصد
لو تتكرم و تضع لنا رابط المركز لمعاينة المشكل

اخر مواضيعى

مع التحية يونس البار

غير مسموح بعرض الروابط الا بعد التسجيل و تفعيل العضوية
2008-02-21 01:38 PM
زيارة موقع العضو إعرض جميع مشاركات العضو إقتبس الرسالة فى رد
LaMoRe
عضو مشارك
***



المشاركات : 100
مجموعة : الأعضاء
الإنتساب : 02-02-2008
الحالة : غير متصل
السمعة : 0
الرد : #5
Re: كيف اضع اعلان ادسنس هنااااااا

بسم الله الرحمن الرحيم

صح هو اسكربت مركز تحميل

mini file host

والمشكلة التانية هي اني كل ماارفع حاجة على الموقع واكتب الكود

واضغط upload

ينقلني لصفحة تانية لموقع اخر


على العموم شكرا اخي وبارك الله فيك

وانا في انتظارك

وده رابط الموقع

غير مسموح بعرض الروابط الا بعد التسجيل و تفعيل العضوية


2008-02-21 10:57 PM
إعرض جميع مشاركات العضو إقتبس الرسالة فى رد
LaMoRe
عضو مشارك
***



المشاركات : 100
مجموعة : الأعضاء
الإنتساب : 02-02-2008
الحالة : غير متصل
السمعة : 0
الرد : #6
RE: كيف اضع اعلان ادسنس هنااااااا

بسم الله الرحمن الرحيم


مقتبس من Pepo
بالنسبة لكود ادسينس.. هاتحط الكود مرة بعد include("./header.php");
مباشرة والثانية قبل include("./footer.php");

بالنسبة لمشكلة انك مش قادر ترفع حاجة.. ياريت تمدنا بالإسكريبت نفسه عشان نقدر نفيدك



اخي بيبو للاسف عند وضعي للاعلانات مثل ما قلت

واجي احدث الصفحة الاقيهاصفحة بيضاء يعنيحدوث خطأ ما

ولما ارجع اشيلهم يرجع الوضع كما كان


2008-02-21 11:07 PM
إعرض جميع مشاركات العضو إقتبس الرسالة فى رد
LaMoRe
عضو مشارك
***



المشاركات : 100
مجموعة : الأعضاء
الإنتساب : 02-02-2008
الحالة : غير متصل
السمعة : 0
الرد : #7
Re: كيف اضع اعلان ادسنس هنااااااا

بسم الله الرحمن الرحيم

يمكن المشكلة في ال setting

وهنا بالاخص



مش عارف اعدلها بالظبط غيركتابة رابط موقعي

فهل هو يقصد السيرفر اللي هو ns1.oxl.net


2008-02-22 01:15 AM
إعرض جميع مشاركات العضو إقتبس الرسالة فى رد
يونس البار
مشرف
*****



المشاركات : 576
مجموعة : المشرفين
الإنتساب : 04-12-2007
الحالة : غير متصل
السمعة : 4
الرد : #8
Re: كيف اضع اعلان ادسنس هنااااااا

بسم الله الرحمن الرحيم

المشكل اخي 100 % من الاستضافة و ليس منك انت
لقد حدث معي نفس المشكل من قبل و لم اجد له حل
عليك بتغيير الاستضافة هدا هو الحل الموجود الان

لكن مع الاستضافات المجانية ستواجه العديد من المشاكل مع مركز التحميل ولتفادي المشاكل عليك حجز له استضافة مدفوعة
او جرب هدا المركز للتحميل المجاني باسم موقعك و يمكنك ان تضع فيه بانر لموقعك
غير مسموح بعرض الروابط الا بعد التسجيل و تفعيل العضوية

بالتوفيق اخي


2008-02-22 02:17 AM
زيارة موقع العضو إعرض جميع مشاركات العضو إقتبس الرسالة فى رد
LaMoRe
عضو مشارك
***



المشاركات : 100
مجموعة : الأعضاء
الإنتساب : 02-02-2008
الحالة : غير متصل
السمعة : 0
الرد : #9
Re: كيف اضع اعلان ادسنس هنااااااا

بسم الله الرحمن الرحيم

،،
شكرا لتواصلك اخي
لكن صراحة الاستضافة حلوة انا رافع عليها منتدى
بقالي فترة ولحد الان ما عنيت منها من مشاكل
فلو هناك بديل من استضافة مجانية اخرى او حل لمشكلة انا مشعارفها
فياريت كحل مؤقت عقبال ما احجز استضافة مدفوعة
وشكرا للمرة المليون تعبتك معايا حبيبي
،،


2008-02-22 12:35 PM
إعرض جميع مشاركات العضو إقتبس الرسالة فى رد
يونس البار
مشرف
*****



المشاركات : 576
مجموعة : المشرفين
الإنتساب : 04-12-2007
الحالة : غير متصل
السمعة : 4
الرد : #10
RE: كيف اضع اعلان ادسنس هنااااااا

بسم الله الرحمن الرحيم


مقتبس من LaMoRe
،،
شكرا لتواصلك اخي
لكن صراحة الاستضافة حلوة انا رافع عليها منتدى
بقالي فترة ولحد الان ما عنيت منها من مشاكل



العفو اخي
انا لم اتكلم عن المنتدى فالمنتدى ليست به مشاكل
انا تكلمت عن مشاكل مركز التحميل و ليس المنتدى اكرر انا لا اقصد المنتدى بل مركز التحميل هو الدي يواجه مشاكل مع الاستضافة

وشكرا لتفهمك الامر
بالتوفيق


2008-02-22 02:56 PM
زيارة موقع العضو إعرض جميع مشاركات العضو إقتبس الرسالة فى رد

رد جديد  مشاركة جديدة 
كيف اضع اعلان ادسنس هنااااااا

إحتمالات التقييم ...
المشاركة : الكاتب الردود : المشاهدات : آخر رد
  ادعم التماس الى جوجل ادسنس لحمايه الناشرين من الضغطات والظهور الغير شرعي ‏ عمرو البحيري 5 317 2007-11-25 09:22 PM
آخر رد: عاشق العندليب

إشترك بالمشاركة | إضافة المشاركة للمفضلة
الذهاب إلى :