Template not working with x10's version of PHP?

Chris S

Retired
Messages
2,055
Reaction score
1
Points
38
Where you able to fix it because I can see it just fine, i opened both pages in firefox and it looks fine to me
 

crazywhite1989

New Member
Messages
69
Reaction score
0
Points
0
at the bottom of you index.php is where your <? php code, replace with this. It's not x10hosting version of PHP. It's the template php how it is used.

PHP:
<?php
 
// Page indexer
    $page = addslashes(strip_tags($_GET['page']));    
 
        if (!$page)
            {
            include("pages/home.php");
            $page = "Home";
        }else{
            $file = "pages/$page.php";
            if (file_exists($file))
                {
                include("pages/$page.php");
            }else{
            echo "<meta http-equiv='refresh' content='0; url=index.php'>";
            exit;
        }
    }

You should use this to place with your links

index.php?page=page_name
 
Last edited:

Equiflux

New Member
Messages
362
Reaction score
0
Points
0
Thanks CrazyWhite,

I didn't bother to look at the source, since it worked on ClanTemplates.
 
Top