Snort.org home  
Got Source? About Snort About Sourcefire Snort FAQ
Sourcefire Network Security - the creators of Snort

Snort Forums Archive

Archive Home » Windows » Click on Create ACID_AG button on acid and nothing happen

Please note that the categories listed below represent an archived version of our forums pages. To view the current version and be able to post and reply to threads, please register and login here to go to the full forums pages.

[ Notice: Full Version of This Topic ]

Click on Create ACID_AG button on acid and nothing happen


Posted by syyau on December 22, 2006 08:21:35

Need someone to help me with this

From the ACID DB setup page

http://localhost/acid/acid_db_setup.php

I click on Create ACID_AG button to create the acid_ag table to my snort database. Nothing happened.

Windows 2003 Server
Windows 2003 Enterprise Server
IIS 6.0
PHP 5.2.0
ADODB 4.93
MySQL 5.0.27
WinPCap 3.1
Snort 2.6.1
ACID 0.96b23
JPGraph 2.1.4

I verified all the following are correct
1. ADODB database connection to snort database is good
2. root user has all the permission to snort database
3. MySQL my.ini is sql_mode=ANSI

Although, ACID shall be able to create acid_ag table automatically when click on the Create ACID_AG button, I am not getting any response at all. If I need to create acid_ag table manually, please send me the create_acid_ag_mysql.sql script.

Jack

Posted by syyau on January 05, 2007 06:29:16

Never mind, I figured it out.
There is a coding error on acid_db_setup.php

Posted by manishbaroda on January 24, 2007 04:44:07

How did you do that ??

Posted by syyau on January 24, 2007 06:31:48

This is what I did to make it work
Search for $submit = ImportHTTPVar("submit");
in acid_db_setup.php file
then commented this out with // (see below)

//$submit = ImportHTTPVar("submit");

Posted by zl5897 on November 14, 2007 01:56:06

I edit the ImportHTTPVar() function

---------------------------------------------
function ImportHTTPVar($var_name, $valid_data = "", $exception = "")
{
GLOBAL $HTTP_POST_VARS, $HTTP_GET_VARS, $debug_mode;

if(PHP_VERSION >= '4.1.0') {
$HTTP_GET_VARS = &$_GET;
$HTTP_POST_VARS = &$_POST;
}
$tmp = "";

if ( isset($HTTP_POST_VARS[$var_name]) )
{
//if ( $debug_mode > 0 ) echo "importing POST var '$var_name'
";
$tmp = $HTTP_POST_VARS[$var_name];
}
else if ( isset($HTTP_GET_VARS[$var_name]) )
{
//if ( $debug_mode > 0 ) echo "importing GET var '$var_name'
";
$tmp = $HTTP_GET_VARS[$var_name];
}
else
$tmp = "";

return CleanVariable($tmp, $valid_data, $exception);
}
---------------------------------------------

I think this problem cause by PHP version with iis