예제 #1
0
 /**
  * Singleton Instance
  * @return object
  */
 public static function get_instance()
 {
     // If the single instance hasn't been set, set it now.
     if (NULL == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
예제 #2
0
function po_check_update()
{
    //  TODO: Using GitHub API
    //	$output = PO_WHMCSe::output_update( 'https://api.github.com/repos/tripflex/whmcs-pushover/contents/release', '1.0.1', 'Pushover' );
    $output = PO_WHMCSe::output_update('https://github.com/tripflex/whmcs-pushover/raw/master/release', '1.0.1', 'Pushover');
    return $output;
}