Ejemplo n.º 1
0
 /**
  * @return \Nano\Controller\Redirect
  */
 public function back()
 {
     if (isset($_SERVER['HTTP_REFERER']) && isset($_SERVER['HTTP_HOST']) && strStr($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
         return $this->to($_SERVER['HTTP_REFERER']);
     }
     return $this->home();
 }
Ejemplo n.º 2
0
        continue;
    }
    $tmp = strStr($v, $phone_model . ' linux ');
    if (!empty($tmp)) {
        $linux = $tmp;
        $linux = subStr($linux, 14, -1);
        continue;
    }
    $tmp = strStr($v, $phone_model . ' jffs2 v');
    if (!empty($tmp)) {
        $rootfs_jffs2 = $tmp;
        $rootfs_jffs2 = subStr($rootfs_jffs2, 15);
        $old_rootfs = $rootfs_jffs2;
        continue;
    }
    $tmp = strStr($v, 'ramdisk');
    if (!empty($tmp)) {
        $rootfs_ramdisk = $tmp;
        $old_rootfs = $rootfs_ramdisk;
        continue;
    }
}
if (!preg_match('/^[1-9]/', $app)) {
    gs_log(GS_LOG_DEBUG, "Could not recognize app version in UA \"{$ua}\"");
    die;
}
gs_log(GS_LOG_DEBUG, "Snom {$mac} ({$phone_type}, user {$user}) has app \"{$app}\"");
# see update guides at
# http://wiki.snom.com/Snom360/Firmware
# http://wiki.snom.com/Snom370/Firmware
# http://wiki.snom.com/Firmware/V7/Update_Description