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
| /** | |
| * Send data to the given URL via a POST request. Or GET if specified. | |
| * | |
| * Origially from Rakesh Pai & Yuck: http://stackoverflow.com/a/133997/440643 | |
| * | |
| * @param string path | |
| * @param object params | |
| * @param string method | |
| */ | |
| function postToURL(path, params, method) { |
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 getURLParameter(name) { | |
| return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null; | |
| } |
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
| /** | |
| * Opens a popup in the center of the screen | |
| * | |
| * @param url | |
| * @param title | |
| * @param width | |
| * @param height | |
| * @returns {window} | |
| */ | |
| function openPopupCenter(url, title, width, height) { |
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 nl2br (str, is_xhtml) { | |
| var breakTag = (is_xhtml || typeof is_xhtml === 'undefined') ? '<br />' : '<br>'; | |
| return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + breakTag + '$2'); | |
| } |
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
| /** | |
| * Return a random value from the given non-associative array | |
| * | |
| * @param array | |
| * @returns {*} | |
| */ | |
| function getRandomArrayValue(array) { | |
| return array[Math.floor(Math.random() * array.length)]; | |
| } |
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
| /** | |
| * For Typo3 EXT:rsaauth: Clones the password field before replacing its value. | |
| * This allows password managers to save the entered password, instead of the hashed version. | |
| * | |
| * Load this code/file on the bottom of your page. Requires jQuery. | |
| * | |
| * WARNING: HTTPS is adviced when using this as the password is send clear-text as well. | |
| */ | |
| if(typeof tx_rsaauth_feencrypt == 'function') { | |
| var orig_tx_rsaauth_feencrypt = window.tx_rsaauth_feencrypt; |
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
| # Make collapsible for layout 3 | |
| tt_content.uploads { | |
| 10 > | |
| 10 = CASE | |
| 10 { | |
| key.field = layout | |
| 3 = TEXT | |
| 3 { | |
| field = header |
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
| config.tx_extbase { | |
| persistence { | |
| classes { | |
| Vendor\MyPackage\Domain\Model\Organisation { | |
| mapping { | |
| columns { | |
| tstamp.mapOnProperty = tstamp | |
| hidden.mapOnProperty = hidden | |
| crdate.mapOnProperty = crdate | |
| cruser_id.mapOnProperty = cruserId |
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 getCookieValue(key) { | |
| currentcookie = document.cookie; | |
| if (currentcookie.length > 0) | |
| { | |
| firstidx = currentcookie.indexOf(key + "="); | |
| if (firstidx != -1) | |
| { | |
| firstidx = firstidx + key.length + 1; | |
| lastidx = currentcookie.indexOf(";",firstidx); | |
| if (lastidx == -1) |