Pls Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Pls Help

    how to make script in lavair to read a book and text to by only 10 rands per page? pls help

    #2
    help ??

    Comment


      #3
      read a book?

      Comment


        #4
        yes, i want to put text in page, only 10 rands per page, how make this?

        Comment


          #5
          yes, i want to put text in page, only 10 rands per page, how make this?[/b]

          here is the code.
          you must define:
          $qq=
          and create:
          $myFile = "testFile.txt";
          1. <?php
          2. header("Content-type: text/vnd.wap.wml");
          3. header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
          4. header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
          5. header("Cache-Control: no-cache, must-revalidate");
          6. header("Pragma: no-cache");
          7. header("Provided-by: ngeo.ro");
          8. echo "<?xml version=\"1.0\"?>
          9. <!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
          10. ." \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
          11. ?>
          12. <wml>
          13. <card id="read" title="news">
          14. <p mode="wrap">
          15. <?php
          16. if(!isset($_GET[&#39;p&#39;]))
          17. {
          18. $p = 0;
          19. }else{
          20. $p = (int) $_GET[&#39;p&#39;];
          21. }
          22. $myFile = "testFile.txt";
          23. $fh = fopen($myFile, &#39;r&#39;) or die();
          24. $bd = fread($fh, filesize($myFile));
          25. $qq = 500;
          26. $bd_length = strlen($bd);
          27. $product = $p*$qq;
          28. $endif = $bd_length-$product;
          29. echo substr($bd,$product,$qq)."...\n";
          30. if($p > 0){
          31. $page = $p - 1;
          32. echo "
            <a href=\"news.php?p=$page\">prev</a> \n";
          33. }
          34. if(($bd_length>$qq) and ($endif>$qq))
          35. {
          36. $p = $p +1;
          37. echo "<a href=\"news.php?p=$p\">more...</a>
          38. ";
          39. }
          40. ?>
          41. </p>
          42. </card>
          43. </wml>
          http://ngeo.ro

          Comment


            #6
            testFile.txt - hahaha

            Datorita geniului sau, Ion Creanga a ajuns sa fie tradus in toate colturile tarii si chiar peste hotare.



            &#39;La Vulturi&#39; :
            Cand a intors capul Agripina a vazut cai cu cap de turc .
            Mai tarziu veni si Agripina ca o oaie beata .
            Ea ii zice copilului ca taci dragul mamei ca te pune mama la mamela unei capre .
            Femeile ramaneau acasa in loc de barbatzi .
            Agripina il baga shi il acoperi pe Paun cu o capitza
            Agripina se simtzea ca o vaca lovita intre coarne .
            Agripina avea scheletele unei nebune si maruntaiele uscate , ea cazu moarta shi spuse ca nu mai pot .



            Cronicarii munteni ii laudau pe stapanii lor cu cuvinte frumoase, iar pe dusmani cu ocari si insulte.



            In poezia lui Toparceanu gazele, gandacii si insectele, cum e cotofana, stau de vorba:"Ce ne facem fetelor ?".



            Viata albinelor e primejduita mereu de insecte ca: tantarul, viespea, soarecele si ursii care se urca in fagi unde sunt albinele stranse in colonii si depun miere.



            Cristofel Columb a plecat in America unde s-a insurat cu o bastinoasa.



            Vitoria Lipan este un Hitler in varianta feminina.



            Calistrat Bogza a fost strangulat de câine



            A trecut un an si Nechifor nu a venit, femeia nerabdatoare ca femeia asculta orice clopot auzit de la biserica si se ducea ca sa vada daca-i de la Nechifor când acolo scrisoarea era de la fiul dascalului pentru Miranda pe care o iubea



            Vitoria l-a cautat si pâna la urma l-a gasit intr-o stânca cu capul rupt de baltag



            "Ilie Cutiu era botezat buza de iepure deoarece un iepure violent i-a luat buza si a mestecat-o." Alin Racea



            Din cauza ca calistrat a sarit cu baltagu in aer , cainele simtitor l-a doborat dintr-o muscatura de caine mortala.



            calistrat a facut pipi pe el cum se mai spune in popor , cand a observat ca Vitoria e atat de desteapta.



            - Brânzovenescu a murit la urma iar Farfuridi i-a spus militiei ca el l-a omorât pe Nechifor.
            - Vitoria este de 3 ori femeie pentru ca umbla cu capul pe sus.
            - Vitoria , pe lânga calitatea de mama aia si pe cea de tata, calitate care este mult mai dificil de îndeplinit.
            - Vitoria e o femeie superioara, deci o specie pe cale de disparitie.
            - Gheorghita este foarte tacut, dar explicit.
            - Gheorghita era cioban fara diploma dar specializat în procesarea laptelui.

            O profesoara de biologie explicand despre galinacee: unii cocosi fac oua mici



            numarul 223 e mai mult par decat impar deoarece are doi de 2 si un singur 3



            In Lostrita este vorba despre un pescar care a facut sex cu un peste.



            Zoe si Tipatescu se iubeau pe la spate )))



            recunoasteti anotimpul:...caldura torida a verii...
            elev:toamna



            STEFAN CEL MARE CU CALUL ACOPERA PADUREA DE UN MIROS APARTE...ACEL MIROS ERA BALEGARUL DESTINYLUI



            personaje Toma Alimos:
            toma alimos-personaj principal
            Manea-personaj secundar
            calul(murgul)-personaj animalic



            Toma Alimos era viteaz pt ca cu o mana conducea calul, cu o mana isi tinea matzele si cu o mana se batea cu Manea



            Bivolul a furat branza in cioc si a fugit cu ea in copac.



            Fabula descrie povestea unui catela amarat si prost care se deda la peregrinari gratuite in spatele boului.



            Imparatul avea o gradina si in fund un mar.



            Pocitania era urât, adica pocit si nu placea la nimeni



            Incheiere, la examen, la romana: "Domn&#39; profesor...Va rog sa ma scuzati si sa nu ma picati examenu&#39;! Ca...am avut si o operatie, nici nu mi-a fost prea bine azi..."



            Un candidat a revolutionat gramatica, inventând propozitia subordonata circumstantiala timpurie si atributul retrospectiv pronominal.



            Draga bunica,m-a invatat prietenul meu sa folosesc prezervativul in scop umanitar si sa opresc inmultirea de prosti pe terra(Negrescu Dorin nr.7)



            Zgripturoaica, in zbor, ramane fara energie si il roaga pe Praslea sa-i dea o bucata din fesa lui, dar pe care i-o va inapoia si i-o va lipi cu saliva.
            http://ngeo.ro

            Comment


              #7
              someone please give me irc_acc etc sql not the ifwb_
              Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

              <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

              Comment


                #8
                mersi fain black/ tank you

                Comment


                  #9
                  <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php

                  include("../config.php");
                  include("../core.php");
                  connectdb();
                  $brw = $HTTP_USER_AGENT;
                  $brws = explode("/",$HTTP_USER_AGENT);
                  $ubr = $brws[0];
                  $uip = getip();
                  $action = $_GET["action"];
                  $sid = $_GET["sid"];
                  $page = $_GET["page"];
                  $who = $_GET["who"];
                  $uid = getuid_sid($sid);
                  $nick = getnick_uid($uid);
                  $upload = $_GET["upload"];
                  $theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                  $bcon = connectdb();
                  $script = $_GET["script"];

                  header("Content-type: text/html; charset=ISO-8859-1");
                  header("Cache-Control: no-cache, must-revalidate, max-age=0");
                  header("Pragma: no-cache");
                  echo &#39;<?xml version="1.0"?&#39; . &#39;>&#39;;
                  echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";


                  echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";

                  /////////////////////////////Database Error/////////////////////////////

                  if (!$bcon)
                  {

                  echo "<head>";
                  echo "<title>Eroare!!!</title>";
                  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
                  echo "</head>";
                  echo "<body>";

                  echo "<p align=\"center\">";
                  echo "<img src=\"images/exit.gif\" alt=\"!\"/>
                  ";
                  echo "Nu se poate conecta la baza de date...

                  ";
                  ////echo "This error happens usually when backing up the database, please be patient...";
                  echo "</p>";
                  echo "</body>";
                  echo "</html>";

                  exit();
                  }

                  cleardata();
                  /////////////////////////////Ip Banned/////////////////////////////

                  if(isipbanned($uip,$ubr))
                  {
                  if(!isshield(getuid_sid($sid)))
                  {
                  echo "<head>";
                  echo "<title>Ip Block!</title>";
                  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                  echo "</head>";
                  echo "<body>";
                  echo "<p align=\"center\">";
                  echo "<img src=\"images/notok.gif\" alt=\"x\"/>
                  ";
                  echo "ipul tau este blocat!!!
                  ";
                  echo "
                  ";
                  ////echo "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over

                  ";
                  $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE penalty=&#39;2&#39; AND ipadd=&#39;".$uip."&#39; AND browserm=&#39;".$ubr."&#39; LIMIT 1 "));
                  //echo mysql_error();
                  $remain = $banto[0] - time();
                  $rmsg = gettimemsg($remain);
                  echo " IP: $rmsg

                  ";
                  echo "</p>";
                  echo "

                  ";
                  echo "</p>";
                  echo "</body>";
                  echo "</html>";
                  exit();
                  }
                  }
                  /////////////////////////////Session Expired/////////////////////////////

                  if(($action != "") && ($action!="terms"))
                  {
                  $uid = getuid_sid($sid);
                  if((islogged($sid)==false)||($uid==0))
                  {

                  echo "<head>";
                  echo "<title>Eroare!!!</title>";
                  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
                  echo "</head>";
                  echo "<body>";

                  echo "<p align=\"center\">";
                  echo "Nu esti autentificat
                  ";
                  echo "Sau sesiunea ta a expirat

                  ";
                  echo "<a href=\"../../index.php\">autentificare</a>";

                  echo "</p>";
                  echo "</body>";
                  echo "</html>";

                  exit();
                  }
                  }
                  /////////////////////////////Banned/////////////////////////////

                  if(isbanned($uid))
                  {

                  echo "<head>";
                  echo "<title>Error!!!</title>";
                  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                  echo "</head>";
                  echo "<body>";

                  echo "<p align=\"center\">";
                  echo "<img src=\"../../images/notok.gif\" alt=\"x\"/>
                  ";
                  echo "Esti banat

                  ";
                  $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
                  $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                  $remain = $banto[0]- time();
                  $rmsg = gettimemsg($remain);
                  echo "Timp ramas: $rmsg
                  ";
                  $nick = getnick_uid($banto[2]);
                  echo "Ai fost banat de: $nick
                  ";
                  echo "Pe motiv: $banto[1]";
                  //echo "<a href=\"../web/index.php\">Login</a>";
                  echo "</p>";
                  echo "</body>";
                  echo "</html>";

                  exit();
                  }
                  /////////////////////////////mp3 requests/////////////////////////////

                  else if($action=="main")
                  {
                  addonline(getuid_sid($sid),"descarca muzica","");

                  echo "<head>";
                  echo "<title>*DOWNLOAD*</title>";
                  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                  echo "</head>";
                  echo "<body>";
                  echo "<center>";
                  $items_per_page = "10";
                  if (!isset($page)) {$page = 0;}
                  $total = 0;
                  if(!($dp = opendir("./"))) die ("Cannot open ./");
                  $file_array = array();
                  while ($file = readdir ($dp))
                  {
                  if(substr($file,0,1) != &#39;.&#39; and $file != "index.php")
                  {
                  $file_array[] = $file;
                  }
                  }
                  $file_count = count ($file_array);
                  sort ($file_array);
                  echo "Nu abuzati va rog frumos <img src=\"../../smilies/10.gif\" alt=\":p\" />
                  ";
                  echo "</center>";
                  echo "<left>";
                  if(!isset($_GET[&#39;p&#39;]))
                  {
                  $p = 0;
                  }else{
                  $p = (int) $_GET[&#39;p&#39;];
                  }
                  $myFile = "test.txt";
                  $fh = fopen($myFile, &#39;r&#39;) or die();
                  $bd = fread($fh, filesize($myFile));
                  $qq = 500;
                  $bd_length = strlen($bd);
                  $product = $p*$qq;
                  $endif = $bd_length-$product;
                  echo substr($bd,$product,$qq)."...\n";
                  echo "
                  ";
                  echo "</left>";
                  echo "<center>";

                  ////////////////////////////////////
                  if($p > 0){
                  $prev_page = $page -1;
                  echo("<a href=\"index.php?action=$action&amp;p=$page&amp;si d=$sid\">&lt; inapoi</a>||");
                  }
                  if(($bd_length>$qq) and ($endif>$qq))
                  {
                  $next_page = $p + 1;
                  echo("<a href=\"index.php?action=$action&amp;p=$p&amp;sid=$ sid\">inainte &gt;</a>");
                  }



                  if(($bd_length>$qq) and ($endif>$qq))
                  {

                  $rets = "<form action=\"index.php\" method=\"get\">";
                  $rets .= "(pagina $page din: $p)
                  <input name=\"page\" style=\"-wap-input-format: &#39;*N&#39;\" size=\"2\"/>";
                  $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\">";
                  $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\">";
                  $rets .= "<input type=\"hidden\" name=\"script\" value=\"$script\">";
                  $rets .= "<input type=\"Submit\" name=\"Submit\" Value=\"dute la pagina\"></form>";
                  echo $rets;
                  }
                  echo "Director: $file_count ";
                  if ($file_count == 1)
                  {echo "fisier";}
                  else
                  {echo "fisiere";}
                  }
                  ///closedir($dp);
                  echo "<center>";
                  echo "<img src=\"../../images/line.gif\" alt=\"___-\" />
                  ";
                  echo "<a href=\"../../extra.php?action=main&amp;sid=$sid\">extra</a>";
                  echo "||";
                  echo "<a href=\"../../index.php?action=main&amp;sid=$sid\">acasa</a>";
                  echo "
                  ";
                  echo "<img src=\"http://c16.statcounter.com/counter.php?sc_project=1643539&amp;java=0&amp;secu rity=fe4fec08&amp;invisible=0\" alt=\"vizite\" />
                  ";
                  echo "© 2007";
                  echo "</center>";
                  echo "</body>";


                  ?>
                  </div>

                  Comment


                    #10
                    help please to can jump to page and go to next and prev, pls, i make this but is no god

                    Comment

                    Working...
                    X