Posted: Thu Oct 12, 2006 2:11 am
The server was running fine but for some reason astions wasn't available. I'll look into why this happened. If an issue such as this should arise again, please email me at agtlewis at gmail dot com.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
Class DNS_super_class
{
var $sql_core;
var $theme_core;
//...
}
?>Code: Select all
<?php
Class DNS_db_class
{
var $dns_superclass;
//...
?>Code: Select all
<?php
require_once "dns_superclass.php";
require_once "dns_db_class.php";
$dns_superclass = new DNS_super_class;
$dns_superclass->sql_core = new DNS_db_class;
$dns_superclass->sql_core->dns_superclass &= $dns_superclass;
?>and btw - your code is php4, not 5 :p
You are right... I just posted it and run to other things... thanksfeyd | we don't need a massive image breaking the page layout.
No problem; that's why I just edited it and left a tiny note.ok wrote:You are right... I just posted it and run to other things... thanks
ok wrote:and btw - your code is php4, not 5 :p- Right now I use PHP4 because my hosting company only supports it...
what is the implementation of that code in PHP5?
Code: Select all
<?php
class DNS_super_class
{
public $sql_core;
public $theme_core;
//...
}
?>Code: Select all
CREATE DATABASE `dns`;
-- ----------------------------------------------------------------------------------
CREATE TABLE `dns_config` (
`type` varchar(255) NOT NULL,
`value` varchar(255) NOT NULL default '-1',
PRIMARY KEY (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------------------------------------------------------------
CREATE TABLE `dns_error` (
`error_id` int(10) NOT NULL default '0',
`error_level` varchar(2) NOT NULL default '',
`message` varchar(255) NOT NULL default '',
`log` tinyint(1) NOT NULL default '1',
`print` tinyint(1) NOT NULL default '0',
`stop_execution` tinyint(1) NOT NULL default '0',
KEY `error_id` (`error_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------------------------------------------------------------
CREATE TABLE `dns_groups` (
`id` int(5) NOT NULL auto_increment,
`name` varchar(255) NOT NULL,
`admin_system` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- ----------------------------------------------------------------------------------
CREATE TABLE `dns_members` (
`id` mediumint(8) NOT NULL auto_increment,
`name` varchar(255) NOT NULL,
`real_name` varchar(255) NOT NULL,
`group` smallint(3) NOT NULL default '0',
`password` varchar(255) NOT NULL,
`secret_question` varchar(100) NOT NULL,
`secret_answer` varchar(100) NOT NULL,
`email` varchar(150) NOT NULL default '-1',
`joined` int(10) NOT NULL default '0',
`ip_address` varchar(16) NOT NULL,
`time_offset` tinyint(2) NOT NULL default '0',
`theme` varchar(255) NOT NULL default '-1',
`local` varchar(32) NOT NULL default '-1',
PRIMARY KEY (`id`),
KEY `name` (`name`),
KEY `mgroup` (`group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- ----------------------------------------------------------------------------------
CREATE TABLE `dns_sessions` (
`session_id` char(32) NOT NULL default '',
`session_user_id` mediumint(8) NOT NULL default '0',
`session_start` int(11) NOT NULL default '0',
`session_end` int(11) NOT NULL default '0',
`session_user_ip` char(15) NOT NULL default '0',
`session_is_logged` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`session_id`),
KEY `session_user_id` (`session_user_id`),
KEY `session_user_ip` (`session_user_ip`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Let's hope.I hope it's not dead...