if ($_POST ["keep_img"] == "yes") {
$imgpath = $feature->imgpath;
} else {
+ request_error ();
$imgpath = save_uploaded_file ($_FILES ["image_file"], $con);
}
success_feature ($new_feature, "update");
break;
case "add":
+ request_error ();
$imgpath = save_uploaded_file ($_FILES ["image_file"], $con);
$lon = $_POST ["lon"];
success_feature ($feature, "add");
break;
case "del":
+ request_error ();
$id = $_POST ["fid"];
$feature = $con->getfeature ($id);
if (!isset ($feature)) {
UnconsistentError: "<?php ptrans('Server reply was inconsistent.')?>",
UnknownError: "<?php ptrans('There was an unknown error.')?>",
DelSucces: "<?php ptrans('Removal took place correctly.')?>",
- UpdateSucces: "<?php ptrans('Save took place correctly.')?>"
+ UpdateSucces: "<?php ptrans('Save took place correctly.')?>",
+ DisabledForDemo: "<?php ptrans('This feature is not enabled on demo site')?>"
};
<?php
},
addNewFeature: function () {
+ alert (SypStrings.DisabledForDemo);
+ return;
function cancel() {
$(document).unbind("keydown");
Admin.reset()
},
del: function (feature) {
+ alert (SypStrings.DisabledForDemo);
+ return;
var form = $("#feature_delete");
form.find('input[name="fid"]').val(feature.fid);
AjaxMgr.add({
return false;
});
$("#image_delete").click(function() {
+ alert (SypStrings.DisabledForDemo);
+ return;
$("#img").removeAttr('src');
// needs to rebuild element otherwise some browsers still
// display image.