The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled PHP Code
Posted by: asdas | October 20, 2010 @ 8:44am
PHP Code
[
Download
]
<?php $current_lang = $modx->runSnippet('lang',array('long'=>1)); $date = date(M).'. '.date(d).', '.date(Y); $hour = 'UK '.date(h).':'.date(i).' '.date(A); $logged = FALSE; if($logged = TRUE){ $show = $modx->getChunk('top_logged_in',array('aaa'=>'test 1')); }else{ $show = $modx->getChunk('top_block_login',array('aaa'=>'test 2')); } $data = array( 'current_lang'=>$current_lang, 'date'=>$date, 'hour'=>$hour, 'show'=>$show ); $output = $modx->getChunk('top_block',$data); return $output;
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.38 / 8
50 Votes
http://codebin.yi.org/902
page generated in 0.01 seconds