PHPFusion - tai laisvai platinama nemokama turinio valdymo sistema (TVS), kurios pagalba galite greitai, lengvai ir
patogiai susikurti norimą internetinį puslapį. Plačiau apie sistemą...
Jaunelis 2024 Lie. 25 11:07:43 Oho vis dar veikia svetainė Šimtas metų, matau Šaukykloje nuostalgija. Smagu panaršyt po forumą ir pažiūrėt senas temas
And2s 2024 Lie. 17 19:07:04 2008 pirmą kart čia patekau, man buvo 10m ir čia pramokau programavimo.. smagu skaityti senas žinutes, tokia nostalgija ačiū Ozz kad saugoji šitą kultūrinį reliktą
Galite pagelbeti su kodu, man vis nesigauna padaryti, kad pavyzdziui kreditus skirtu pirmom 3 vietoms. Nes kaip sitam pavyzdyje yra, tai 200 kreditu duoda tik uz 1 vieta. Ivairiai bandziau daryti.
Kodas originalas:
<?php
//////////////////menesio TOP tikrinimas/davimas //////////////////
if(file_get_contents('txt/belekoks_m.txt')!=date('Y.m')) { include_once("config2.php"); $get_tops1=mssql_query("Select Name,Accountid,mrr from Character order by mrr DESC, name DESC"); for($i=0;$i<1;$i++){ $tops1=mssql_fetch_row($get_tops1); $res1=mssql_query("update MEMB_CREDITS set credits=credits+200 where memb___id='$tops1[1]'"); } $fp1=fopen("txt/belekoks_m.txt","w");
//////////////////menesio TOP tikrinimas/davimas //////////////////
if(file_get_contents('txt/belekoks_m.txt')!=date('Y.m')) { include_once("config2.php"); $get_tops1=mssql_query("Select Name,Accountid,mrr from Character order by mrr DESC, name DESC"); for($i=0;$i<1;$i++){ $tops1=mssql_fetch_row($get_tops1); $res1=mssql_query("update MEMB_CREDITS set credits=credits+200 where memb___id='$tops1[1]'"); $res2=mssql_query("update MEMB_CREDITS set credits=credits+100 where memb___id='$tops1[2]'"); } $fp1=fopen("txt/belekoks_m.txt","w");
//////////////////menesio TOP tikrinimas/davimas //////////////////
if(file_get_contents('txt/belekoks_m.txt')!=date('Y.m')) { include_once("config2.php"); $get_tops1=mssql_query("Select Name,Accountid,mrr from Character order by mrr DESC, name DESC LIMIT 3"); while($tops1=mssql_fetch_row($get_tops1)){ $res1=mssql_query("update MEMB_CREDITS set credits=credits+200 where memb___id='$tops1[1]'"); } $fp1=fopen("txt/belekoks_m.txt","w");
//////////////////menesio TOP tikrinimas/davimas //////////////////
if(file_get_contents('txt/belekoks_m.txt')!=date('Y.m')) { include_once("config2.php"); $get_tops1=mssql_query("Select Name,Accountid,mrr from Character order by mrr DESC, name DESC LIMIT 3"); while($tops1=mssql_fetch_row($get_tops1)){ $res1=mssql_query("update MEMB_CREDITS set credits=credits+200 where memb___id='$tops1[1]'"); } $fp1=fopen("txt/belekoks_m.txt","w");