mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
2008-09-01 Esteban Sanchez <estebans@artica.es>
* extensions/update_manager.php, extensions/update_manager/sql/update_manager.sql: Fixed update server path typo error. * extensions/update_manager/load_updatemanager.php: Force values to be integer. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1062 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
4e13e77fa4
commit
0e8a649e7c
@ -1,3 +1,12 @@
|
|||||||
|
2008-09-01 Esteban Sanchez <estebans@artica.es>
|
||||||
|
|
||||||
|
* extensions/update_manager.php,
|
||||||
|
extensions/update_manager/sql/update_manager.sql: Fixed update server
|
||||||
|
path typo error.
|
||||||
|
|
||||||
|
* extensions/update_manager/load_updatemanager.php: Force values to be
|
||||||
|
integer.
|
||||||
|
|
||||||
2008-09-01 Raul Mateos <raulofpandora@gmail.com>
|
2008-09-01 Raul Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
* operation/snmp/snmp_console/snmp_view.php: Added style to buttons.
|
* operation/snmp/snmp_console/snmp_view.php: Added style to buttons.
|
||||||
|
@ -88,7 +88,7 @@ function pandora_update_manager_login () {
|
|||||||
$settings = um_db_load_settings ();
|
$settings = um_db_load_settings ();
|
||||||
|
|
||||||
um_db_update_setting ('update_server_host', 'www.artica.es');
|
um_db_update_setting ('update_server_host', 'www.artica.es');
|
||||||
um_db_update_setting ('update_server_path', 'pandoraupdate/server.php');
|
um_db_update_setting ('update_server_path', '/pandoraupdate/server.php');
|
||||||
|
|
||||||
$user_key = get_user_key ();
|
$user_key = get_user_key ();
|
||||||
|
|
||||||
|
@ -17,10 +17,10 @@ function get_user_key () {
|
|||||||
/* We only want to know this for statistics records.
|
/* We only want to know this for statistics records.
|
||||||
Feel free to disable if you want. We don't want to hide anything.
|
Feel free to disable if you want. We don't want to hide anything.
|
||||||
*/
|
*/
|
||||||
$n = get_db_value ('COUNT(`id_agente`)', 'tagente', 'disabled', 0);
|
$n = (int) get_db_value ('COUNT(`id_agente`)', 'tagente', 'disabled', 0);
|
||||||
$m = get_db_value ('COUNT(`id_agente_modulo`)', 'tagente_modulo',
|
$m = (int) get_db_value ('COUNT(`id_agente_modulo`)', 'tagente_modulo',
|
||||||
'disabled', 0);
|
'disabled', 0);
|
||||||
$user_key = array ('A' => $n, 'M' => $m);
|
$user_key = array ('A' => )$n, 'M' => $m);
|
||||||
|
|
||||||
return json_encode ($user_key);
|
return json_encode ($user_key);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
CREATE TABLE `tupdate_settings` ( `key` varchar(255) default '', `value` varchar(255) default '', PRIMARY KEY (`key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
CREATE TABLE `tupdate_settings` ( `key` varchar(255) default '', `value` varchar(255) default '', PRIMARY KEY (`key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
INSERT INTO `tupdate_settings` VALUES ('current_update', '0'), ('customer_key', 'PANDORA-FREE'), ('keygen_path', ''), ('update_server_host', 'www.artica.es'), ('update_server_port', '80'), ('update_server_path', 'pandoraupdate/server.php'), ('updating_binary_path', 'Path where the updated binary files will be stored'), ('updating_code_path', 'Path where the updated code is stored'), ('dbname', ''), ('dbhost', ''), ('dbpass', ''), ('dbuser', '');
|
INSERT INTO `tupdate_settings` VALUES ('current_update', '0'), ('customer_key', 'PANDORA-FREE'), ('keygen_path', ''), ('update_server_host', 'www.artica.es'), ('update_server_port', '80'), ('update_server_path', '/pandoraupdate/server.php'), ('updating_binary_path', 'Path where the updated binary files will be stored'), ('updating_code_path', 'Path where the updated code is stored'), ('dbname', ''), ('dbhost', ''), ('dbpass', ''), ('dbuser', '');
|
||||||
CREATE TABLE `tupdate_package` ( id int(11) unsigned NOT NULL auto_increment, timestamp datetime NOT NULL, description mediumtext NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
CREATE TABLE `tupdate_package` ( id int(11) unsigned NOT NULL auto_increment, timestamp datetime NOT NULL, description mediumtext NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
CREATE TABLE `tupdate` ( id int(11) unsigned NOT NULL auto_increment, type enum('code', 'db_data', 'db_schema', 'binary'), id_update_package int(11) unsigned NOT NULL default 0, filename varchar(250) default '', checksum varchar(250) default '', previous_checksum varchar(250) default '', svn_version int(4) unsigned NOT NULL default 0, data LONGTEXT default '', data_rollback LONGTEXT default '', description TEXT default '', db_table_name varchar(140) default '', db_field_name varchar(140) default '', db_field_value varchar(1024) default '', PRIMARY KEY (`id`), FOREIGN KEY (`id_update_package`) REFERENCES tupdate_package(`id`) ON UPDATE CASCADE ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
CREATE TABLE `tupdate` ( id int(11) unsigned NOT NULL auto_increment, type enum('code', 'db_data', 'db_schema', 'binary'), id_update_package int(11) unsigned NOT NULL default 0, filename varchar(250) default '', checksum varchar(250) default '', previous_checksum varchar(250) default '', svn_version int(4) unsigned NOT NULL default 0, data LONGTEXT default '', data_rollback LONGTEXT default '', description TEXT default '', db_table_name varchar(140) default '', db_field_name varchar(140) default '', db_field_value varchar(1024) default '', PRIMARY KEY (`id`), FOREIGN KEY (`id_update_package`) REFERENCES tupdate_package(`id`) ON UPDATE CASCADE ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
CREATE TABLE `tupdate_journal` ( id int(11) unsigned NOT NULL auto_increment, id_update int(11) unsigned NOT NULL default 0, PRIMARY KEY (`id`), FOREIGN KEY (`id_update`) REFERENCES tupdate(`id`) ON UPDATE CASCADE ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
CREATE TABLE `tupdate_journal` ( id int(11) unsigned NOT NULL auto_increment, id_update int(11) unsigned NOT NULL default 0, PRIMARY KEY (`id`), FOREIGN KEY (`id_update`) REFERENCES tupdate(`id`) ON UPDATE CASCADE ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user