Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1049 → Rev 1050

/trunk/plugins/viathinksoft/adminPages/400_oidinfo_export/OIDplusPageAdminOIDInfoExport.class.php
17,7 → 17,7
* limitations under the License.
*/
 
if (!defined('INSIDE_OIDPLUS')) die();
namespace ViaThinkSoft\OIDplus;
 
class OIDplusPageAdminOIDInfoExport extends OIDplusPagePluginAdmin {
 
660,7 → 660,7
$out_type = null;
$out_content = '';
 
// This file contains class OIDInfoAPI.
// This file contains class \OIDInfoAPI.
// We cannot include this in init(), because the init
// of the registration plugin (OIDplusPageAdminRegistration) uses
// OIDplusPageAdminOIDInfoExport::outputXML() before
668,7 → 668,7
// because OIDplusPageAdminRegistration::init() comes first sometimes.
require_once __DIR__ . '/oidinfo_api.inc.php';
 
$oa = new OIDInfoAPI();
$oa = new \OIDInfoAPI();
if ($only_non_existing) {
if (!function_exists('socket_create')) {
throw new OIDplusException(_L('You must install the PHP "sockets" in order to check for non-existing OIDs.'));
686,7 → 686,7
 
$params['allow_html'] = true;
$params['allow_illegal_email'] = true; // It should be enabled, because the creator could have used some kind of human-readable anti-spam technique
$params['soft_correct_behavior'] = OIDInfoAPI::SOFT_CORRECT_BEHAVIOR_NONE;
$params['soft_correct_behavior'] = \OIDInfoAPI::SOFT_CORRECT_BEHAVIOR_NONE;
$params['do_online_check'] = false; // Flag to disable this online check, because it generates a lot of traffic and runtime.
$params['do_illegality_check'] = true;
$params['do_simpleping_check'] = $only_non_existing;
/trunk/plugins/viathinksoft/adminPages/400_oidinfo_export/manifest.xml
4,7 → 4,7
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.2.1 https://oidplus.viathinksoft.com/oidplus/plugins/manifest_plugin_page.xsd">
 
<type>OIDplusPagePluginAdmin</type>
<type>ViaThinkSoft\OIDplus\OIDplusPagePluginAdmin</type>
 
<info>
<name>OID-Info.com import/export</name>
16,7 → 16,7
</info>
 
<php>
<mainclass>OIDplusPageAdminOIDInfoExport</mainclass>
<mainclass>ViaThinkSoft\OIDplus\OIDplusPageAdminOIDInfoExport</mainclass>
</php>
 
<css>
/trunk/plugins/viathinksoft/adminPages/400_oidinfo_export/oidinfo_export.php
17,6 → 17,10
* limitations under the License.
*/
 
use ViaThinkSoft\OIDplus\OIDplus;
use ViaThinkSoft\OIDplus\OIDplusException;
use ViaThinkSoft\OIDplus\OIDplusPageAdminOIDInfoExport;
 
require_once __DIR__ . '/../../../../includes/oidplus.inc.php';
 
header('Content-Type:text/html; charset=UTF-8');
23,7 → 27,7
 
OIDplus::init(true);
 
if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_OIDplusPageAdminOIDInfoExport', false)) {
if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_ViaThinkSoft\OIDplus\OIDplusPageAdminOIDInfoExport', false)) {
throw new OIDplusException(_L('This plugin was disabled by the system administrator!'));
}