return $account_type;
}
-?>
fclose($this->rLogFile);
}
}
-?>
add_shadow_entry($message_id);
}
-?>
return date('Y-m-d H:i:s', $timestamp);
}
}
-?>
return array("header" => $author, "items" => $items);
}
}
-?>
create_files_from_item($message["id"]);
}
}
-?>
return(trim($message));
}
-?>
(substr(trim($nextline), 0, 7) == 'http://') or
(substr(trim($nextline), 0, 8) == 'https://'));
- if (!$specialchars)
+ if (!$specialchars)
$specialchars = ((substr(rtrim($line), -1) == '-') or
(substr(rtrim($line), -1) == '=') or
(substr(rtrim($line), -1) == '*') or
return(implode("\n", $lines));
}
-?>
return(trim($doc->saveXML()));
}
}
-?>
return(posix_kill(file_get_contents($this->_file), SIGTERM));
}
}
-?>
logger("Done", LOGGER_DEBUG);
return true;
}
-
-?>
// Now we delete all the depending table entries
dba::delete('contact', array('id' => $id));
}
-?>
dba::close($messages);
}
-?>
dba::close($messages);
}
-?>
logger('cron_end');
Config::set('nodeinfo', 'last_calucation', time());
}
-
-?>
/**
* Get the app
- *
+ *
* Same as get_app from boot.php
*/
public function get_app() {
self::$app = $app;
}
}
-?>
$conv = $this->get_conversation();
- $lock = ((($item['private'] == 1) || (($item['uid'] == local_user()) && (strlen($item['allow_cid']) || strlen($item['allow_gid'])
+ $lock = ((($item['private'] == 1) || (($item['uid'] == local_user()) && (strlen($item['allow_cid']) || strlen($item['allow_gid'])
|| strlen($item['deny_cid']) || strlen($item['deny_gid']))))
? t('Private Message')
: false);
if ((! $owner_linkmatch) && (! $alias_linkmatch) && (! $owner_namematch)) {
// The author url doesn't match the owner (typically the contact)
- // and also doesn't match the contact alias.
- // The name match is a hack to catch several weird cases where URLs are
+ // and also doesn't match the contact alias.
+ // The name match is a hack to catch several weird cases where URLs are
// all over the park. It can be tricked, but this prevents you from
// seeing "Bob Smith to Bob Smith via Wall-to-wall" and you know darn
- // well that it's the same Bob Smith.
+ // well that it's the same Bob Smith.
- // But it could be somebody else with the same name. It just isn't highly likely.
+ // But it could be somebody else with the same name. It just isn't highly likely.
$this->owner_photo = $this->get_data_value('owner-avatar');
$this->owner_name = $this->get_data_value('owner-name');
$this->wall_to_wall = true;
// If it is our contact, use a friendly redirect link
- if ((link_compare($this->get_data_value('owner-link'),$this->get_data_value('url')))
+ if ((link_compare($this->get_data_value('owner-link'),$this->get_data_value('url')))
&& ($this->get_data_value('network') === NETWORK_DFRN)) {
$this->owner_url = $this->get_redirect_url();
} else {
}
}
-/// @TODO These are discouraged and should be removed:
-?>
<?php
/**
* tests several functions which are used to prevent xss attacks
- *
+ *
* @package test.util
*/
*/
public function testXmlify() {
$text="<tag>I want to break\n this!11!<?hard?></tag>";
- $xml=xmlify($text);
+ $xml=xmlify($text);
$retext=unxmlify($text);
$this->assertEquals($text, $retext);
}
-
- /**\r
- * xmlify and put in a document\r
- */\r
- public function testXmlifyDocument() {\r
- $tag="<tag>I want to break</tag>";\r
+
+ /**
+ * xmlify and put in a document
+ */
+ public function testXmlifyDocument() {
+ $tag="<tag>I want to break</tag>";
$xml=xmlify($tag);
- $text='<text>'.$xml.'</text>'; \r
-
- $xml_parser=xml_parser_create();
+ $text='<text>'.$xml.'</text>';
+
+ $xml_parser=xml_parser_create();
//should be possible to parse it
- $values=array(); $index=array();
- $this->assertEquals(1, xml_parse_into_struct($xml_parser, $text, $values, $index));
-
- $this->assertEquals(array('TEXT'=>array(0)),
- $index);
- $this->assertEquals(array(array('tag'=>'TEXT', 'type'=>'complete', 'level'=>1, 'value'=>$tag)),\r
+ $values=array(); $index=array();
+ $this->assertEquals(1, xml_parse_into_struct($xml_parser, $text, $values, $index));
+
+ $this->assertEquals(array('TEXT'=>array(0)),
+ $index);
+ $this->assertEquals(array(array('tag'=>'TEXT', 'type'=>'complete', 'level'=>1, 'value'=>$tag)),
$values);
-
- xml_parser_free($xml_parser); \r
+
+ xml_parser_free($xml_parser);
}
/**
//get_mentions
//get_contact_block, bis Zeile 538
}
-?>
// Now sleep for 5 minutes
sleep(300);
}
-?>
$s_colorset = get_config('duepuntozero','colorset');
$colorset = get_pconfig( $uid, 'duepuntozero', 'colorset');
-if (!x($colorset))
+if (!x($colorset))
$colorset = $s_colorset;
if ($colorset) {
}
echo $setcss;
-
-?>