diff options
| author | Harry (Open ERP) <hmo@tinyerp.com> | 2010-02-19 10:51:36 +0530 |
|---|---|---|
| committer | Harry (Open ERP) <hmo@tinyerp.com> | 2010-02-19 10:51:36 +0530 |
| commit | d327a9a0e3ab407c69aad902fa967c92c4cc4eeb (patch) | |
| tree | 1beadb247946d05900beec3ec2eaaf3be05b11f9 /addons/base_module_publish/scripts/mtree_upload.php | |
| parent | 2fddca675693162fbd4a80ddc10b83953716514d (diff) | |
[RENAME+REMOVE] remove: base_module_merge, base_module_publish, crm_vertical, report_analytic_planning. Rename: misc_tools=> profile_tools, profile_association => association, profile_service=>service.
bzr revid: hmo@tinyerp.com-20100219052136-byjuy7h6eszo7g66
Diffstat (limited to 'addons/base_module_publish/scripts/mtree_upload.php')
| -rw-r--r-- | addons/base_module_publish/scripts/mtree_upload.php | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/addons/base_module_publish/scripts/mtree_upload.php b/addons/base_module_publish/scripts/mtree_upload.php deleted file mode 100644 index cb3976e87e5..00000000000 --- a/addons/base_module_publish/scripts/mtree_upload.php +++ /dev/null @@ -1,38 +0,0 @@ -<? - function debug($str) - { - $fp = fopen('/tmp/debug_tinyerp.txt', 'a'); - fwrite($fp, $str."\n"); - fclose($fp); - } - - $port=mysql_connect(":/var/run/mysqld/mysqld.sock","tiny","XXXX"); - // Verify user and password - $query = mysql_db_query("tiny_terp", "select id,password from jos_users where username='".addslashes($_POST['login'])."' and password=md5('".addslashes($_POST['password'])."')"); - $user = mysql_fetch_object($query); - if (!$user) { - echo "1\n"; - return; - } - - // Verify module owner - $query = mysql_db_query("tiny_terp", "select user_id from jos_mt_links where cust_7='".addslashes($_POST['module_name'])."'"); - $row = mysql_fetch_object($query); - - if ((!$row) or $row[0]==$user[0]) { - // save .zip module - $dest = '/home/tiny/www/tinyerp.com/download/modules/'.$_FILES['module']['name']; - if (!file_exists($dest)) { - if(move_uploaded_file($_FILES['module']['tmp_name'], $dest)) { - echo "0\n"; - return; - } else{ - echo "3\n"; - return; - } - } else { - echo "2\n"; - return; - } - } -?> |
