Example #1
0
 public static function setDebug($log, $tab = null)
 {
     if (intval($tab) > 0) {
         $tab = Player_Utils::getSeparator(self::getTab(), $tab);
     }
     $log = $tab . $log;
     if (self::getLog() == null) {
         self::setLog(Player_Utils::getSeparator('=', 70));
         self::setLog('DOWNLOAD LOG - ' . (Player_Utils::getInterface() ? 'PROMPT' : 'BROWSER'));
         self::setLog(date('d') . '/' . Player_Utils::getMonth(date('m'), array('UPP', 'CUT')) . '/' . date('Y') . ' - ' . date('h:i:s'));
         self::setLog(Player_Utils::getSeparator('=', 70));
         if (self::getDebug()) {
             echo self::getLog() . self::getBreakline();
         }
     }
     if (self::getDebug()) {
         echo $log . self::getBreakline();
     }
     self::setLog($log);
 }