Put somethings just in My Index.php Put somethings just in My Index.php
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Put somethings just in My Index.php

Started by synx, November 05, 2005, 07:16:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

synx

I want to put somethings just in My Index.php , i mean just show at index.php
Not a block , i have create {HEADER_2} At theme.php
And Put some of my tables on it - How can i fix it

if ($cat == 0) {
return <<<EOT
<table width="100%" border="0" cellpadding="0" cellspacing="0">
......
} else {
return <<<EOT
<ANOTHER table width="100%" border="0" cellpadding="0" cellspacing="0">
.......


It's work but - in all of pages shows - if ($cat == 0)   << I think it's not a right way ?

Can you help me plz ?


Joachim Müller



synx

Oh , i find it !
Sorry - But i think it's a simple !
But , ok

I will visit another time
Thanks

synx

 :\'( Guys i really need this !
If you give me a solution , i mean trick or tip i will try to make it myself

Thanks at all

NevilleX

After hours and hours of experimenting, reading PHP manual and studing coop files I have found this soulution.

if ((defined('INDEX_PHP')) && (empty($cat)) && (empty($_GET['album'])))

I don't know php very well and maybe there is a better solution, but this works for me.
Hope it helps somebody.