$output_str.=strftime('%z', $timestamp);
break;
case '%':
- $outpus_str.='%';
+ $output_str.='%';
break;
}
}else{
if (!serendipity_checkPermission('adminUsersMaintainOthers')) {
// Only groups should be accessible where a user has access rights.
- $my_groups = serendipity_getGroups($serendipity['authorid'], true);
+ $my_groups =& serendipity_getGroups($serendipity['authorid'], true);
if (!in_array($groupid, $my_groups)) {
return false;
}
$myself = $serendipity['authorid'];
}
- $my_groups = serendipity_getGroups($myself, true);
- $his_groups = serendipity_getGroups($checkuser, true);
+ $my_groups =& serendipity_getGroups($myself, true);
+ $his_groups =& serendipity_getGroups($checkuser, true);
foreach($his_groups AS $his_group) {
if (in_array($his_group, $my_groups)) {
if (!serendipity_checkPermission('adminUsersMaintainOthers')) {
// Only groups should be accessible where a user has access rights.
- $my_groups = serendipity_getGroups($serendipity['authorid'], true);
+ $my_groups =& serendipity_getGroups($serendipity['authorid'], true);
if (!in_array($groupid, $my_groups)) {
return false;
}
}
- $storage = serendipity_fetchGroup($groupid);
+ $storage =& serendipity_fetchGroup($groupid);
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}groupconfig WHERE id = " . (int)$groupid);
foreach ($perms AS $perm => $userlevels) {
$dFile = $file['path'] . $file['name'] . '.' . $file['extension'];
$dThumb = $file['path'] . $file['name'] . (!empty($file['thumbnail_name']) ? '.' . $file['thumbnail_name'] : '') . '.' . $file['extension'];
- $admin = '';
if (!serendipity_checkPermission('adminImagesDelete')) {
return;
}
$fcount = count($files);
for ($x = 0; $x < $fcount; $x++) {
- $update = $q = array();
+ $update = array();
$f = serendipity_parseFileName($files[$x]);
if (empty($f[1]) || $f[1] == $files[$x]) {
// No extension means bad file most probably. Skip it.
$entry['categories'] = array(0 => array(
'category_name' => $entry['category_name'],
'feed_category_name' => serendipity_utf8_encode(htmlspecialchars($entry['category_name'])),
- 'categoryURL' => serendipity_categoryURL($cat, 'baseURL')
+ 'categoryURL' => serendipity_categoryURL($entry, 'baseURL')
));
} else {
foreach($entry['categories'] AS $cid => $_cat) {
return serendipity_printTrackbacks(serendipity_fetchTrackbacks($params['entry']));
}
-function &serendipity_replaceSmartyVars(&$tpl_source, $smarty) {
+function &serendipity_replaceSmartyVars(&$tpl_source, &$smarty) {
$tpl_source = str_replace('$CONST.', '$smarty.const.', $tpl_source);
return $tpl_source;
}
function serendipity_smarty_shutdown($serendipity_directory = '') {
global $serendipity;
- $cwd = getcwd();
+ #$cwd = getcwd();
chdir($serendipity_directory);
$raw_data = ob_get_contents();
ob_end_clean();
}
function serendipity_pingback_autodiscover($loc, $body) {
+global $serendipity;
if (!empty($_SERVER['X-PINGBACK'])) {
$pingback = $_SERVER['X-PINGBACK'];
} elseif (preg_match('@<link rel="pingback" href="([^"]+)" ?/?>@i', $body, $matches)) {