This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // die maximale Ausführzeit erhöhen | |
| ini_set("max_execution_time", 300); | |
| // Objekt erstellen und schauen, ob der Server zippen kann | |
| $zip = new ZipArchive(); | |
| if ($zip->open("backup_".date("Y-m-d")."_".substr(md5(date("h-i-s")),0,8).".zip", ZIPARCHIVE::CREATE) !== TRUE) { | |
| die ("Could not open archive"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $root = array(); | |
| foreach (OOCategory::getRootCategories(true, $this->getValue("clang")) as $cat) { | |
| array_push($root, $cat->getName()); | |
| } | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| li[class^="name-von-klasse-zb"] { | |
| blubb: bla; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <!-- META inf --> | |
| <!-- mobile --> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <!-- remote JS --> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
| <script type="text/javascript" src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.post('/api/query', function (req, res) { | |
| if (req.body.query) { | |
| async.waterfall([ | |
| function (next) { | |
| var query=req.body.query; | |
| console.log(query); | |
| connection.query(query, next); | |
| }, | |
| function (rows, fields, next) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.post('/api/resolve', function(req, res) { | |
| console.log("req.body: ", req.body); | |
| if(req.body.field && req.body.val && req.body.out && req.body.table) { | |
| connection.query("SELECT "+req.body.out+" FROM "+req.body.table+" WHERE "+req.body.field+" LIKE "+req.body.val+" LIMIT 0,1"); | |
| } else { | |
| res.send(666, "Internal Server Error"); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function ajaxreturnafterfunctionreturn(navObject) { | |
| var foo = []; | |
| var j = 0; | |
| var jsonconfig = getConfig(navObject); | |
| $.ajax({ | |
| type: 'POST', | |
| url: '/api/select', | |
| data: JSON.stringify({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getConfig(navObject) { | |
| //final element we'll return, holds the whole json | |
| var $jsondata; | |
| _.each(sCategories, function(z, rootName) { | |
| var desiredCategory = false; | |
| var desiredSubCategory = false; | |
| if(rootName != navObject.bcm) { | |
| //check here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function createModal(bcm, bcs) { | |
| var $modal = $(document.createElement('div')).attr('id', 'modal'); | |
| $modal.addClass('modal').addClass('fade').addClass('in'); | |
| $modal.attr('tabindex','-1').attr('role','dialog').attr('aria-labelledby','label').attr('aria-hidden','false'); | |
| $modal.attr('style','display; block;'); | |
| var $modalDialog = $(document.createElement('div')); | |
| $modalDialog.addClass('modal-dialog'); | |
| var $modalContent = $(document.createElement('div')); |