Usage: <?php require_once('pjlink.class.php'); $pjlink = new PJLink(); if (false === $pjlink->powerOn("192.168.0.1")) { echo $pjlink->getError(); } elseif (false === $pjlink->setInput(11, "192.168.0.1")) { echo $pjlink->getError(); } ?>
Usage: <?php require_once('yubicloud.class.php'); $yubicloud = new Yubicloud("my_client_id", "my_secret_key"); $result = $yubicloud->checkOnYubiCloud($otp_to_check); ?> Possible returned value is one of the following: OK The OTP is valid. BAD_OTP The OTP is invalid format. REPLAYED_OTP The OTP has already been seen by the service. BAD_SIGNATURE The HMAC signature verification failed. MISSING_PARAMETER The request lacks a parameter. NO_SUCH_CLIENT The request id does not exist. OPERATION_NOT_ALLOWED The request id is not allowed to verify OTPs. BACKEND_ERROR Unexpected error in Yubico servers. Please contact them if you see this error. NOT_ENOUGH_ANSWERS Server could not get requested number of syncs during before timeout. REPLAYED_REQUEST Server has seen the OTP/Nonce combination before. BAD_NONCE Answer Nonce is different from the request Nonce. CONNECTION_ERROR Impossible to make a connection with the YubiCloud servers. OTP_IS_DIFFERENT Answer OTP is different from request OTP. OUT_OF_TIME_WINDOW Timestamp difference with the Yubico servers is bigger than yubicloud_max_time_window. SERVER_TIMEOUT Timeout while waiting an answer from the server.
Usage: <?php require_once('yubikey.class.php'); $yubikey = new Yubikey(); $result = $yubikey->checkYubicoOtp($yubico_modhex_encrypted_part, $secret, $last_valid_position); ?> Possible returned value is one of the following: OK The OTP is valid. BAD_OTP The OTP is invalid format. REPLAYED_OTP The OTP has already been used.
Usage: <?php require_once('mobile.dispatcher.class.php'); $mobile_dispatcher = new MobileDispatcher(); $mobile_dispatcher->addTopic( 'otpauth', 'TOTP/HOTP code generator' ); $mobile_dispatcher->addFamilyApp( 'otpauth', 'Android', 'market://details?id=com.google.android.apps.authenticator2', 'Google Authenticator' ); $mobile_dispatcher->dispatchApp('otpauth'); ?>
Usage: <?php require_once('tokengrid.class.php'); $token_grid = new TokenGrid(10, 10, 4, "MySalt"); echo $token_grid->GetXhtmlGrid("SpecificUserId"); ?>
Usage: <?php require_once('radius.class.php'); $radius = new Radius($ip_radius_server, $shared_secret); $result = $radius->Access_Request($username, $password); ?>
Usage: <?php require_once('syslog.php'); $syslog = new Syslog(); $syslog->Send('192.168.0.1', 'My first PHP syslog message'); ?>