コード例 #1
0
                         }
                         break;
                     case 403:
                         // Forbidden
                         $forbidden = TRUE;
                         break;
                     case 404:
                         // Not Found
                         break;
                 }
             }
             @unlink($tmp_file);
         }
     } else {
         // Disabled
         SharingCart_Repository::setConfig($USER, $config);
         $succeeded = TRUE;
     }
 }
 if (empty($config) || optional_param('add')) {
     $info = new stdClass();
     $info->enabled = FALSE;
     $info->url = '';
     $info->instance = '';
     $info->username = '';
     $info->password = '';
     $info->sitename = '';
     if (empty($config)) {
         $config = array();
         $config[1] = $info;
     } else {