Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Tue Apr 16, 2024 9:52 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 
Author Message
PostPosted: Tue May 01, 2007 7:44 am 
Offline
Newbie
User avatar

Joined: Mon Apr 30, 2007 1:38 pm
Posts: 6
Location: Egypt
First of all I would like to congratulate you on you gr8 work
And I have some Ideas and I like to know how you think about it
I’m an IT Consultant and I have an IT contracting co. and basically we mange
A remote offices and small company’s who can’t afford hearing IT staff
We ware doing H/W inventory manually before we use your magnificent program
I have a fare knowledge in php , and MySQL and good VB programmer
So at first I have installed the software on my hosting space on line
And I modified the setup.php because:
1 – I don’t have a root access to data base since I’m using a sheared hosting
2 – Can’t create database the only way that I can create a database is by doing that from hosting CP
So my first requests is or shell we call it Ideas :idea: :D
1 – Modify the setup file for just (Enter Server Name, username, password, database name) and then the setup creates the tables or makes it an option “I Can help with that “
2 – since most of sheared hosting plans offered a limited number of database creations
So I hade to use the same database name with a various programs so database prefix will be good to disguise program tables like “openaudet_users” “I’m trying to help with that but I have many problems altering the php code “
3 – As I mentioned be fore we manage a deferent places and locations so it really will be good if there is a grubbing option like
Ex. Co1
location 1
pc 1
pc 2
4 – And how about a multy user access since I use the program on line and I have co worker who use it form a deferent locations
5 – is there any way to create a unique serial number for every PC I’m not talking about MAC address or Bios SN or Processor S/N since some pc’s doesn’t have a LAN card or the HW doesn’t report or have a Serial Number and creating a barcode to place it on pc “I can help with the barcode coding in php”
6 – in our work we hade to assignee the vendor serial number for every peace installed in pc
But the audit.vbs script can’t report it all like modems, sound cards, BT …. Etc
Is there any way to add SN fielded to every component like the Manual Data Button in your code that we can use to assignee the serial number manually in case if the script miss to report it ?

Thanks to you all and I hope to hearer from you soon
And please tell me how I can help and Participate in this graet project


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue May 01, 2007 7:53 am 
Yes, the setup certainly has its limitations. Never had the time to work to clean it up. However, if you have the time to work on it, just send us the code and we'll review it. If you do enough work, we can talk about getting an SVN account so you can upload. But for now, just send us what you can! We can all use extra hands on the code.


Top
  
Reply with quote  
 Post subject:
PostPosted: Tue May 01, 2007 7:27 pm 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
The setup was a bit of a rush job for the last release. (Hands up, the database create problems are probably down to me). :?

Think I might have been using the same keyboard as you!
[quote]A remote offices and small company’s who can’t afford hearing IT staff
None of my IT staff listen either! :twisted:

Shared hosting is a problem, and as you say, the only option under these conditions is to create the database manually, so perhaps we need the setup to branch depending on the question... "would you like to create the database from the setup, or have you already created it" (or something similar).

We then either create it, or use the existing database. That way life is simple for those who can create the database from the setup and the setup wont bomb if the database is already there.

Better still we check to see if the database exists. Something like.... First form asks for database name, then checks to see if it exists, then if not asks the question, shall I create, if this fails, we give instructions to do by hand and a Retry Button. Then on retry, carry on if the database now exists. etc....

The database prefix is a must, since a lot of hosting packages only allow one database.

I think, in fact, you don't need to alter much of the main code for this, just the database name, this becomes {default_database}_{open-audit_database_name} to which we prefix/examine {default_database}_{open-audit_database_name}_table_name or similar.

But this does have an impact on the database setup code.

Systems like Joomla use both of these techniques (the database setup and table prefix), so we could examine their code for methods and ideas.

I have been thinking about breaking my data down by domain (which is the same as location in effect), but haven't had time to code for this, although I do currently audit a whole bunch of domains. I simply look for an IP range when I need to see a particular location, as this is unique for each site (they are all on different subnets). In the real world however lots of sites use 192.168.1.X or 192.168.0.X or 10.0.0.X so this wont always work.

The multi user bit, is this for different sites? If not you can set up multiple users for the same database (but not currently different access levels).
See this section of include_config.php
[code]
// An array of allowed users and their passwords
// Make sure to set use_pass = 'n' if you do not wish to use passwords
$use_pass = 'n';
$users = array(
'admin' => 'Open-AudIT'
);

