Jump to content
php.lv forumi

Recommended Posts

Posted

Sveiki. Vēlos paprasit mby kadam ir Lietotāju klases script, piemeram Admins/ moderators, Lietotājs un admisn var pievienot nonemt visaadus pluginus bet leitoaajs taa nevar. Reku man ir manas ieveidotas tabulas datubāzei grupas

		g_id	  int(11)   	auto_increment  
name 	varchar(20) 	utf8_unicode_ci 		
access_add 	int(1) 	
access_edit 	int(1) 
access_delete 	int(1)

Un ir lietoaaji tabula . kur glabājās reģistretie leitotaaji webaa. :

		id	  int(11)	  auto_increment		
vaards 	varchar(255) 	utf8_unicode_ci 	
uzvaards 	varchar(255) 	utf8_unicode_ci 		
epasts 	varchar(255) 	utf8_unicode_ci 	
parole 	varchar(255) 	utf8_unicode_ci 	
	bilde 	varchar(255) 	utf8_unicode_ci 
online 	varchar(1) 	utf8_unicode_ci

 

Var buutk ads var iedod kodu kad piemeram ir klases: Admins/ moderators/ lietotaajs. un admins var kontroleet visu majas lapu caur admin.php piemeram bet kad citas klases iet admin.php tad vinus izmet ara uzreiz. to vareetu izdariit tikai admini.

 

Cerams saprataat :)

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.

Loading...
×
×
  • Create New...