Jump to content
php.lv forumi

lietotāja ielagošanās.


Southwind*

Recommended Posts

$_GET ir nedrošs variants priekš pārmešanas, bet...

īsumā..

1.reģistrējam sesiju

1.1.url pievienojam specifisku lapas id ar GET

2.palaižam sesiju ( ja grib, var pievienot cookies )

2.1.izmantojot header aizmetam uz index.php

3.Index.php failā ieliekam IF, kur tiek pārbaudīts GET lapas id

un ja ir cilveks ielogojies pieprasam to tavu attiecigo stylesheet,jquery vai ko tu tur gribi nomainit. (attiecīgi visi includi prieks index.php [login sadaļas])

 

ceru ka pareizi sapratu u ntev noderēs.

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.

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