Arkadaşlar merhaba,

size önemli sorum olacak!

Bir tane yazılımcı arkadaşa twitter ile ilgili bi program yazdırdık. Şimdi o arkadaşla ters düştük ve program tam istediğim gibi çalışmıyor.

sorum bu program da saat var ve buna dakikalarıda eklemek isiyorum nasıl yapabilirim?

set_time_limit(0);
?>


Ana SayfaKaydedilmiş İşlemlerRefollowUnfollow


<script></script>
<script></script>



if($_GET["c"]=="c"){
if($_GET["silfc"]){mysql_query("delete from follow_c where id='{$_GET["silfc"]}'");
echo mysql_error();}
$qry=mysql_query("select * from follow_c where 1");
echo "";
while($f_c=mysql_fetch_array($qry)){
$userid=$f_c["cek"];
$user=mysql_fetch_array(mysql_query("select * from users where id='$userid'"));
$user=$user["name"];
$get=$f_c["follow"];
$sayi=$f_c["sayı"];
$zaman=$f_c["zaman"];
$id=$f_c["id"];

echo "";

}
echo"
ÇekilecekKarşı HesapSayıZaman
$user$get$sayi$zamanSil
";
exit;
}
?>

if($_GET["c"]=="r"){
if($_POST["cr"]){
$postsay=count($_POST["hesap"]);
if($postsay>1){$hesap=implode(",",$_POST["hesap"]);}else{$hesap=$_POST["hesap"][0];}
if(empty($_POST["hesap"][0])){$hesap="";}

$file = fopen("cronrefollow.txt","w+");
fwrite($file,$hesap);
fclose($file);
}
$hesaplarr=file_get_contents("cronrefollow.txt");
if(strstr($hesaplarr,',')){$hesaparr=explode(",",$hesaplarr);}else{$hesaparr[0]=$hesaplarr;}
echo "Twitter Hesabı Ekle
";
$hesaplar=mysql_query("select * from users where 1");
while($hesap=mysql_fetch_array($hesaplar)){
if(in_array($hesap["id"],$hesaparr)){$checked="checked";}else{$checked="";}
echo"


";
}
echo "
{$hesap["name"]} Sil
";

exit;
}
?>

if($_GET["c"]=="u"){
if($_POST["cr"]){
$postsay=count($_POST["hesap"]);
if($postsay>1){$hesap=implode(",",$_POST["hesap"]);}else{$hesap=$_POST["hesap"][0];}
if(empty($_POST["hesap"][0])){$hesap="";}

$file = fopen("cronunfollow.txt","w+");
fwrite($file,$hesap);
fclose($file);
}
$hesaplarr=file_get_contents("cronunfollow.txt");
if(strstr($hesaplarr,',')){$hesaparr=explode(",",$hesaplarr);}else{$hesaparr[0]=$hesaplarr;}
echo "Twitter Hesabı Ekle
";
$hesaplar=mysql_query("select * from users where 1");
while($hesap=mysql_fetch_array($hesaplar)){
if(in_array($hesap["id"],$hesaparr)){$checked="checked";}else{$checked="";}
echo"


";
}
echo "
{$hesap["name"]} Sil
";

exit;
}
?>





$hesaplar=mysql_query("select * from users where 1");
while($hesap=mysql_fetch_array($hesaplar)){
echo"


";
}


?>

{$hesap["name"]} unfollow Sil


<script>
function ff(){
if(document.getElementById("time").style.display=="block"){
document.getElementById("time").style.display = "none"
}else{
document.getElementById("time").style.display = "block"
}
}
</script>
<script>
$(function() {
$( "#date" ).datepicker({
dateFormat: "dd/mm/yy"
});
});
</script>

Twitter Hesabı Ekle




Çekilecek Hesap:
Kaç Kişi:
Zamanlı:



if($_POST["hesap"] and $_POST["cek"] and $_POST["sayi"]){
if($_POST["zamanli"]=="1"){
if(!empty($_POST["tarih"])){
$sayi=$_POST["sayi"];
$hesap=$_POST["hesap"];
$cek=$_POST["cek"];
$tarih=$_POST["tarih"];
$saat=$_POST["saat"];
$tarih=$tarih." ".$saat.":00";
mysql_query("insert into follow_c values('','$cek','$tarih','$sayi','$hesap')");
echo "Zamanlı Takip Kaydedildi!";
echo mysql_error();
}else{echo "<script>alert('Tarih boş olamaz!');</script>";}
}else{
follow($_POST["hesap"],$_POST["cek"],$_POST["sayi"]);
}
}
?>