Jump to content

_jexe or die

- - - - -

  • Please log in to reply
No replies to this topic

#1
bradley7

bradley7

    Newbie

  • Members
  • PipPip
  • 15 posts
Hi guys, I'm new and frustratred

Basically i'm trying to learn JoomlA template which i copy from a book and trying to get running
All the reading i have done has told me ids is security ok, when I run it I get "Access Denined'
When I take the PHP stuvff out, which i don't want to do, it come up with errors

HELP please
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >

<head>

<jdoc:include type="head" />

<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/system/css/general.css" type="text/css" />

</head>

<body>
The name of this site is <?php echo $mainframe->getCfg('sitename');?><br />
The administrator email is <?php echo $mainframe->getCfg('mailfrom');?><br />
This template is in the <?php echo $this->template?> directory<br />
The URL is <?php echo JURI::base();;?>
<jdoc:include type="module" name="breadcrumbs" />
<jdoc:include type="modules" name="top" />
<jdoc:include type="modules" name="left" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="right" />
</body>
</html>

Brad




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users