<?php
run_query("CREATE TABLE IF NOT EXISTS `" . $config["table_prefix"] . "sync` (`id` int( 8 ) NOT NULL AUTO_INCREMENT ,`sync_name` varchar( 255 ) NOT NULL , `upload_dir` varchar( 255 ) NOT NULL ,`download_dir` varchar( 255 ) NOT NULL ,`sync_period` int( 4 ) NOT NULL ,`sync_status` int( 1 ) NOT NULL ,`enabled` int( 1 ) NOT NULL ,`ftp_mode` int( 1 ) NOT NULL ,`ftp_server` varchar( 255 ) NOT NULL ,`ftp_auth` varchar( 255 ) NOT NULL ,PRIMARY KEY ( `id` ) ) ENGINE = MYISAM DEFAULT CHARSET = utf8;");
run_query("CREATE TABLE IF NOT EXISTS `" . $config["table_prefix"] . "sync_fields` (`id` int( 8 ) NOT NULL AUTO_INCREMENT ,`sync_id` int( 8 ) NOT NULL ,`field_id` int( 8 ) NOT NULL ,`enabled` int( 1 ) NOT NULL ,PRIMARY KEY ( `id` ) ) ENGINE = MYISAM DEFAULT CHARSET = utf8;");
?>