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 postWall(results){ | |
| var result=results.split(","); | |
| var publish = { | |
| method: 'feed', | |
| message: 'Thử xem chu kỳ sinh học ngày hôm nay của bạn như thế nào đi', | |
| name: 'Chu kỳ trí tuệ của mình là '+result[2]+'% đó nha', | |
| caption: 'Khoa học đã chứng minh', | |
| description: ( | |
| 'Chu kỳ sinh học có tác động đến cuộc sống mỗi người, nếu nắm được quy luật này, biết được mình đang ở vị trí nào trong chu kỳ, bạn có thể chủ động hơn trong cuộc sống của mình.' | |
| ), |
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 liveDay($birthDay) | |
| { | |
| $timezone = +7; | |
| $toDay = gmstrftime("%m/%d/%Y",time()+ 3600*($timezone+date("0"))); | |
| $date_parts1=explode('/', $birthDay);//loai bo ki tu dac biet nhu '-' hoac '/' | |
| $date_parts2=explode('/', $toDay); | |
| $start_date=gregoriantojd($date_parts1[0], $date_parts1[1], $date_parts1[2]);//($thang,$ngay,$nam) | |
| $end_date=gregoriantojd($date_parts2[0], $date_parts2[1], $date_parts2[2]); | |
| return $end_date - $start_date; | |
| } |
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 addPostLike(objectid) | |
| { | |
| FB.api("/"+objectid+"/likes", function (response) { | |
| data = response['data']; | |
| console.log(data); | |
| }); | |
| } |
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 getsign($date = null){ | |
| if($date == null) | |
| return "NA"; | |
| list($month,$day,$year)=explode("/",$date); | |
| if(($month==1 && $day>20)||($month==2 && $day<20)){ | |
| return "Aquarius"; | |
| }else if(($month==2 && $day>18 )||($month==3 && $day<21)){ | |
| return "Pisces"; | |
| }else if(($month==3 && $day>20)||($month==4 && $day<21)){ | |
| return "Aries"; |
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 DOMNodeInsertedHandle(embed){ | |
| if( embed.target.getAttribute("class")=="adzone3") | |
| { | |
| embed.target.innerHTML = "This is the ads"; | |
| } | |
| console.log(embed.target); | |
| //console.log(embed.target.getAttribute("id") + "@" + embed.target.getAttribute("class")); | |
| } | |
| function DOMContentLoadedHandle() |
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 single_term_slug( $prefix = '', $display = true ) { | |
| $term = get_queried_object(); | |
| if ( !$term ) | |
| return; | |
| if ( is_category() ) | |
| $term_slug = apply_filters( 'single_cat_slug', $term->slug ); | |
| elseif ( is_tag() ) | |
| $term_slug = apply_filters( 'single_tag_slug', $term->slug ); | |
| elseif ( is_tax() ) | |
| $term_slug = apply_filters( 'single_term_slug', $term->slug ); |
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
| preg_match_all('#<a\s+.*?href=[\'"]([^\'"]+)[\'"]\s*(?:title=[\'"]([^\'"]+)[\'"])?.*?>((?:(?!</a>).)*)</a>#i', $data, $matches); |
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
| # BlueHost.com | |
| # .htaccess main domain to subdirectory redirect | |
| # Copy and paste the following code into the .htaccess file | |
| # in the public_html folder of your hosting account | |
| # make the changes to the file according to the instructions. | |
| # Do not change this line. | |
| RewriteEngine on | |
| # Change example.com to be your main domain. | |
| RewriteCond %{HTTP_HOST} ^(www.)?example.com$ | |
| # Change 'subdirectory' to be the directory you will use for your main domain. |
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
| RewriteCond %{HTTP_HOST} ^www\.addon1\.com$ [NC] | |
| RewriteCond %{REQUEST_URI} !^/show.php | |
| RewriteRule ^(.*)$ /show.php?domain=addon1.com&$1 | |
| RewriteCond %{HTTP_HOST} ^www\.addon2\.com$ [NC] | |
| RewriteCond %{REQUEST_URI} !^/show.php | |
| RewriteRule ^(.*)$ /show.php?domain=addon2.com&$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
| using System.Threading; | |
| namespace System.ComponentModel | |
| { | |
| public class AbortableBackgroundWorker : BackgroundWorker | |
| { | |
| public AbortableBackgroundWorker() | |
| { | |
| this.WorkerSupportsCancellation = true; | |
| this.WorkerReportsProgress = true; |
OlderNewer