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
| local tmp=$(mktemp) | |
| local charset="$(file -bi "$inputfile"|awk -F "=" '{print $2}')" | |
| if [ "$charset" != "utf-8" ]; then | |
| iconv -f "$charset" -t utf8 "$inputfile" -o $tmp | |
| mv "$tmp" "$inputfile" | |
| fi |
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
| <!--[if lte IE 8]> | |
| <link rel="stylesheet" type="text/css" href="path/to/css/ie6-8.css" media="all"> | |
| <![endif]--> | |
| <!--[if gt IE 8]> | |
| <link rel="stylesheet" type="text/css" href="path/to/css/modernAndMobileBrowsers.css" media="all"> | |
| <![endif]--> | |
| <!--[if !IE]> --> | |
| <link rel="stylesheet" type="text/css" href="path/to/css/modernAndMobileBrowsers.css" media="all"> | |
| <!-- <![endif]--> |
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
| PAGE_TARGET = | |
| content.pageFrameObj = | |
| styles.content { | |
| links { | |
| extTarget = | |
| target = | |
| } | |
| loginform.target = | |
| mailform.target = | |
| searchresult { |
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
| pointer-events: none; |
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
| //specific image on site | |
| //FIX IE < 9 transparent png fading | |
| var img = $("div.replace.full"+idart+" img"); | |
| //console.log(img[0]); | |
| var src = $("div.replace.full"+idart+" img").attr('src'); | |
| //console.log(src); | |
| if (src.substr(src.length-4) === '.png' || src.substr(src.length-4) === '.PNG') { | |
| img[0].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='crop',src='" + src + "')"; | |
| //console.log(document.images[i]); |
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
| plugin.tx_srfeuserregister_pi1 { | |
| create.evalValues { | |
| zip = int, atLeast[5], atMost[5] | |
| telephone = int, atLeast[6] | |
| #email more than once possible | |
| email = email | |
| } | |
| edit.evalValues { | |
| zip = int,atLeast[5], atMost[5] | |
| telephone = int, atLeast[6] |
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
| //insert in ext_tables.php | |
| // increase number of workspace related backend users and backend usergroups | |
| t3lib_div::loadTCA('sys_workspace'); | |
| $TCA['sys_workspace']['columns']['adminusers']['config']['maxitems'] = 99; | |
| $TCA['sys_workspace']['columns']['members']['config']['maxitems'] = 99; | |
| $TCA['sys_workspace']['columns']['reviewers']['config']['maxitems'] = 99; | |
| // increase number of workspace related db and file mount points | |
| $TCA['sys_workspace']['columns']['db_mountpoints']['config']['maxitems'] = 99; | |
| $TCA['sys_workspace']['columns']['file_mountpoints']['config']['maxitems'] = 99; |
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
| #INDEXED SEARCH ENGINE - PLUGIN | |
| config.index_enable = 1 | |
| plugin.tx_indexedsearch.search.rootPidList = 1 |
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
| select concat("alter table ",TABLE_SCHEMA,".",TABLE_NAME," CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;") | |
| from information_schema.TABLES where TABLE_SCHEMA="SWZM2"; |
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
| Link: http://it.toolbox.com/wiki/index.php/Switch_from_file_get_contents_to_curl | |
| ------------------------------------------ | |
| ------------------------------------------ | |
| Alter Code: | |
| ------------------------------------------ | |
| $data = file_get_contents($url); |