PluginProbe
Page Builder: Pagelayer – Drag and Drop website builder / 0.9.2
Page Builder: Pagelayer – Drag and Drop website builder v0.9.2
2.2.1 2.2.0 2.1.9 2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 trunk 0.9.0 0.9.1 0.9.2 0.9.3 0.9.4 0.9.5 0.9.6 0.9.7 0.9.8 0.9.9 1.0.0 1.0.2 1.0.3 1.0.4 1.0.5 All 129 releases
pagelayer / js / givejs.php

givejs.php in Page Builder: Pagelayer – Drag and Drop website builder 0.9.2, at js/givejs.php

107 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 //////////////////////////////////////////////////////////////
4 //===========================================================
5 // givejs.php
6 //===========================================================
7 // PAGELAYER
8 // Inspired by the DESIRE to be the BEST OF ALL
9 // ----------------------------------------------------------
10 // Started by: Pulkit Gupta
11 // Date: 23rd Jan 2017
12 // Time: 23:00 hrs
13 // Site: http://pagelayer.com/wordpress (PAGELAYER)
14 // ----------------------------------------------------------
15 // Please Read the Terms of use at http://pagelayer.com/tos
16 // ----------------------------------------------------------
17 //===========================================================
18 // (c)Pagelayer Team
19 //===========================================================
20 //////////////////////////////////////////////////////////////
21
22
23 // Read the file
24 $data = '';
25 $files = array(
26 // Admin JS
27 'pagelayer-editor.js',
28 'widgets.js',
29 'premium.js',
30 'properties.js',
31 'base64.js',
32 'slimscroll.js',
33 'vanilla-picker.min.js',
34 'trumbowyg.min.js',
35 'trumbowyg.js',
36 'trumbowyg-pagelayer.js',
37 'pen.js',
38 // Enduser JS
39 'imagesloaded.min.js',
40 'nivo-lightbox.min.js',
41 'slippry.min.js',
42 'pagelayer-frontend.js',
43 'wow.min.js',
44 'jquery-numerator.js',
45 'simpleParallax.min.js',
46 );
47
48 // What files to give
49 $give = @$_REQUEST['give'];
50
51 if(!empty($give)){
52
53 $give = explode(',', $give);
54
55 // Check all files are in the supported list
56 foreach($give as $file){
57 if(in_array($file, $files)){
58 $final[md5($file)] = $file;
59 }
60 }
61
62 }
63
64
65 // Give all
66 if(empty($final)){
67 $final = $files;
68 }
69
70 foreach($final as $k => $v){
71 //echo $k.'<br>';
72 $data .= file_get_contents($v)."\n\n";
73 }
74
75 // We are zipping if possible
76 if(function_exists('ob_gzhandler')){
77 ob_start('ob_gzhandler');
78 }
79
80 // Type javascript
81 header("Content-type: text/javascript; charset: UTF-8");
82
83 // Set a zero Mtime
84 $filetime = filemtime('pagelayer-editor.js');
85
86 // Cache Control
87 header("Cache-Control: must-revalidate");
88
89 // Checking if the client is validating his cache and if it is current.
90 if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && (@strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $filetime)) {
91
92 // Client's cache IS current, so we just respond '304 Not Modified'.
93 header('Last-Modified: '.gmdate('D, d M Y H:i:s', $filetime).' GMT', true, 304);
94
95 return;
96
97 }else{
98
99 // Image not cached or cache outdated, we respond '200 OK' and output the image.
100 header('Last-Modified: '.gmdate('D, d M Y H:i:s', $filetime).' GMT', true, 200);
101
102 }
103
104 echo $data;
105
106
107