Jump to content
php.lv forumi

Neizdodas noslēpt tekstu


MrEnerg

Recommended Posts

Man ir problēma. Gribu izveidot savādāku login lapu, kur būtu tikai kur ielogoties, bet neizdodas noslēpt Jaunumus tā lai viesi tos neredzētu.

Izmantoju PG-CMS, vienkārši gribas bišk viņu pārveidot.

Ir headers.php kurā atrodas šis login kods un kur pārējo daļu noslēpu un footer.php ko arī noslēpu veiksmīgi, bet index.php neizdodas noslēpt lai viesi to neredzētu.

Izmantoju šādu kodu, bet index.php lapā viņš īsti negrib strādāt.

<?
if(!isLoggedIn())
{
?>
teksts
<?
}
else
{
?>
teksts
<? } ?>

Link to comment
Share on other sites

Fatal error: Cannot redeclare format_filesize() (previously declared in /home/..../public_html/includes/functions.php:2) in /home/live/public_html/includes/functions.php on line 9

 

Man šādu erroru rāda, bet nejau login.php lapā, bet iepriekšējā.

Edited by MrEnerg
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...