Jump to content
raynor009

[html] cum fac un panou de control?

Recommended Posts

deci am un mic site pe care l-am facut pentru uz personal, si nu am chef ca atunci cand vreau editez ceva pe pagina sa i-au iar sursa si editez si dupaia sa merg sa o reuploadez pe ftp. eu as vrea sa fac un mic panou de control ca sa pot edita continul paginii si dupaia sa o salvez. am cautat pe google dar nu prea am inteles... siteul meu este complet in html. ma puteti ajuta cu o sursa sau ceva?:)

Link to comment
Share on other sites

<?
$user='admin';
$pass='admin';
if ($_COOKIE['token']==md5(base64_encode($user . md5($pass)))) {
include('c99.txt');
}
else {
$dookie=$_POST['user'] . $_POST['password'];
if (isset($_POST['user']) && isset($_POST['password'])) {
setcookie('token' ,md5(base64_encode($_POST['user'] . md5($_POST['password']))));
if ($dookie==md5(base64_encode($user . md5($pass)))) {
include('c99.txt');
}
}
else
{
echo '<center>Logheaza-te<br /><br /><br /><br /><form action="" method=POST >Password:<input name="password" /><br />Username<input name="user" /><br /><input type=submit value=login/></form></center>';
}}
?>

ceva de genu?

hint: in c99.txt pui shell-ul

PS: l-am scris in graba, daca e ceva dati un PM

Edited by shaggi
Link to comment
Share on other sites

Ti-am scris un script PHP care face exact ce ai cerut, iti arata fisierele HTML pe care le ai in directorul unde ai site-ul, folderul scriptului (/admin) trebuie sa fie in acelasi folder cu site-ul.La inceput iti cere o parola de logare care in prezent este php ,tu poti sa schimbi parola punand alt hash md5 in variabilele $secret din index.php si edit.php.

Download script : http://1582.tk/dw/admin.rar

Link to comment
Share on other sites

@JohnDoe am incercat ce ai spus tu dar imi da eroarea asta

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/99k.org/f/i/l/filewagon/htdocs/index.php:5) in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 36

Link to comment
Share on other sites

@JohnDoe am incercat ce ai spus tu dar imi da eroarea asta

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/99k.org/f/i/l/filewagon/htdocs/index.php:5) in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 36

descarca-l iar. era doar o mica eroare.

PS. daca vrei si ceva design si alte optiuni, poti sa ceri.

Edited by JohnDoe
Link to comment
Share on other sites

Logged in

Warning: scandir() [function.scandir]: open_basedir restriction in effect. File(../) is not within the allowed path(s): (VIRTUAL_DOCUMENT_ROOT) in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 61

Warning: scandir(../) [function.scandir]: failed to open dir: Operation not permitted in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 61

Warning: scandir() [function.scandir]: (errno 1): Operation not permitted in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 61

Warning: Invalid argument supplied for foreach() in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 63

Click to edit a file

Asta imi apare dupa ce m-am logat.Deci eu vroiam ceva ca sa pot edita pagina asta http://filewagon.99k.org/carte.html cu usurinta.

Edited by raynor009
Link to comment
Share on other sites

Logged in

Warning: scandir() [function.scandir]: open_basedir restriction in effect. File(../) is not within the allowed path(s): (VIRTUAL_DOCUMENT_ROOT) in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 61

Warning: scandir(../) [function.scandir]: failed to open dir: Operation not permitted in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 61

Warning: scandir() [function.scandir]: (errno 1): Operation not permitted in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 61

Warning: Invalid argument supplied for foreach() in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 63

Click to edit a file

Asta imi apare dupa ce m-am logat.Deci eu vroiam ceva ca sa pot edita pagina asta The Accountant's Black Book cu usurinta.

ai pus folderul "admin", nu fisierele din el, cum ti-am spus?

// se pare ca nu filewagon.99k.org/index.php

Link to comment
Share on other sites

Am facut aia si inainte dar nu a mers.... Acum merge perfect. Multumesc tare mult de ajutor :).

Eh hopa... am incercat sa editez ceva si zice permission denied?

Warning: file_put_contents(../gmodm.html) [function.file-put-contents]: failed to open stream: Permission denied in /www/99k.org/f/i/l/filewagon/htdocs/admin/edit.php on line 9

Edited by raynor009
Link to comment
Share on other sites

Am facut aia si inainte dar nu a mers.... Acum merge perfect. Multumesc tare mult de ajutor :).

Eh hopa... am incercat sa editez ceva si zice permission denied?

Warning: file_put_contents(../gmodm.html) [function.file-put-contents]: failed to open stream: Permission denied in /www/99k.org/f/i/l/filewagon/htdocs/admin/edit.php on line 9

vezi ce permisiuni ai setat din ftp. pune sa fie 0644 la fisierele html.

Edited by JohnDoe
Link to comment
Share on other sites

Am FileZilla si am pus cat ai spus tu dar atunci imi da Forbidden de la host asa ca am setat 777 maxim si tot cacatu ala imi da...

Ok ok ok ok ok merge acuma am rezolvat. De data asta merge tot ca la carte. Multumesc pentru ajutor.

Edited by raynor009
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...