浏览代码

Removed old code

Laurent Destailleur 5 年之前
父节点
当前提交
bee315448c

+ 1 - 1
.settings/org.eclipse.php.core.prefs

@@ -1,2 +1,2 @@
 eclipse.preferences.version=1
-include_path=2;/dolibarr
+include_path=2;/dolibarrnew

+ 1 - 8
htdocs/sellyoursaas/backoffice/instance_users.php

@@ -546,14 +546,7 @@ function print_user_table($newdb)
 				$obj = $newdb->fetch_object($resql);
 
 				global $object;
-				if (! empty($object->ref_customer))
-				{
-					$url='https://'.$object->ref_customer.'?username='.$obj->login.'&password='.$obj->pass;
-				}
-				else
-				{
-					$url='https://'.$object->instance.'.on.dolicloud.com?username='.$obj->login.'&password='.$obj->pass;
-				}
+				$url='https://'.$object->ref_customer.'?username='.$obj->login.'&password='.$obj->pass;
 				print '<tr class="oddeven">';
 				print '<td>';
 				print ($i+1);

+ 0 - 4
htdocs/sellyoursaas/backoffice/lib/refresh.lib.php

@@ -33,10 +33,6 @@ function dolicloud_files_refresh($conf, $db, &$object, &$errors, $printoutput=0,
 	if (empty($database_db)) $database_db = $object->array_options['options_database_db'];
 
 	$server=$instance;
-	if (! preg_match('/on\.dolicloud\.com/', $instance) && ! preg_match('/with\.dolicloud\.com/', $instance) && ! preg_match('/home\.lan/', $instance))
-	{
-		$server=$instance.'.on.dolicloud.com';
-	}
 
 	// SFTP refresh
 	if (function_exists("ssh2_connect"))