raynor009 Posted April 13, 2012 Report Posted April 13, 2012 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? Quote
coolbyte Posted April 13, 2012 Report Posted April 13, 2012 Ai rezolva cu un host platit care are cPanel. Quote
raynor009 Posted April 13, 2012 Author Report Posted April 13, 2012 Ai rezolva cu un host platit care are cPanel.Nu prea am bani de aruncat pe garduri in momentu asta.... Quote
coolbyte Posted April 13, 2012 Report Posted April 13, 2012 Hosting cu asa ceva Free Web Hosting with cPanel, PHP and MySQL, No Adssau poti incerca sa faci upload la un shel de peShell 99 - Download Quote
shaggi Posted April 13, 2012 Report Posted April 13, 2012 (edited) <?$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-ulPS: l-am scris in graba, daca e ceva dati un PM Edited April 13, 2012 by shaggi Quote
JohnDoe Posted April 13, 2012 Report Posted April 13, 2012 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 Quote
totti93 Posted April 13, 2012 Report Posted April 13, 2012 Eu iti recomand paginile web dinamice. Fiecare continut sa fie luat dintr-o baza de date MySQL folosind ca limbaj server-side PHP. Apoi foarte usor poti face un panou de administrare pentru site-ul tau. Quote
raynor009 Posted April 14, 2012 Author Report Posted April 14, 2012 @JohnDoe am incercat ce ai spus tu dar imi da eroarea astaWarning: 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 Quote
JohnDoe Posted April 14, 2012 Report Posted April 14, 2012 (edited) @JohnDoe am incercat ce ai spus tu dar imi da eroarea astaWarning: 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 36descarca-l iar. era doar o mica eroare.PS. daca vrei si ceva design si alte optiuni, poti sa ceri. Edited April 14, 2012 by JohnDoe Quote
raynor009 Posted April 14, 2012 Author Report Posted April 14, 2012 (edited) Logged inWarning: 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 61Warning: scandir(../) [function.scandir]: failed to open dir: Operation not permitted in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 61Warning: scandir() [function.scandir]: (errno 1): Operation not permitted in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 61Warning: Invalid argument supplied for foreach() in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 63Click to edit a fileAsta 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 April 14, 2012 by raynor009 Quote
JohnDoe Posted April 14, 2012 Report Posted April 14, 2012 Logged inWarning: 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 61Warning: scandir(../) [function.scandir]: failed to open dir: Operation not permitted in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 61Warning: scandir() [function.scandir]: (errno 1): Operation not permitted in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 61Warning: Invalid argument supplied for foreach() in /www/99k.org/f/i/l/filewagon/htdocs/index.php on line 63Click to edit a fileAsta 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 Quote
raynor009 Posted April 14, 2012 Author Report Posted April 14, 2012 Am luat fisierele din folder si le-am pus in acelasi loc unde sunt paginile. Quote
JohnDoe Posted April 14, 2012 Report Posted April 14, 2012 Am luat fisierele din folder si le-am pus in acelasi loc unde sunt paginile.pune folderul admin (cum am scris la inceput) nu fisierele din el..https://rstcenter.com/forum/51809-html-cum-fac-un-panou-de-control.rst#post344869 Quote
raynor009 Posted April 14, 2012 Author Report Posted April 14, 2012 (edited) 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 April 14, 2012 by raynor009 Quote
JohnDoe Posted April 14, 2012 Report Posted April 14, 2012 (edited) 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 9vezi ce permisiuni ai setat din ftp. pune sa fie 0644 la fisierele html. Edited April 14, 2012 by JohnDoe Quote
raynor009 Posted April 14, 2012 Author Report Posted April 14, 2012 (edited) 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 April 14, 2012 by raynor009 Quote