����C�
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /var/www/html/admin/productimages/clean.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/admin/productimages/clean.php:1) in /var/www/html/admin/productimages/clean.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/admin/productimages/clean.php:1) in /var/www/html/admin/productimages/clean.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/admin/productimages/clean.php:1) in /var/www/html/admin/productimages/clean.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/admin/productimages/clean.php:1) in /var/www/html/admin/productimages/clean.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/admin/productimages/clean.php:1) in /var/www/html/admin/productimages/clean.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/admin/productimages/clean.php:1) in /var/www/html/admin/productimages/clean.php on line 4
form-validation.js 0000664 00000023004 15063230114 0010171 0 ustar 00 var FormValidator = function () {
// function to initiate Validation Sample 1
var runValidator1 = function () {
var form1 = $('#form');
var errorHandler1 = $('.errorHandler', form1);
var successHandler1 = $('.successHandler', form1);
$.validator.addMethod("FullDate", function () {
//if all values are selected
if ($("#dd").val() != "" && $("#mm").val() != "" && $("#yyyy").val() != "") {
return true;
} else {
return false;
}
}, 'Please select a day, month, and year');
$('#form').validate({
errorElement: "span", // contain the error msg in a span tag
errorClass: 'help-block',
errorPlacement: function (error, element) { // render error placement for each input type
if (element.attr("type") == "radio" || element.attr("type") == "checkbox") { // for chosen elements, need to insert the error after the chosen container
error.insertAfter($(element).closest('.form-group').children('div').children().last());
} else if (element.attr("name") == "dd" || element.attr("name") == "mm" || element.attr("name") == "yyyy") {
error.insertAfter($(element).closest('.form-group').children('div'));
} else {
error.insertAfter(element);
// for other inputs, just perform default behavior
}
},
ignore: "",
rules: {
firstname: {
minlength: 2,
required: true
},
lastname: {
minlength: 2,
required: true
},
email: {
required: true,
email: true
},
password: {
minlength: 6,
required: true
},
password_again: {
required: true,
minlength: 5,
equalTo: "#password"
},
yyyy: "FullDate",
gender: {
required: true
},
zipcode: {
required: true,
number: true,
minlength: 5,
minlength: 5
},
city: {
required: true
},
newsletter: {
required: true
}
},
messages: {
firstname: "Please specify your first name",
lastname: "Please specify your last name",
email: {
required: "We need your email address to contact you",
email: "Your email address must be in the format of name@domain.com"
},
gender: "Please check a gender!"
},
groups: {
DateofBirth: "dd mm yyyy",
},
invalidHandler: function (event, validator) { //display error alert on form submit
successHandler1.hide();
errorHandler1.show();
},
highlight: function (element) {
$(element).closest('.help-block').removeClass('valid');
// display OK icon
$(element).closest('.form-group').removeClass('has-success').addClass('has-error').find('.symbol').removeClass('ok').addClass('required');
// add the Bootstrap error class to the control group
},
unhighlight: function (element) { // revert the change done by hightlight
$(element).closest('.form-group').removeClass('has-error');
// set error class to the control group
},
success: function (label, element) {
label.addClass('help-block valid');
// mark the current input as valid and display OK icon
$(element).closest('.form-group').removeClass('has-error').addClass('has-success').find('.symbol').removeClass('required').addClass('ok');
},
submitHandler: function (form) {
successHandler1.show();
errorHandler1.hide();
// submit form
//$('#form').submit();
}
});
};
// function to initiate Validation Sample 2
var runValidator2 = function () {
var form2 = $('#form2');
var errorHandler2 = $('.errorHandler', form2);
var successHandler2 = $('.successHandler', form2);
$.validator.addMethod("getEditorValue", function () {
$("#editor1").val($('.summernote').code());
if ($("#editor1").val() != "" && $("#editor1").val() != "
") {
$('#editor1').val('');
return true;
} else {
return false;
}
}, 'This field is required.');
form2.validate({
errorElement: "span", // contain the error msg in a small tag
errorClass: 'help-block',
errorPlacement: function (error, element) { // render error placement for each input type
if (element.attr("type") == "radio" || element.attr("type") == "checkbox") { // for chosen elements, need to insert the error after the chosen container
error.insertAfter($(element).closest('.form-group').children('div').children().last());
} else if (element.hasClass("ckeditor")) {
error.appendTo($(element).closest('.form-group'));
} else {
error.insertAfter(element);
// for other inputs, just perform default behavior
}
},
ignore: "",
rules: {
firstname2: {
minlength: 2,
required: true
},
lastname2: {
minlength: 2,
required: true
},
email2: {
required: true,
email: true
},
occupation: {
required: true
},
dropdown: {
required: true
},
services: {
required: true,
minlength: 2
},
creditcard: {
required: true,
creditcard: true
},
url: {
required: true,
url: true
},
zipcode2: {
required: true,
number: true,
minlength: 5,
minlength: 5
},
city2: {
required: true
},
editor1: "getEditorValue",
editor2: {
required: true
}
},
messages: {
firstname: "Please specify your first name",
lastname: "Please specify your last name",
email: {
required: "We need your email address to contact you",
email: "Your email address must be in the format of name@domain.com"
},
services: {
minlength: jQuery.format("Please select at least {0} types of Service")
}
},
invalidHandler: function (event, validator) { //display error alert on form submit
successHandler2.hide();
errorHandler2.show();
},
highlight: function (element) {
$(element).closest('.help-block').removeClass('valid');
// display OK icon
$(element).closest('.form-group').removeClass('has-success').addClass('has-error').find('.symbol').removeClass('ok').addClass('required');
// add the Bootstrap error class to the control group
},
unhighlight: function (element) { // revert the change done by hightlight
$(element).closest('.form-group').removeClass('has-error');
// set error class to the control group
},
success: function (label, element) {
label.addClass('help-block valid');
// mark the current input as valid and display OK icon
$(element).closest('.form-group').removeClass('has-error').addClass('has-success').find('.symbol').removeClass('required').addClass('ok');
},
submitHandler: function (form) {
successHandler2.show();
errorHandler2.hide();
// submit form
//$('#form2').submit();
}
});
$('.summernote').summernote({
height: 300,
tabsize: 2
});
CKEDITOR.disableAutoInline = true;
$('textarea.ckeditor').ckeditor();
};
return {
//main function to initiate template pages
init: function () {
runValidator1();
runValidator2();
}
};
}(); utility-coming-soon.js 0000664 00000007062 15063230114 0011035 0 ustar 00 var ComingSoon = function () {
//function to initiate Countdown
var runComingSoon = function () {
$("#countdown").countdown({
date: "10 august 2015 12:00:00",
format: "on"
}, function () {
// callback function
});
};
return {
//main function to initiate template pages
init: function () {
runComingSoon();
}
};
}();
//Countdown plugin
(function ($) {
$.fn.countdown = function (options, callback) {
//custom 'this' selector
thisEl = $(this);
//array of custom settings
var settings = {
'date': null,
'format': null
};
//append the settings array to options
if (options) {
$.extend(settings, options);
}
//main countdown function
function countdown_proc() {
eventDate = Date.parse(settings['date']) / 1000;
currentDate = Math.floor($.now() / 1000);
if (eventDate <= currentDate) {
callback.call(this);
clearInterval(interval);
}
seconds = eventDate - currentDate;
days = Math.floor(seconds / (60 * 60 * 24));
//calculate the number of days
seconds -= days * 60 * 60 * 24;
//update the seconds variable with no. of days removed
hours = Math.floor(seconds / (60 * 60));
seconds -= hours * 60 * 60;
//update the seconds variable with no. of hours removed
minutes = Math.floor(seconds / 60);
seconds -= minutes * 60;
//update the seconds variable with no. of minutes removed
//conditional Ss
if (days == 1) {
thisEl.find(".timeRefDays").text("day");
} else {
thisEl.find(".timeRefDays").text("days");
}
if (hours == 1) {
thisEl.find(".timeRefHours").text("hour");
} else {
thisEl.find(".timeRefHours").text("hours");
}
if (minutes == 1) {
thisEl.find(".timeRefMinutes").text("minute");
} else {
thisEl.find(".timeRefMinutes").text("minutes");
}
if (seconds == 1) {
thisEl.find(".timeRefSeconds").text("second");
} else {
thisEl.find(".timeRefSeconds").text("seconds");
}
//logic for the two_digits ON setting
if (settings['format'] == "on") {
days = (String(days).length >= 2) ? days : "0" + days;
hours = (String(hours).length >= 2) ? hours : "0" + hours;
minutes = (String(minutes).length >= 2) ? minutes : "0" + minutes;
seconds = (String(seconds).length >= 2) ? seconds : "0" + seconds;
}
//update the countdown's html values.
if (!isNaN(eventDate)) {
thisEl.find(".days").text(days);
thisEl.find(".hours").text(hours);
thisEl.find(".minutes").text(minutes);
thisEl.find(".seconds").text(seconds);
} else {
alert("Invalid date. Here's an example: 12 Tuesday 2012 17:30:00");
clearInterval(interval);
}
}
//run the function
countdown_proc();
//loop the function
interval = setInterval(countdown_proc, 1000);
};
})(jQuery); pages-gallery.js 0000664 00000001702 15063230114 0007633 0 ustar 00 var PagesGallery = function () {
//function to initiate Colorbox
var runColorBox = function () {
$(".group1").colorbox({
rel: 'group1',
transition: "none",
width: "100%",
height: "100%",
retinaImage: true
});
};
//function to Image Picker
var runImagePicker = function () {
$('.wrap-image .chkbox').bind('click', function () {
if ($(this).parent().hasClass('selected')) {
$(this).parent().removeClass('selected').children('a').children('img').removeClass('selected');
} else {
$(this).parent().addClass('selected').children('a').children('img').addClass('selected');
}
});
};
return {
//main function to initiate template pages
init: function () {
runColorBox();
runImagePicker();
}
};
}(); maps.js 0000664 00000011736 15063230114 0006047 0 ustar 00 var Maps = function () {
//function to initiate GMaps
//Gmaps.js allows you to use the potential of Google Maps in a simple way.
//For more information, please visit http://hpneo.github.io/gmaps/documentation.html
var runMaps = function () {
// Basic Map
map = new GMaps({
el: '#map1',
lat: -12.043333,
lng: -77.028333
});
//Markers
map2 = new GMaps({
div: '#map2',
lat: -12.043333,
lng: -77.028333
});
map2.addMarker({
lat: -12.043333,
lng: -77.03,
title: 'Lima',
details: {
database_id: 42,
author: 'HPNeo'
},
click: function (e) {
if (console.log)
console.log(e);
alert('You clicked in this marker');
}
});
map2.addMarker({
lat: -12.042,
lng: -77.028333,
title: 'Marker with InfoWindow',
height: '200px',
infoWindow: {
content: '
HTML Content
' } }); //Street View panorama = GMaps.createPanorama({ el: '#map3', lat: 42.3455, lng: -71.0983 }); //Search Address map = new GMaps({ div: '#map4', lat: -12.043333, lng: -77.028333 }); $('#geocoding_form').submit(function (e) { e.preventDefault(); GMaps.geocode({ address: $('#address').val().trim(), callback: function (results, status) { if (status == 'OK') { var latlng = results[0].geometry.location; map.setCenter(latlng.lat(), latlng.lng()); map.addMarker({ lat: latlng.lat(), lng: latlng.lng() }); } } }); }); //Interacting var map; // Update position $(document).on('submit', '.edit_marker', function (e) { e.preventDefault(); var $index = $(this).data('marker-index'); $lat = $('#marker_' + $index + '_lat').val(); $lng = $('#marker_' + $index + '_lng').val(); var template = $('#edit_marker_template').text(); // Update form values var content = template.replace(/{{index}}/g, $index).replace(/{{lat}}/g, $lat).replace(/{{lng}}/g, $lng); map.markers[$index].setPosition(new google.maps.LatLng($lat, $lng)); map.markers[$index].infoWindow.setContent(content); $marker = $('#markers-with-coordinates').find('li').eq(0).find('a'); $marker.data('marker-lat', $lat); $marker.data('marker-lng', $lng); }); // Update center $(document).on('click', '.pan-to-marker', function (e) { e.preventDefault(); var lat, lng; var $index = $(this).data('marker-index'); var $lat = $(this).data('marker-lat'); var $lng = $(this).data('marker-lng'); if ($index != undefined) { // using indices var position = map.markers[$index].getPosition(); lat = position.lat(); lng = position.lng(); } else { // using coordinates lat = $lat; lng = $lng; } map.setCenter(lat, lng); }); map = new GMaps({ div: '#map5', lat: -12.043333, lng: -77.028333 }); GMaps.on('marker_added', map, function (marker) { $('#map-ui').append('The requested content cannot be loaded.
Please try again later.