Jump to content

Help in INIT.PHP


vranghel

Recommended Posts

Hello, this is the page code.

 

<?php

define("CLIENTAREA",true);

require("init.php");
require("includes/functions.php");
require("includes/clientareafunctions.php");

$pagetitle = 'Hospedagem Linux';
$pageicon = "images/support/clientarea.gif";
$breadcrumbnav = '<a href="hospedagemlinux.php">'.$_LANG['globalsystemname'].'</a>';
$breadcrumbnav .= ' > <a href="hospedagemlinux.php">Hospedagem Linux</a>'; 

initialiseClientArea($pagetitle,$pageicon,$breadcrumbnav);

if ($_SESSION['uid']) {
 # User is Logged In - put any code you like here
} 

# To assign variables in Smarty use the following syntax.
# This can then be used as {$variablename} in the template

$smartyvalues["variablename"] = $value; 

# Define the template filename to be used without the .tpl extension

$templatefile = "hospedagemlinux"; 

outputClientArea($templatefile);

?>

- - - Updated - - -

 

Hello, this is the page code.

 

<?php

define("CLIENTAREA",true);

require("init.php");
require("includes/functions.php");
require("includes/clientareafunctions.php");

$pagetitle = 'Hospedagem Linux';
$pageicon = "images/support/clientarea.gif";
$breadcrumbnav = '<a href="hospedagemlinux.php">'.$_LANG['globalsystemname'].'</a>';
$breadcrumbnav .= ' > <a href="hospedagemlinux.php">Hospedagem Linux</a>'; 

initialiseClientArea($pagetitle,$pageicon,$breadcr umbnav);

if ($_SESSION['uid']) {
# User is Logged In - put any code you like here
} 

# To assign variables in Smarty use the following syntax.
# This can then be used as {$variablename} in the template

$smartyvalues["variablename"] = $value; 

# Define the template filename to be used without the .tpl extension

$templatefile = "hospedagemlinux"; 

outputClientArea($templatefile);

?>

Link to comment
Share on other sites

As John mentioned, this isn't something that would be created by WHMCS. It looks like you've got some stuff going on with your page.

 

Take a look at the docs for creating a page . You might have to do some tweaking to your page php, depending on how long ago you created the page. IIRC, the only include required now is init.php. The rest are no longer needed.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated