goldy Posted October 21, 2005 Report Share Posted October 21, 2005 varbuut iedod uzreiz seit kaadam lai uztaisa tev to lapu, jo izskataas ka tu ar katru mazaako probleemu seit bljausties Link to comment Share on other sites More sharing options...
keissfootball Posted October 21, 2005 Author Report Share Posted October 21, 2005 Roze, jā, bet ar to man tāpat rādīsies tabula pa centru nogriežot labo malu un kontaktu logu (apakšā). šis kods ir, kad piemēram ievada nepareizu paroli un viņš tev parāda šo logu, bet kāpēc viņš to nobīda pa labi noraujot malas? :huh: // tjipa nepareiza parole if ($pwd <> $admin_password) { echo "<HTML> <HEAD> <TITLE>".$lang[$conf['lang']]['wrong-admin-password']." - $title</TITLE> <META HTTP-EQUIV='REFRESH' CONTENT='1; URL=$PHP_SELF?page=$page'> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'> <LINK REL='StyleSheet' HREF='fg-style.css' TYPE='text/css'> </HEAD>"; echo "<BODY bgcolor='$background'> <H1>".$lang[$conf['lang']]['wrong-admin-password']."</H1> <center>".$lang[$conf['lang']]['one-moment']."</center> </BODY> </HTML>"; exit; } Link to comment Share on other sites More sharing options...
php_Stopp Posted October 21, 2005 Report Share Posted October 21, 2005 (edited) ir ideja ielikt inline frama, bet tas ir pārāk vienkārši kā es rēcu :D kur var būt prāts pērties ar >600 rindiņu nefunkcionējošu kodu.. Edited October 21, 2005 by php_Stopp Link to comment Share on other sites More sharing options...
keissfootball Posted October 21, 2005 Author Report Share Posted October 21, 2005 (edited) kā es rēcu :D 25195[/snapback] Nesapratu, par ko rēc? Var gan būt būtr prāts Edited October 21, 2005 by keissfootball Link to comment Share on other sites More sharing options...
keissfootball Posted October 21, 2005 Author Report Share Posted October 21, 2005 JOCĪGI , KA VIŅŠ MAN , KAD ES IEVADU PAROLI , LAI DZĒSTU ZIŅU UN AROLE IR PAREIZA , TAD VISS IR KĀRTĪBĀ, BET, JA NEPAREIZA, TAD NOGRIEŽ MALAS :blink: :blink: :blink: :blink: :blink: :blink: :blink: Link to comment Share on other sites More sharing options...
bubu Posted October 21, 2005 Report Share Posted October 21, 2005 JOCĪGI , KA VIŅŠ MAN , KAD ES IEVADU PAROLI , LAI DZĒSTU ZIŅU UN AROLE IR PAREIZA , TAD VISS IR KĀRTĪBĀ, BET, JA NEPAREIZA, TAD NOGRIEŽ MALAS :blink: :blink: :blink: :blink: :blink: :blink: :blink: 25198[/snapback] Nepareizs kods, acīmredzot. Link to comment Share on other sites More sharing options...
keissfootball Posted October 21, 2005 Author Report Share Posted October 21, 2005 es neredzu lielu starpību starp "pareizas paroles" kodu: echo "<HTML> <HEAD> <TITLE>".$lang[$conf['lang']]['deleted']." - $title</TITLE> <META HTTP-EQUIV='REFRESH' CONTENT='1; URL=$PHP_SELF?page=$page'> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'> <LINK REL='StyleSheet' HREF='fg-style.css' TYPE='text/css'> </HEAD>"; echo "<BODY bgcolor='$background'> <H1>".$lang[$conf['lang']]['deleted']."</H1> <center>".$lang[$conf['lang']]['one-moment']."</center> </BODY> </HTML>"; break; } un "nepareizās parole kodu" if ($pwd <> $admin_password) { echo "<HTML> <HEAD> <TITLE>".$lang[$conf['lang']]['wrong-admin-password']." - $title</TITLE> <META HTTP-EQUIV='REFRESH' CONTENT='1; URL=$PHP_SELF?page=$page'> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'> <LINK REL='StyleSheet' HREF='fg-style.css' TYPE='text/css'> </HEAD>"; echo "<BODY bgcolor='$background'> <H1>".$lang[$conf['lang']]['wrong-admin-password']."</H1> <center>".$lang[$conf['lang']]['one-moment']."</center> </BODY> </HTML>"; exit; } $record = file($data_path); [COLOR=orange]//laikam sheit jau beidzas tā funkcija un viņš ieraksta kautko failā[/COLOR] $jmlrec = count($record); for ($i=0; $i<$jmlrec; $i++) { $row = explode("|~~|",$record[$i]); if ($id==$row[1]) { $record[$i] = ""; break; } } $update_data = fopen($data_path,"w"); for ($j=0; $j<$jmlrec; $j++) { if ($record[$j] <> "") fputs($update_data,$record[$j]); } fclose($update_data); Link to comment Share on other sites More sharing options...
Garais333 Posted October 21, 2005 Report Share Posted October 21, 2005 (edited) Taks uztaisi pats to viesu graamatu, vai pameklee kaadu citu :) Edited October 21, 2005 by Garais333 Link to comment Share on other sites More sharing options...
keissfootball Posted October 21, 2005 Author Report Share Posted October 21, 2005 būtu jau jaunu atradis, bet esmu jau uzlicis šito un negribu viņu ņemt laukā nesaprotot kaut ko. Bet es mēģināsu salabot, jo līdz 1-dienai jau vajag, lai viss strādātu perfekti. :D Link to comment Share on other sites More sharing options...
php_Stopp Posted October 21, 2005 Report Share Posted October 21, 2005 (edited) http://www.demoscripts.co.uk/phpScriptIndex/cat.php?id=33 :) edit: vaimandieniņ, tā lapa vairāk neeksistē Edited October 21, 2005 by php_Stopp Link to comment Share on other sites More sharing options...
keissfootball Posted October 21, 2005 Author Report Share Posted October 21, 2005 (edited) eu nu man nevajag linkus uz citām, jaunām viesu grāmatām, būtu man jauna vajadzīga, es izmantotu savējo viesu grāmatas kodu, bet, tagad es gribu atrisināt šo problēmu Edited October 21, 2005 by keissfootball Link to comment Share on other sites More sharing options...
nubiks Posted October 22, 2005 Report Share Posted October 22, 2005 eu bet shitaa koda dalja $record = file($data_path); [COLOR=orange]//laikam sheit jau beidzas tā funkcija un viņš ieraksta kautko failā[/COLOR] $jmlrec = count($record); for ($i=0; $i<$jmlrec; $i++) { $row = explode("|~~|",$record[$i]); if ($id==$row[1]) { $record[$i] = ""; break; } } $update_data = fopen($data_path,"w"); for ($j=0; $j<$jmlrec; $j++) { if ($record[$j] <> "") fputs($update_data,$record[$j]); } fclose($update_data); vispaar neattiecas uz to paraadiishanu Link to comment Share on other sites More sharing options...
keissfootball Posted October 22, 2005 Author Report Share Posted October 22, 2005 es zinu Link to comment Share on other sites More sharing options...
Zoom Posted October 22, 2005 Report Share Posted October 22, 2005 (edited) varbut ieej te: http://php.lv/irc/ bus mazak posti no tavas puses... Edited October 22, 2005 by Zoom Link to comment Share on other sites More sharing options...
keissfootball Posted October 22, 2005 Author Report Share Posted October 22, 2005 jā, žēl tikai, ka tur neviena nav :( Link to comment Share on other sites More sharing options...
Recommended Posts