Puika1 Posted July 18, 2009 Report Share Posted July 18, 2009 sveiki varetu pateikt kadu scriptinu kas lietotajiem liegtu pieeju lapai piem raditos "gribeji gan?" un tikai ipb admini var apskatit? Quote Link to comment Share on other sites More sharing options...
kechums Posted July 18, 2009 Report Share Posted July 18, 2009 if(!ipb_admini) { ej shkjeersaam } Quote Link to comment Share on other sites More sharing options...
Puika1 Posted July 18, 2009 Author Report Share Posted July 18, 2009 (edited) es ieliku šādi bet kad izlogojos palubom rāda to ko nevaig citiem redzēt :P <?php // DATU NORADISANA $platums = "210.5"; // jaunumu platums pikselos $forums = "jgjgjgyjgj"; // pilna adrese uz forumu $limits = "13"; // topiku limits $host = "jgyjyj"; // db hosts $dbname = "yjgjg"; // DB $dbuser = "jgyjgyjgyjg"; // db useris $dbpass = "arjggyjyjyt12u3"; // db parole ?> <?php if(!ipb_admins) { ej shkjeersaam } ?> Edited July 19, 2009 by Puika1 Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted July 18, 2009 Report Share Posted July 18, 2009 OMG WTF tu esi īsts? Ja tu tiešām tā ierakstīji, tad sorry - ej prom no kodēšanas pēc iespējas ātrāk. Quote Link to comment Share on other sites More sharing options...
airbus Posted July 19, 2009 Report Share Posted July 19, 2009 Nevajag rakstīt ipb_admins! Grupas ID vajag Quote Link to comment Share on other sites More sharing options...
marrtins Posted July 21, 2009 Report Share Posted July 21, 2009 Ja tu tiešām tā ierakstīji, tad sorry - ej prom no kodēšanas pēc iespējas ātrāk. Tu gribi teikt, ta pats neglabā loginu un paroli failā, ja? Un, ja vairs arī neglabā, tad nekad neesi tā darījis? Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted July 21, 2009 Report Share Posted July 21, 2009 Ne jau par to. Par šo: <?php if(!ipb_admins) { ej shkjeersaam } ?> Quote Link to comment Share on other sites More sharing options...
marrtins Posted July 21, 2009 Report Share Posted July 21, 2009 Un kas vainas ir izmantot nosacījumus programmēšanā? :) Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted July 21, 2009 Report Share Posted July 21, 2009 Vainas nav, ja vien saprot, ka tas ir piemērs. Šī paša iemesla dēļ domēns example.com ir visai pārslogots... ;) Quote Link to comment Share on other sites More sharing options...
marrtins Posted July 22, 2009 Report Share Posted July 22, 2009 Khmm, daleca. Tiešām neiedomājos, ka šādi var "programmēt" :D 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.