[/code]

It is a little crude, so any extras would be welcome.

Bar-code option. If you use the "Open-Audit UUID as key" i.e. in audit.config set uuid_type = "uuid", then in theory every machine will have a unique UUID, so you could easily bar-code this. You could also bar-code from the serial number, but clones often don't have serial numbers. :cry:

Hardware items serial numbers. Adding serial numbers is a matter of adding a database field to each hardware item. Not hard to do, but would require a fair bit of coding.

Feel free to code these ideas, use the most up to date SVN version as your base, and we can then test and add back to the SVN for you if the code is clean. :D

_________________
Andrew

[size=85]OA Server: Windows XP/ XAMPP, Mandriva/Apache, Ubuntu
Auditing: 300+ Wstns, 20+ Srvrs, Thin clients, Linux boxes, Routers, etc
OS's: Windows XP , W2K Srvr, W2K3 Srvr, W2K8, Vista, Windows 7, Linuxes (and a Mac at home)
LDAP: Active Directory[/size]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 02, 2007 2:53 am 
Offline
Newbie
User avatar

Joined: Mon Apr 30, 2007 1:38 pm
Posts: 6
Location: Egypt
Thank you A_Hull for you response, the database handling option has already made and I have send the setup.php file to mikeyrb
And I’m working now on the menu section to be loaded from database and a multy user and access level it will take about 3 days and I will send it
And about the database prefix no need for that since we can chose the database name I was talking about the Table prefix and to do that I have to go throw ever SQL statement in the code to modify every table name
And the UUID cant be used as a Barcode :( since the UUID use ether MAC ADD and its Alpha Numeric or User Name , and I was thinking of using CODE39 barcode since its commonly used and a basic further in every barcode reader but it’s a numeric code only
Hope to hear from you soon
:D


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 02, 2007 3:54 am 
So are you thinking of creating a unique barcode for each system and attach that to a UUID for external labelling purposes? Not a bad idea.


Top
  
Reply with quote  
 Post subject:
PostPosted: Wed May 02, 2007 11:09 am 
Offline
Newbie
User avatar

Joined: Mon Apr 30, 2007 1:38 pm
Posts: 6
Location: Egypt
I have really missed up the code since I’m using php for 1 month only now :D
I have tried to make a dynamic menu and I was close to achieve my goal but
Since my knowledge in open audit is not that good and my rank as Simi beginner in php :(
I really got frustrated

the menu has 3 parts
1
The MySql Table
[code]
DROP TABLE IF EXISTS `openaudit_menu`;
CREATE TABLE `openaudit_menu` (
`menu_id` int(10) unsigned NOT NULL auto_increment,
`menu_rank` varchar(100) NOT NULL default '',
`menu_name` varchar(100) NOT NULL default '',
`menu_title` varchar(100) NOT NULL default '',
`menu_link` varchar(150) NOT NULL default '',
`menu_image` varchar(150) NOT NULL default '',
`menu_class` varchar(100) NOT NULL default '',
`menu_child_from` varchar(100) NOT NULL default '',
`menu_has_child` varchar(10) NOT NULL default '',
PRIMARY KEY (`menu_id`),
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


INSERT INTO `openaudit_menu` ( `menu_id` , `menu_rank` , `menu_name` , `menu_title` , `menu_link` , `menu_image` , `menu_class` , `menu_child_from` , `menu_has_child` )
VALUES (NULL , '10', 'Hardware', '', 'system.php?pc=$pc&view=hardware', 'images/printer.png', '1', 'menuparent', '');

INSERT INTO `openaudit_menu` ( `menu_id` , `menu_rank` , `menu_name` , `menu_title` , `menu_link` , `menu_image` , `menu_class` , `menu_child_from` , `menu_has_child` )
VALUES (NULL , '10', 'Hardware', '', 'system.php?pc=$pc&view=hardware', 'images/printer.png', '2', 'menuparent', '');



INSERT INTO `openaudit_menu` ( `menu_id` , `menu_rank` , `menu_name` , `menu_title` , `menu_link` , `menu_image` , `menu_class` , `menu_child_from` , `menu_has_child` )
VALUES (NULL , '05', 'ALL', 'title', 'system.php?pc=$pc&view=hardware', 'images/statistics.png', '3', 'menuparent', '');

INSERT INTO `openaudit_menu` ( `menu_id` , `menu_rank` , `menu_name` , `menu_title` , `menu_link` , `menu_image` , `menu_class` , `menu_child_from` , `menu_has_child` )
VALUES (NULL , '10', 'Fixed Disks', 'title', 'system.php?pc=$pc&view=hardware&category=hard_drive', 'images/harddisk.png', '3', 'menuparent', '');
[/code]




2 file named treeviewclass.php


[code]
<?php

class treeview
{
var $htmlstr;

function treeview($id,$imgid,$childid,$txt,$def)
{
echo "<div id='$id'>";
if ($def == 1)
{
echo "<a href=\"javascript:void(0)\" onclick=\"toggle('$childid','$imgid')\"><img id=\"$imgid\" align=\"absmiddle\" border=\"0\" src=\"images/imgFolder1.gif\">$txt</a>";
}
else
{
echo "<a href=\"javascript:void(0)\" onclick=\"toggle('$childid','$imgid')\"><img id=\"$imgid\" align=\"absmiddle\" border=\"0\" src=\"images/imgFolder0.gif\">$txt</a>";

}


}

function addItem($menutxt)
{
echo "<li style=\"padding: 0px; margin:0px; background:url('images/line_vertical.gif');background-repeat:repeat-y\">";
echo "<img src=\"images/line_branch.gif\" align=\"absmiddle\"><img src=\"images/html.gif\" align=\"absmiddle\">$menutxt";
echo "</li>";


}

function addItemLast($menutxt,$parentflag)
{
echo "<li style=\"padding: 0px; margin:0px;\">";
echo "<img src=\"images/line_corner.gif\" align=\"absmiddle\"><img src=\"images/html.gif\" align=\"absmiddle\">$menutxt";
echo "</li>";
echo "</ul>";
if ($parentflag == 1)
{
echo "</li>";
}

}

function addTree($imgid,$childid,$txt,$def)
{
echo "<li style=\"padding: 0px; margin:0px; background:url('images/line_vertical.gif');background-repeat:repeat-y\">";
if ($def == 1)
{
echo "<a href=\"javascript:void(0)\" onclick=\"toggle('$childid','$imgid')\"><img src=\"images/line_branch.gif\" align=\"absmiddle\" border=\"0\"><img id=\"$imgid\" align=\"absmiddle\" border=\"0\" src=\"images/imgFolder1.gif\">$txt</a>";
}
else
{
echo "<a href=\"javascript:void(0)\" onclick=\"toggle('$childid','$imgid')\"><img src=\"images/line_branch.gif\" align=\"absmiddle\" border=\"0\"><img id=\"$imgid\" align=\"absmiddle\" border=\"0\" src=\"images/imgFolder0.gif\">$txt</a>";

}


}

function addTreeLast($imgid,$childid,$txt,$def)
{
echo "<li style=\"padding: 0px; margin:0px;\">";
if ($def == 1)
{
echo "<a href=\"javascript:void(0)\" onclick=\"toggle('$childid','$imgid')\"><img src=\"images/line_corner.gif\" align=\"absmiddle\" border=\"0\"><img id=\"$imgid\" align=\"absmiddle\" border=\"0\" src=\"images/imgFolder1.gif\">$txt</a>";
}
else
{
echo "<a href=\"javascript:void(0)\" onclick=\"toggle('$childid','$imgid')\"><img src=\"images/line_corner.gif\" align=\"absmiddle\" border=\"0\"><img id=\"$imgid\" align=\"absmiddle\" border=\"0\" src=\"images/imgFolder0.gif\">$txt</a>";

}


}

function endtree()
{
echo "</ul>";
}

function addNode($id,$level,$def)
{
if ($level == 1)
{
if ($def == 1)
{
echo "<ul id='$id' style='padding:0px;margin:0px 0px 0px 20px;list-style-type:none;display:block'> ";
}
else
{
echo "<ul id='$id' style='padding:0px;margin:0px 0px 0px 20px;list-style-type:none;display:none'> ";

}
}
else
{
if ($def == 1)
{

echo "<ul id='$id' style='padding:0px;margin:0px 0px 0px 0px;list-style-type:none;display:block'> ";

}
else
{
echo "<ul id='$id' style='padding:0px;margin:0px 0px 0px 0px;list-style-type:none;display:none'> ";
}

}

}
function showTree()
{
echo "</div>";

}

}
?>
[/code]


3 - treec.php



[code]
<?php

include "include_config.php";
include "treeviewclass.php";

$db = mysql_connect($mysql_server,$mysql_user,$mysql_password) or die('Could not connect: ' . mysql_error());
mysql_select_db($mysql_database,$db);
$mytree = new treeview("mytree","image","main","Open-OudIT",1);
$mytree->addNode("main",0,1);
$sql = "SELECT * FROM openaudit_menu";
$result = mysql_query($sql, $db);
if ($myrow = mysql_fetch_array($result)){
do {
if ($myrow["menu_class"] == 1) {$mytree = new treeview("mytree","image","ch",$myrow["menu_name"],1);
$mytree->addNode("ch",0,1);
}

if ($myrow["menu_class"] == 2) { $mytree->addTree($myrow["menu_image"],$myrow["menu_name"],$myrow["menu_name"],1);
$mytree->addNode($myrow["menu_name"],1,1);
}

if ($myrow["menu_class"] == 3) {
$mytree->addNode ($myrow["menu_child_from"],1,1);
$mytree->addItem("<a href=".$myrow["menu_link"].">".$myrow["menu_name"]."</a>");
}

if ($myrow["menu_class"] == 4) {$mytree->addItem("<a href=".$myrow["menu_link"].">".$myrow["menu_name"]."</a>"); }

} while ($myrow = mysql_fetch_array($result));
$mytree->endtree();
} else {
echo "ERR" ;
}


?>



[/code]


but i get an error and i cant but it in main view

and if creat a file named test.php and but these code on it ever thing is will work just fine

[code]
<?php

class treeview
{
var $htmlstr;

function treeview($id,$imgid,$childid,$txt,$def)
{

echo "<div id='$id'>";
if ($def == 1)
{
echo "<a href=\"javascript:void(0)\" onclick=\"toggle('$childid','$imgid')\"><img id=\"$imgid\" align=\"absmiddle\" border=\"0\" src=\"images/imgFolder1.gif\">$txt</a>";
}
else
{
echo "<a href=\"javascript:void(0)\" onclick=\"toggle('$childid','$imgid')\"><img id=\"$imgid\" align=\"absmiddle\" border=\"0\" src=\"images/imgFolder0.gif\">$txt</a>";

}


}

function addItem($menutxt)
{
echo "<li style=\"padding: 0px; margin:0px; background:url('images/line_vertical.gif');background-repeat:repeat-y\">";
echo "<img src=\"images/line_branch.gif\" align=\"absmiddle\"><img src=\"images/html.gif\" align=\"absmiddle\">$menutxt";
echo "</li>";


}

function addItemLast($menutxt,$parentflag)
{
echo "<li style=\"padding: 0px; margin:0px;\">";
echo "<img src=\"images/line_corner.gif\" align=\"absmiddle\"><img src=\"images/html.gif\" align=\"absmiddle\">$menutxt";
echo "</li>";
echo "</ul>";
if ($parentflag == 1)
{
echo "</li>";
}

}

function addTree($imgid,$childid,$txt,$def)
{
echo "<li style=\"padding: 0px; margin:0px; background:url('images/line_vertical.gif');background-repeat:repeat-y\">";
if ($def == 1)
{
echo "<a href=\"javascript:void(0)\" onclick=\"toggle('$childid','$imgid')\"><img src=\"images/line_branch.gif\" align=\"absmiddle\" border=\"0\"><img id=\"$imgid\" align=\"absmiddle\" border=\"0\" src=\"images/imgFolder1.gif\">$txt</a>";
}
else
{
echo "<a href=\"javascript:void(0)\" onclick=\"toggle('$childid','$imgid')\"><img src=\"images/line_branch.gif\" align=\"absmiddle\" border=\"0\"><img id=\"$imgid\" align=\"absmiddle\" border=\"0\" src=\"images/imgFolder0.gif\">$txt</a>";

}


}

function addTreeLast($imgid,$childid,$txt,$def)
{
echo "<li style=\"padding: 0px; margin:0px;\">";
if ($def == 1)
{
echo "<a href=\"javascript:void(0)\" onclick=\"toggle('$childid','$imgid')\"><img src=\"images/line_corner.gif\" align=\"absmiddle\" border=\"0\"><img id=\"$imgid\" align=\"absmiddle\" border=\"0\" src=\"images/imgFolder1.gif\">$txt</a>";
}
else
{
echo "<a href=\"javascript:void(0)\" onclick=\"toggle('$childid','$imgid')\"><img src=\"images/line_corner.gif\" align=\"absmiddle\" border=\"0\"><img id=\"$imgid\" align=\"absmiddle\" border=\"0\" src=\"images/imgFolder0.gif\">$txt</a>";

}


}

function endtree()
{
echo "</ul>";
}

function addNode($id,$level,$def)
{
if ($level == 1)
{
if ($def == 1)
{
echo "<ul id='$id' style='padding:0px;margin:0px 0px 0px 20px;list-style-type:none;display:block'> ";
}
else
{
echo "<ul id='$id' style='padding:0px;margin:0px 0px 0px 20px;list-style-type:none;display:none'> ";

}
}
else
{
if ($def == 1)
{

echo "<ul id='$id' style='padding:0px;margin:0px 0px 0px 0px;list-style-type:none;display:block'> ";

}
else
{
echo "<ul id='$id' style='padding:0px;margin:0px 0px 0px 0px;list-style-type:none;display:none'> ";
}

}

}
function showTree()
{
echo "</div>";

}

}

$mytree = new treeview("mytree","easyimage","easyweb","Easy Web Page Design",1);
$mytree->addNode("easyweb",0,1);
$mytree->addItem("<a href='http://www.easywebpagedesign.com'>Home</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/cPSupport'>Contact</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/books.html'>Books</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/resources.html'>Resources</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/forum/'>Forum</a>");
$mytree->addTree("toolsimage","toolsweb","Tools",1);
$mytree->addNode("toolsweb",1,1);
$mytree->addItem("<a href='http://www.easywebpagedesign.com/template_creator.html'>Template Creator</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/soccersites/index.html'>SoccerSite</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/ezhpad.html'>EZHPad</a>");
$mytree->addItemLast("<a href='http://www.easywebpagedesign.com/jsmenumaker.html'>JS Menu Maker</a>",1);
$mytree->addTree("scriptimage","scriptweb","Scripts",1);
$mytree->addNode("scriptweb",1,1);
$mytree->addItem("<a href='http://www.easywebpagedesign.com/ezpzmenu.html'>EZPZ Menu</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/ezpzedit.html'>EZPZ DHTML Editor</a>");
$mytree->addItemLast("<a href='http://www.easywebpagedesign.com/ezpzcolor.html'>EZPZ Color Picker</a>",1);
$mytree->addTree("tutimage","tutweb","Tutorials",1);
$mytree->addNode("tutweb",1,1);
$mytree->addItem("<a href='http://www.easywebpagedesign.com/creating_websites.html'>Creating Websites</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/how_the_web_works.html'>How The Web Works</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_editor_guide.html'>HTML Editor Guide</a>");
$mytree->addTree("htmlimage","htmlweb","HTML",1);
$mytree->addNode("htmlweb",1,1);
$mytree->addItem("<a href='http://www.easywebpagedesign.com/first_web_page.html'>First Web Page</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_colors.html'>HTML Colors</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_background.html'>HTML Background</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_text.html'>Formatting Text</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_headings.html'>Headings</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_fonts.html'>Fonts</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_layout.html'>Layout</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_hr.html'>Horizontal Rules</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_lists.html'>Lists</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_special.html'>Special</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_images.html'>Images</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_tables.html'>Tables</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_table_code.html'>More Tables</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_links.html'>Links</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_image_maps.html'>Image Maps</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_frames.html'>Frames</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_forms.html'>Forms</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/email_html.html'>Sending Email</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/goody_html.html'>HTML Goodies</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/html_tab.html'>Making a tab</a>");
$mytree->addItemLast("<a href='http://www.easywebpagedesign.com/html_marquee.html'>Marquees</a>",1);
$mytree->addTree("cssimage","cssweb","CSS",1);
$mytree->addNode("cssweb",1,1);
$mytree->addItem("<a href='http://www.easywebpagedesign.com/css_definition.html'>Definition</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/css_properties.html'>Properties</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/css_pseudo_classes.html'>Pseudo Classes</a>");
$mytree->addItemLast("<a href='http://www.easywebpagedesign.com/css_media.html'>Media Types</a>",1);
$mytree->addTreeLast("jsimage","jsweb","javascript",1);
$mytree->addNode("jsweb",1,1);
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_definition.html'>Definition</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_variables.html'>Variables</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_arithmetic.html'>Arithmetic</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_conditions.html'>Conditions</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_functions.html'>Functions</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_timers.html'>Timers/Events</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_dom.html'>DOM</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_array.html'>Arrays</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_image.html'>Images</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_link.html'>Links</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_history.html'>History</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_windows.html'>Windows</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_string.html'>Strings</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_dates.html'>Dates</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_maths.html'>Maths</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_forms.html'>Forms</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_frames.html'>Frames</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_navigation.html'>Navigation</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_comments.html'>Comments</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_listview.html'>Sorting Table Data</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_window_reload.html'>Reloading Windows</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_void0.html'>Links and functions</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_update_meta.html'>Update Meta Tags</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/box_dropdown_java_script_script.html'>Jump menus</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/java_script_window_open.html'>Opening windows</a>");
$mytree->addItemLast("<a href='http://www.easywebpagedesign.com/java_script_window_close.html'>Closing windows</a>",1);
$mytree->endtree();

$mytree->addTreeLast("artimage","artweb","articles",1);
$mytree->addNode("artweb",1,1);
$mytree->addTree("artdimage","desweb","Web Design",1);
$mytree->addNode("desweb",1,1);
$mytree->addItem("<a href='http://www.easywebpagedesign.com/create_google_sitemap.html'>Google Sitemap</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/javascript_webring.html'>Javascript Webring</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/news_headlines.html'>Add news headlines</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/earn_money.html'>Earn Money</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/useful_scripts.html'>Useful Scripts</a>");
$mytree->addItemLast("<a href='http://www.easywebpagedesign.com/html_site_myspace.html'>Myspace Guide</a>",1);
$mytree->addTreeLast("artmimage","masweb","Web Master",1);
$mytree->addNode("masweb",1,1);
$mytree->addItem("<a href='http://www.easywebpagedesign.com/google_pagerank.html'>Google Pagerank</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/customised_tshirts.html'>Customised tshirts</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/affiliate_programs.html'>Affiliate Programs</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/rentabuyer.html'>Low Cost Design</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/get_more_hits.html'>SEO</a>");
$mytree->addItem("<a href='http://www.easywebpagedesign.com/beware_seo.html'>Beware SEO</a>");
$mytree->addItemLast("<a href='http://www.easywebpagedesign.com/html_inbanner.html'>Target Keywords</a>",1);
$mytree->showTree();

?>
[/code]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 02, 2007 11:11 am 
Offline
Newbie
User avatar

Joined: Mon Apr 30, 2007 1:38 pm
Posts: 6
Location: Egypt
i will work now on the log-in and access level
And if some one has a break throw in the menu code please till me


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 02, 2007 11:13 am 
Offline
Newbie
User avatar

Joined: Mon Apr 30, 2007 1:38 pm
Posts: 6
Location: Egypt
[quote="mikeyrb"]So are you thinking of creating a unique barcode for each system and attach that to a UUID for external labelling purposes? Not a bad idea.


thank you mikeryb i have fineshed the barcode genertor code but i nead to figer how can i get a uniqe code as a UUID

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 02, 2007 2:10 pm 
I think I should point out that the menu is dynamically generated from php files. I'm not so sure what the point of putting it in the database is?

I'm confused on the barcode bit. The UUID of a system will generally be unique as that's the definition of UUID. Granted if you use system name or mac address, you may occasionally get a duplicate/incorrect entry. However, if you want to create a barcode, you can simply use auto incrementing values in the database, and it will be unique...


Top
  
Reply with quote  
 Post subject:
PostPosted: Wed May 02, 2007 9:11 pm 
Offline
Newbie
User avatar

Joined: Mon Apr 30, 2007 1:38 pm
Posts: 6
Location: Egypt
[quote="mikeyrb"]I think I should point out that the menu is dynamically generated from php files. I'm not so sure what the point of putting it in the database is?


by adding links to database we can give the user an option to modefy or adding links to meny as thay like .
in my case i have add some link for EX .
a vbs scrept audit a domain and another one not and an exe installtion file but a the scrept in startup and so on
and by the way the menu not working will with IE 7 and not all users using Firefox

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat May 12, 2007 12:05 am 
Offline
Helper

Joined: Sat Sep 17, 2005 7:15 am
Posts: 71
RE: the menu problem in IE7, I had luck with this post:

http://www.open-audit.org/phpbb2/viewtopic.php?t=1258

_________________
Server Info:
OS : Windows Server 2003
Auditing: ~300 machines
LDAP: Windows Server 2003 Active Directory


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group