Revision 1723
Added by Dietmar about 12 years ago
- fixed missing class.admin
- check droplet skype if no existing user
branches/2.8.x/wb/modules/droplets/droplets.php | ||
---|---|---|
30 | 30 |
throw new IllegalFileException(); |
31 | 31 |
} |
32 | 32 |
/* -------------------------------------------------------- */ |
33 |
|
|
33 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
34 | 34 |
function do_eval($_x_codedata, $_x_varlist, &$wb_page_data) |
35 | 35 |
{ |
36 | 36 |
extract($_x_varlist, EXTR_SKIP); |
... | ... | |
112 | 112 |
function evalDroplets( &$wb_page_data, $max_loops = 3 ) { |
113 | 113 |
$max_loops = ((int)$max_loops = 0 ? 3 : (int)$max_loops); |
114 | 114 |
while( (processDroplets($wb_page_data) == true) && ($max_loops > 0)) |
115 |
{
|
|
115 |
{ |
|
116 | 116 |
$max_loops--; |
117 | 117 |
} |
118 | 118 |
return $wb_page_data; |
branches/2.8.x/wb/modules/droplets/example/Skype.php | ||
---|---|---|
1 | 1 |
//:Your skype status as an image |
2 | 2 |
//:Commandline to use: [[skype?user=skypename]] |
3 |
$user = (isset($user) && ($user!='') ? $user : ''); |
|
3 | 4 |
return '<img src="http://mystatus.skype.com/'.$user.'.png?t='.time().'" alt="My Skype status" />'; |
Also available in: Unified diff