[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp82
/
htdocs
/
jurnalpscp
/
plugins
/
generic
/
orcidProfile
/
classes
/
[
Home
]
File: OrcidValidator.inc.php
<?php class OrcidValidator { /** * OrcidValidator constructor. * @param $plugin */ function __construct(&$plugin) { $this->plugin =& $plugin; } /** * @param $str * @return bool */ public function validateClientId($str) { $valid = false; if (preg_match('/^APP-[\da-zA-Z]{16}|(\d{4}-){3,}\d{3}[\dX]/', $str) == 1) { $valid = true; } return $valid; } /** * @param $str * @return bool */ public function validateClientSecret($str) { $valid = false; if (preg_match('/^(\d|-|[a-f]){36,64}/', $str) == 1) { $valid = true; } return $valid; } }