aboutsummaryrefslogtreecommitdiffstats
path: root/tools/processor.php
diff options
context:
space:
mode:
Diffstat (limited to 'tools/processor.php')
-rw-r--r--tools/processor.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/processor.php b/tools/processor.php
index 79470ee..5eb03e1 100644
--- a/tools/processor.php
+++ b/tools/processor.php
@@ -117,3 +117,15 @@ if ( $url_standar === FALSE ) {
$formatdrm = NULL;
}
///// End Beaking DRM!!!
+
+/* ---- ---- Generated baselink and embed ---- ---- */
+if ( isset( $_SERVER["HTTPS"] ) && $_SERVER["HTTPS"] == "on" ) {
+ $pro = 'https';
+} else {
+ $pro = 'http';
+}
+
+$subject = $pro."://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'];
+
+// Local URL
+$local_url = preg_replace( '/index.php/', '', $subject );