Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
0) $_http_host = $_SERVER['HTTP_HOST']; else return false; $mycloudnas_domains = Array( 'mycloudnas.com', 'myqnapnas.com', 'qcloudnas.com', 'myqnapcloud.com' ); foreach ($mycloudnas_domains as $d) { if (strncasecmp(stristr($_http_host,$d),$d,strlen($d))==0) { return true; } } return false; } if(isMyCloudNAS() == true){ $extPort = exec('/sbin/getcfg System ExtPort -d 0'); if(intval($extPort)>0) $webAccessPort = $extPort; else $webAccessPort = exec('/sbin/getcfg System "Web Access Port" -d 8080'); } else $webAccessPort = exec('/sbin/getcfg System "Web Access Port" -d 8080'); $webAccessUrl = 'http://'.$_SERVER['SERVER_NAME'].':'.$webAccessPort.'/'; ?>
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)