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 | |
| function etkinliksil() { | |
| remove_action( 'admin_print_styles', 'print_emoji_styles' ); | |
| remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
| remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
| remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
| remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); | |
| remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); | |
| remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); | |
| remove_action('wp_head', 'rsd_link'); |
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
| class WP_HTML_Compression | |
| { | |
| // Settings | |
| protected $compress_css = true; | |
| protected $compress_js = true; | |
| protected $info_comment = true; | |
| protected $remove_comments = true; | |
| // Variables | |
| protected $html; |
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
| find . -name "*.png" -exec optipng -o7 {} \; | |
| find . -iname "*.jpg" -exec jpegoptim -m80 -o -p {} \; |
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
| var OBJECTFALSE = new Array(); | |
| function contactFormKontrol() | |
| { | |
| var retVal = true; | |
| if(OBJECTFALSE.length > 0){ | |
| for(var i=0; i<OBJECTFALSE.length; i++){ | |
| $("#"+OBJECTFALSE[i]).css({"background":"#ffffff"}); | |
| } |
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
| DELETE FROM reads WHERE user_id NOT IN (SELECT id FROM users) |
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
| $(document).ready(function(){ | |
| var $flowers = $('#flower-items'); | |
| $('#flower-items').find('a').on('click', function(e){ | |
| alert('a'); | |
| e.preventDefault(); | |
| var $desc = $('#flower-description'); | |
| switch($(this).attr('href')) { | |
| case 'calla.html' : | |
| alert('b') | |
| $desc.load('fragments/lilies.html'); |
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
| <p> | |
| <b>Ad Soyad </b><br> | |
| [text* adsoyad] | |
| <br> | |
| <b>Doğum Tarihi</b><br> | |
| [date* dogumtarihi]<br> | |
| <b>Medeni Durum</b><br> | |
| [select* medenidurum include_blank "Evli" "Bekar"] | |
| <br> | |
| <b>Eğitim Durumu</b><br> |
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 user_agent(){ | |
| $iPod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod"); | |
| $iPhone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); | |
| $iPad = strpos($_SERVER['HTTP_USER_AGENT'],"iPad"); | |
| $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android"); | |
| file_put_contents('./public/upload/install_log/agent',$_SERVER['HTTP_USER_AGENT']); | |
| if($iPad||$iPhone||$iPod){ | |
| return 'ios'; | |
| }else if($android){ | |
| return 'android'; |
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 username, COUNT(*) c FROM users GROUP BY username HAVING c > 1 ORDER BY c DESC |
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 | |
| $c = new CDbCriteria(); | |
| Hoge::model()->findAll($c); | |
| // SELECT * FROM `hoge` `t` | |
| $c = new CDbCriteria(); | |
| $c->addSearchCondition('t.fuga', null); // null, false, ''などは無視されるようです | |
| Hoge::model()->findAll($c); |
OlderNewer