Merge commit 'upstream/master'
This commit is contained in:
commit
cb05801a90
1393 changed files with 3556 additions and 1445 deletions
0
include/Contact.php
Executable file → Normal file
0
include/Contact.php
Executable file → Normal file
0
include/EmailNotification.php
Executable file → Normal file
0
include/EmailNotification.php
Executable file → Normal file
0
include/Photo.php
Executable file → Normal file
0
include/Photo.php
Executable file → Normal file
0
include/Scrape.php
Executable file → Normal file
0
include/Scrape.php
Executable file → Normal file
0
include/acl_selectors.php
Executable file → Normal file
0
include/acl_selectors.php
Executable file → Normal file
0
include/api.php
Executable file → Normal file
0
include/api.php
Executable file → Normal file
0
include/attach.php
Executable file → Normal file
0
include/attach.php
Executable file → Normal file
0
include/auth.php
Executable file → Normal file
0
include/auth.php
Executable file → Normal file
0
include/bb2diaspora.php
Executable file → Normal file
0
include/bb2diaspora.php
Executable file → Normal file
0
include/cache.php
Executable file → Normal file
0
include/cache.php
Executable file → Normal file
0
include/contact_selectors.php
Executable file → Normal file
0
include/contact_selectors.php
Executable file → Normal file
0
include/contact_widgets.php
Executable file → Normal file
0
include/contact_widgets.php
Executable file → Normal file
0
include/conversation.php
Executable file → Normal file
0
include/conversation.php
Executable file → Normal file
0
include/cronhooks.php
Executable file → Normal file
0
include/cronhooks.php
Executable file → Normal file
0
include/crypto.php
Executable file → Normal file
0
include/crypto.php
Executable file → Normal file
0
include/datetime.php
Executable file → Normal file
0
include/datetime.php
Executable file → Normal file
0
include/dba.php
Executable file → Normal file
0
include/dba.php
Executable file → Normal file
0
include/delivery.php
Executable file → Normal file
0
include/delivery.php
Executable file → Normal file
0
include/diaspora.php
Executable file → Normal file
0
include/diaspora.php
Executable file → Normal file
0
include/directory.php
Executable file → Normal file
0
include/directory.php
Executable file → Normal file
0
include/email.php
Executable file → Normal file
0
include/email.php
Executable file → Normal file
0
include/enotify.php
Executable file → Normal file
0
include/enotify.php
Executable file → Normal file
0
include/event.php
Executable file → Normal file
0
include/event.php
Executable file → Normal file
0
include/expire.php
Executable file → Normal file
0
include/expire.php
Executable file → Normal file
0
include/fcontact.php
Executable file → Normal file
0
include/fcontact.php
Executable file → Normal file
0
include/group.php
Executable file → Normal file
0
include/group.php
Executable file → Normal file
0
include/html2bbcode.php
Executable file → Normal file
0
include/html2bbcode.php
Executable file → Normal file
0
include/items.php
Executable file → Normal file
0
include/items.php
Executable file → Normal file
0
include/message.php
Executable file → Normal file
0
include/message.php
Executable file → Normal file
0
include/nav.php
Executable file → Normal file
0
include/nav.php
Executable file → Normal file
0
include/network.php
Executable file → Normal file
0
include/network.php
Executable file → Normal file
0
include/notifier.php
Executable file → Normal file
0
include/notifier.php
Executable file → Normal file
0
include/oauth.php
Executable file → Normal file
0
include/oauth.php
Executable file → Normal file
0
include/oembed.php
Executable file → Normal file
0
include/oembed.php
Executable file → Normal file
0
include/pgettext.php
Executable file → Normal file
0
include/pgettext.php
Executable file → Normal file
9
include/plugin.php
Executable file → Normal file
9
include/plugin.php
Executable file → Normal file
|
@ -17,7 +17,12 @@ function uninstall_plugin($plugin){
|
|||
}}
|
||||
|
||||
if (! function_exists('install_plugin')){
|
||||
function install_plugin($plugin){
|
||||
function install_plugin($plugin) {
|
||||
|
||||
// silently fail if plugin was removed
|
||||
|
||||
if(! file_exists('addon/' . $plugin . '/' . $plugin . '.php'))
|
||||
return false;
|
||||
logger("Addons: installing " . $plugin);
|
||||
$t = @filemtime('addon/' . $plugin . '/' . $plugin . '.php');
|
||||
@include_once('addon/' . $plugin . '/' . $plugin . '.php');
|
||||
|
@ -32,9 +37,11 @@ function install_plugin($plugin){
|
|||
intval($t),
|
||||
$plugin_admin
|
||||
);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
logger("Addons: FAILED installing " . $plugin);
|
||||
return false;
|
||||
}
|
||||
|
||||
}}
|
||||
|
|
0
include/poller.php
Executable file → Normal file
0
include/poller.php
Executable file → Normal file
0
include/profile_advanced.php
Executable file → Normal file
0
include/profile_advanced.php
Executable file → Normal file
0
include/profile_selectors.php
Executable file → Normal file
0
include/profile_selectors.php
Executable file → Normal file
0
include/profile_update.php
Executable file → Normal file
0
include/profile_update.php
Executable file → Normal file
0
include/queue.php
Executable file → Normal file
0
include/queue.php
Executable file → Normal file
0
include/queue_fn.php
Executable file → Normal file
0
include/queue_fn.php
Executable file → Normal file
0
include/remoteupdate.php
Executable file → Normal file
0
include/remoteupdate.php
Executable file → Normal file
0
include/salmon.php
Executable file → Normal file
0
include/salmon.php
Executable file → Normal file
0
include/security.php
Executable file → Normal file
0
include/security.php
Executable file → Normal file
0
include/session.php
Executable file → Normal file
0
include/session.php
Executable file → Normal file
0
include/socgraph.php
Executable file → Normal file
0
include/socgraph.php
Executable file → Normal file
0
include/system_unavailable.php
Executable file → Normal file
0
include/system_unavailable.php
Executable file → Normal file
4
include/template_processor.php
Executable file → Normal file
4
include/template_processor.php
Executable file → Normal file
|
@ -13,12 +13,14 @@
|
|||
var $debug=false;
|
||||
|
||||
private function _preg_error(){
|
||||
|
||||
switch(preg_last_error()){
|
||||
case PREG_INTERNAL_ERROR: echo('PREG_INTERNAL_ERROR'); break;
|
||||
case PREG_BACKTRACK_LIMIT_ERROR: echo('PREG_BACKTRACK_LIMIT_ERROR'); break;
|
||||
case PREG_RECURSION_LIMIT_ERROR: echo('PREG_RECURSION_LIMIT_ERROR'); break;
|
||||
case PREG_BAD_UTF8_ERROR: echo('PREG_BAD_UTF8_ERROR'); break;
|
||||
case PREG_BAD_UTF8_OFFSET_ERROR: echo('PREG_BAD_UTF8_OFFSET_ERROR'); break;
|
||||
// This is only valid for php > 5.3, not certain how to code around it for unit tests
|
||||
// case PREG_BAD_UTF8_OFFSET_ERROR: echo('PREG_BAD_UTF8_OFFSET_ERROR'); break;
|
||||
default:
|
||||
//die("Unknown preg error.");
|
||||
return;
|
||||
|
|
|
@ -80,6 +80,9 @@ function escape_tags($string) {
|
|||
if(! function_exists('autoname')) {
|
||||
function autoname($len) {
|
||||
|
||||
if($len <= 0)
|
||||
return '';
|
||||
|
||||
$vowels = array('a','a','ai','au','e','e','e','ee','ea','i','ie','o','ou','u');
|
||||
if(mt_rand(0,5) == 4)
|
||||
$vowels[] = 'y';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue