Jump to content

Function problem


snteran

Recommended Posts

I am trying to load this free script that I found for a sales management system, something like ACT! or Goldmine and I am getting an error.

Fatal error: Cannot redeclare CSQLAdmin::$functions in C:\AMP\Apache2\htdocs\sms\lib\sqladmin.php on line 33

Here is the code from the sqladmin.php file ( I colored line 33 in Red):

<?php

/**
*/
class CSQLAdmin extends CLibrary {

/**
* description
*
* @var type
*
* @access type
*/
var $form;

/**
* description
*
* @var type
*
* @access type
*/
var $functions;


/**
* description functions list which will be executed in variouse points of sqladmin
*
* @var type
*
* @access type
*/
[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]var $functions;[!--colorc--][/span][!--/colorc--]


function CSQLAdmin($section , $templates , $db , $tables , $extra = "") {
global $_CONF;

if (!$_GET["page"])
$_GET["page"] = 1;


parent::CLibrary("SQLAdmin");

//checking if the templates are orblects or path to a template file
if (!is_array($templates))
//if path the load the tempmate form that file
$this->templates = array("generic_form" => new CTemplate($templates));
else
$this->templates = $templates;

$this->db = $db;
$this->tables = $tables;
//extra variables to be passed to cform
$this->extra = $extra;


I do have some PHP experience but not much at all with functions.

thanks,

Serge
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.