ziedinjsh Posted August 20, 2009 Author Report Share Posted August 20, 2009 iekopējies Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted August 21, 2009 Author Report Share Posted August 21, 2009 es izdzēsu BOM simbolus, bet nu problēma ir vienalga.. Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted August 21, 2009 Report Share Posted August 21, 2009 Headers already sent problēma? Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted August 21, 2009 Author Report Share Posted August 21, 2009 header problēma ir novērsta, bet vēljoprojām nevaru sparast par šo: if (user) { echo 'kautkas'; } else { header("Location: index.php"); } doma ir tāda index.php failā: if (guest) { echo 'Tad rādas tikai logina formas'; include "login.php"; } if (memmber) { echo 'rādas lapas saturs'; } bet man kaut kā neizdodas neko tādu izveidot.. jo login.php ieiešanu kontrolē cookie un ar viņiem es esmu uz Jūs Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted August 21, 2009 Report Share Posted August 21, 2009 Nu - guest, tas nozīmē, ka nav ielogojies, member - tajā gadījumā, ja ir ielogojies. Tavā kodā jau ir (ja visas problēmas novērstas) tas aptuveni realizēts: //then redirect them to the members area header("Location: http://62.63.191.54/"); Tātad tā redirekta vietā vienkārši ieliec to "memberiem" domāto saturu. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.