Commit 854220e6 authored by redmatrix's avatar redmatrix

static App

parent 03897f79
......@@ -28,7 +28,7 @@ function bookmarker_prepare_body(&$a,&$b) {
if(! strpos($b['html'],'bookmark-identifier'))
return;
if(function_exists('redbasic_init') || get_app()->theme_info['extends'] == 'redbasic')
if(function_exists('redbasic_init') || App::$theme_info['extends'] == 'redbasic')
$bookmarkicon = '<i class="icon-bookmark"></i>';
else
$bookmarkicon = '<img src="addon/bookmarker/bookmarker.png" width="19px" height="20px" alt="#^" />';
......
<?php
$a->strings["Report Bug"] = "Informar de problema";
App::$strings["Report Bug"] = "Informar de problema";
<?php
$a->strings["Report Bug"] = "Nahlásit chybu";
App::$strings["Report Bug"] = "Nahlásit chybu";
<?php
$a->strings["Report Bug"] = "Fehlerreport erstellen";
App::$strings["Report Bug"] = "Fehlerreport erstellen";
<?php
$a->strings["Report Bug"] = "Skribi cimraporton";
App::$strings["Report Bug"] = "Skribi cimraporton";
<?php
$a->strings["Report Bug"] = "Informe de errores";
App::$strings["Report Bug"] = "Informe de errores";
<?php
$a->strings["Report Bug"] = "Signaler un bug";
App::$strings["Report Bug"] = "Signaler un bug";
<?php
$a->strings["Report Bug"] = "Tilkynna bilun";
App::$strings["Report Bug"] = "Tilkynna bilun";
<?php
$a->strings["Report Bug"] = "Segnala un Bug";
App::$strings["Report Bug"] = "Segnala un Bug";
<?php
$a->strings["Report Bug"] = "";
App::$strings["Report Bug"] = "";
<?php
$a->strings["Report Bug"] = "Zgłoś problem";
App::$strings["Report Bug"] = "Zgłoś problem";
<?php
$a->strings["Report Bug"] = "Relate um Bug";
App::$strings["Report Bug"] = "Relate um Bug";
<?php
$a->strings["Report Bug"] = "Сообщить об ошибке";
App::$strings["Report Bug"] = "Сообщить об ошибке";
<?php
$a->strings["Report Bug"] = "报案程序错误";
App::$strings["Report Bug"] = "报案程序错误";
......@@ -285,7 +285,7 @@ id.value = ""
</script>
EOT;
$a->page['htmlhead'] .= $x;
App::$page['htmlhead'] .= $x;
}
function calc_content($app) {
......
......@@ -24,7 +24,7 @@ logger('dfedfix: ' . print_r($b,true));
$x = str_replace('</Subject>','</Subject>
<Alias>' . z_root() . '/channel/' . $b['user']['channel_address'] . '</Alias>',$x);
$x = str_replace('.AQAB" />','.AQAB "/>
<Link rel="salmon" href="' . z_root() . '/receive/users/' . $b['user']['channel_guid'] . str_replace('.','',$a->get_hostname()) . '"/>',$x);
<Link rel="salmon" href="' . z_root() . '/receive/users/' . $b['user']['channel_guid'] . str_replace('.','',App::get_hostname()) . '"/>',$x);
$b['xml'] = $x;
}
......@@ -496,7 +496,7 @@ function diaspora_pubmsg_build($msg,$channel,$contact,$prvkey,$pubkey) {
logger('diaspora_pubmsg_build: ' . $msg, LOGGER_DATA, LOG_DEBUG);
$handle = $channel['channel_address'] . '@' . get_app()->get_hostname();
$handle = $channel['channel_address'] . '@' . App::get_hostname();
$b64url_data = base64url_encode($msg,false);
......@@ -561,7 +561,7 @@ function diaspora_msg_build($msg,$channel,$contact,$prvkey,$pubkey,$public = fal
$outer_iv = random_string(16);
$b_outer_iv = base64_encode($outer_iv);
$handle = $channel['channel_address'] . '@' . get_app()->get_hostname();
$handle = $channel['channel_address'] . '@' . App::get_hostname();
$padded_data = pkcs5_pad($msg,16);
$inner_encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $inner_aes_key, $padded_data, MCRYPT_MODE_CBC, $inner_iv);
......@@ -845,7 +845,7 @@ function diaspora_request($importer,$xml) {
//FIXME
/*
if(feature_enabled($channel['channel_id'],'premium_channel')) {
$myaddr = $importer['channel_address'] . '@' . get_app()->get_hostname();
$myaddr = $importer['channel_address'] . '@' . App::get_hostname();
$cnv = random_string();
$mid = random_string();
......@@ -2592,7 +2592,7 @@ function diaspora_unshare($owner,$contact) {
$tpl = get_markup_template('diaspora_retract.tpl','addon/diaspora');
$msg = replace_macros($tpl, array(
'$guid' => $owner['channel_guid'] . str_replace('.','',get_app()->get_hostname()),
'$guid' => $owner['channel_guid'] . str_replace('.','',App::get_hostname()),
'$type' => 'Person',
'$handle' => $myaddr
));
......@@ -2810,7 +2810,7 @@ function diaspora_send_images($item,$owner,$contact,$images,$public_batch = fals
function diaspora_send_followup($item,$owner,$contact,$public_batch = false) {
$a = get_app();
$myaddr = $owner['channel_address'] . '@' . get_app()->get_hostname();
$myaddr = $owner['channel_address'] . '@' . App::get_hostname();
$theiraddr = $contact['xchan_addr'];
// Diaspora doesn't support threaded comments, but some
......@@ -2902,7 +2902,7 @@ function diaspora_send_relay($item,$owner,$contact,$public_batch = false) {
$a = get_app();
$myaddr = $owner['channel_address'] . '@' . get_app()->get_hostname();
$myaddr = $owner['channel_address'] . '@' . App::get_hostname();
$text = bb2diaspora_itembody($item);
......@@ -3053,7 +3053,7 @@ function diaspora_send_relay($item,$owner,$contact,$public_batch = false) {
function diaspora_send_retraction($item,$owner,$contact,$public_batch = false) {
$a = get_app();
$myaddr = $owner['channel_address'] . '@' . get_app()->get_hostname();
$myaddr = $owner['channel_address'] . '@' . App::get_hostname();
// Check whether the retraction is for a top-level post or whether it's a relayable
if( $item['mid'] !== $item['parent_mid'] ) {
......@@ -3084,7 +3084,7 @@ function diaspora_send_retraction($item,$owner,$contact,$public_batch = false) {
function diaspora_send_mail($item,$owner,$contact) {
$a = get_app();
$myaddr = $owner['channel_address'] . '@' . get_app()->get_hostname();
$myaddr = $owner['channel_address'] . '@' . App::get_hostname();
$r = q("select * from conv where guid = '%s' and uid = %d limit 1",
dbesc($item['conv_guid']),
......@@ -3503,7 +3503,7 @@ function diaspora_profile_change($channel,$recip,$public_batch = false) {
return;
$profile = $r[0];
$handle = xmlify($channel['channel_address'] . '@' . get_app()->get_hostname());
$handle = xmlify($channel['channel_address'] . '@' . App::get_hostname());
$first = xmlify(((strpos($profile['channel_name'],' '))
? trim(substr($profile['channel_name'],0,strpos($profile['channel_name'],' '))) : $profile['channel_name']));
$last = xmlify((($first === $profile['channel_name']) ? '' : trim(substr($profile['channel_name'],strlen($first)))));
......
<?php
;
$a->strings["\$projectname"] = "\$projectname";
$a->strings["photo"] = "foto";
$a->strings["status"] = "status";
$a->strings["%1\$s likes %2\$s's %3\$s"] = "%1\$s vindt %2\$s's %3\$s leuk";
$a->strings["Please choose"] = "Maak een keuze";
$a->strings["Agree"] = "Eens";
$a->strings["Disagree"] = "Oneens";
$a->strings["Abstain"] = "Onthouding";
$a->strings["I will attend"] = "Aanwezig";
$a->strings["I will not attend"] = "Niet aanwezig";
$a->strings["I may attend"] = "Mogelijk aanwezig";
$a->strings["Diaspora Protocol Settings updated."] = "Diaspora-protocol-instellingen bijgewerkt.";
$a->strings["Enable the (experimental) Diaspora protocol for this channel"] = "Het (experimentele) Diaspora-protocol voor dit kanaal inschakelen";
$a->strings["Allow any Diaspora member to comment on your public posts"] = "Geef elk Diaspora-lid toestemming om op jouw openbare berichten te reageren";
$a->strings["Prevent your hashtags from being redirected to other sites"] = "Voorkom dat jouw hashtags naar andere websites worden doorverwezen";
$a->strings["Diaspora Protocol Settings"] = "Diaspora-protocol (compatibiliteit, incl Friendica)";
$a->strings["Submit"] = "Opslaan";
App::$strings["\$projectname"] = "\$projectname";
App::$strings["photo"] = "foto";
App::$strings["status"] = "status";
App::$strings["%1\$s likes %2\$s's %3\$s"] = "%1\$s vindt %2\$s's %3\$s leuk";
App::$strings["Please choose"] = "Maak een keuze";
App::$strings["Agree"] = "Eens";
App::$strings["Disagree"] = "Oneens";
App::$strings["Abstain"] = "Onthouding";
App::$strings["I will attend"] = "Aanwezig";
App::$strings["I will not attend"] = "Niet aanwezig";
App::$strings["I may attend"] = "Mogelijk aanwezig";
App::$strings["Diaspora Protocol Settings updated."] = "Diaspora-protocol-instellingen bijgewerkt.";
App::$strings["Enable the (experimental) Diaspora protocol for this channel"] = "Het (experimentele) Diaspora-protocol voor dit kanaal inschakelen";
App::$strings["Allow any Diaspora member to comment on your public posts"] = "Geef elk Diaspora-lid toestemming om op jouw openbare berichten te reageren";
App::$strings["Prevent your hashtags from being redirected to other sites"] = "Voorkom dat jouw hashtags naar andere websites worden doorverwezen";
App::$strings["Diaspora Protocol Settings"] = "Diaspora-protocol (compatibiliteit, incl Friendica)";
App::$strings["Submit"] = "Opslaan";
......@@ -28,7 +28,7 @@ function p_init(&$a) {
if(! $c)
http_status_exit(404);
$myaddr = $c[0]['channel_address'] . '@' . $a->get_hostname();
$myaddr = $c[0]['channel_address'] . '@' . App::get_hostname();
$item = $r[0];
......
......@@ -12,7 +12,7 @@ function receive_post(&$a) {
$public = false;
logger('diaspora_receive: ' . print_r($a->argv, true), LOGGER_DEBUG);
logger('diaspora_receive: ' . print_r(App::$argv, true), LOGGER_DEBUG);
if((argc() == 2) && (argv(1) === 'public')) {
$public = true;
......@@ -23,7 +23,7 @@ function receive_post(&$a) {
http_status_exit(500);
$guid = argv(2);
$hn = str_replace('.','',$a->get_hostname());
$hn = str_replace('.','',App::get_hostname());
if(($x = strpos($guid,$hn)) > 0)
$guid = substr($guid,0,$x);
......
......@@ -40,7 +40,7 @@ function diaspost_jot_nets(&$a,&$b) {
}
function diaspost_queue_hook(&$a,&$b) {
$hostname = $a->get_hostname();
$hostname = App::get_hostname();
$qi = q("SELECT * FROM `queue` WHERE `network` = '%s'",
dbesc(NETWORK_DIASPORA2)
......@@ -115,7 +115,7 @@ function diaspost_settings(&$a,&$s) {
/* Add our stylesheet to the page so we can make our settings look nice */
//$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . z_root() . '/addon/diaspost/diaspost.css' . '" media="all" />' . "\r\n";
//App::$page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . z_root() . '/addon/diaspost/diaspost.css' . '" media="all" />' . "\r\n";
/* Get the current state of our config variables */
......@@ -228,7 +228,7 @@ function diaspost_post_local(&$a,&$b) {
function diaspost_send(&$a,&$b) {
$hostname = 'hubzilla ' . '(' . $a->get_hostname() . ')';
$hostname = 'hubzilla ' . '(' . App::get_hostname() . ')';
logger('diaspost_send: invoked',LOGGER_DEBUG);
......@@ -328,11 +328,11 @@ function diaspost_send(&$a,&$b) {
// $r = q("SELECT `id` FROM `contact` WHERE `uid` = %d AND `self`", $b['uid']);
// if (count($r))
// $a->contact = $r[0]["id"];
// App::$contact = $r[0]["id"];
// $s = serialize(array('url' => $url, 'item' => $b['id'], 'post' => $body));
// require_once('include/queue_fn.php');
// add_to_queue($a->contact,NETWORK_DIASPORA2,$s);
// add_to_queue(App::$contact,NETWORK_DIASPORA2,$s);
// notice(t('Diaspost post failed. Queued for retry.').EOL);
}
}
......
......@@ -46,7 +46,7 @@ function dirstats_content(&$a) {
$chatrooms = get_config('dirstats','chatrooms');
$tags = get_config('dirstats','tags');
$ob = $a->get_observer();
$ob = App::get_observer();
$observer = $ob['xchan_hash'];
// Requested by Martin
$fountainofyouth = get_xconfig($observer, 'dirstats', 'averageage');
......
......@@ -51,7 +51,7 @@ function dwpost_settings(&$a,&$s) {
/* Add our stylesheet to the page so we can make our settings look nice */
//$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . z_root() . '/addon/dwpost/dwpost.css' . '" media="all" />' . "\r\n";
//App::$page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . z_root() . '/addon/dwpost/dwpost.css' . '" media="all" />' . "\r\n";
/* Get the current state of our config variables */
......
<?php
$a->strings["Post to Dreamwidth"] = "Missatge a Dreamwidth";
$a->strings["Dreamwidth Post Settings"] = "Configuració d'enviaments a Dreamwidth";
$a->strings["Enable dreamwidth Post Plugin"] = "Habilitat el plugin d'enviaments a Dreamwidth";
$a->strings["dreamwidth username"] = "Nom d'usuari a Dreamwidth";
$a->strings["dreamwidth password"] = "Contrasenya a Dreamwidth";
$a->strings["Post to dreamwidth by default"] = "Enviar per defecte a Dreamwidth";
$a->strings["Submit"] = "Enviar";
App::$strings["Post to Dreamwidth"] = "Missatge a Dreamwidth";
App::$strings["Dreamwidth Post Settings"] = "Configuració d'enviaments a Dreamwidth";
App::$strings["Enable dreamwidth Post Plugin"] = "Habilitat el plugin d'enviaments a Dreamwidth";
App::$strings["dreamwidth username"] = "Nom d'usuari a Dreamwidth";
App::$strings["dreamwidth password"] = "Contrasenya a Dreamwidth";
App::$strings["Post to dreamwidth by default"] = "Enviar per defecte a Dreamwidth";
App::$strings["Submit"] = "Enviar";
<?php
$a->strings["Post to Dreamwidth"] = "Poslat na Dreamwidth";
$a->strings["Dreamwidth Post Settings"] = "Nastavení Dreamwidth příspěvků";
$a->strings["Enable dreamwidth Post Plugin"] = "Povolit dreamwidth Plugin";
$a->strings["dreamwidth username"] = "dreamwidth uživatelské jméno";
$a->strings["dreamwidth password"] = "dreamwidth heslo";
$a->strings["Post to dreamwidth by default"] = "Defaultně umístit na dreamwidth";
$a->strings["Submit"] = "Odeslat";
App::$strings["Post to Dreamwidth"] = "Poslat na Dreamwidth";
App::$strings["Dreamwidth Post Settings"] = "Nastavení Dreamwidth příspěvků";
App::$strings["Enable dreamwidth Post Plugin"] = "Povolit dreamwidth Plugin";
App::$strings["dreamwidth username"] = "dreamwidth uživatelské jméno";
App::$strings["dreamwidth password"] = "dreamwidth heslo";
App::$strings["Post to dreamwidth by default"] = "Defaultně umístit na dreamwidth";
App::$strings["Submit"] = "Odeslat";
<?php
$a->strings["Post to Dreamwidth"] = "In Dreamwidth veröffentlichen";
$a->strings["Dreamwidth Post Settings"] = "Dreamwidth Veröffentlichungs-Einstellungen";
$a->strings["Enable dreamwidth Post Plugin"] = "Dreamwidth Post Plugin aktivieren";
$a->strings["dreamwidth username"] = "Dreamwidth Benutzername";
$a->strings["dreamwidth password"] = "Dreamwidth Passwort";
$a->strings["Post to dreamwidth by default"] = "Standardmäßig bei Dreamwidth veröffentlichen";
$a->strings["Submit"] = "Senden";
App::$strings["Post to Dreamwidth"] = "In Dreamwidth veröffentlichen";
App::$strings["Dreamwidth Post Settings"] = "Dreamwidth Veröffentlichungs-Einstellungen";
App::$strings["Enable dreamwidth Post Plugin"] = "Dreamwidth Post Plugin aktivieren";
App::$strings["dreamwidth username"] = "Dreamwidth Benutzername";
App::$strings["dreamwidth password"] = "Dreamwidth Passwort";
App::$strings["Post to dreamwidth by default"] = "Standardmäßig bei Dreamwidth veröffentlichen";
App::$strings["Submit"] = "Senden";
<?php
$a->strings["Post to Dreamwidth"] = "Afiŝi al Dreamwidth";
$a->strings["Dreamwidth Post Settings"] = "Agordoj por Afiŝoj al Dreamwidth";
$a->strings["Enable dreamwidth Post Plugin"] = "Ŝalti la Dreamwidth Kromprogramon";
$a->strings["dreamwidth username"] = "Dreamwidth salutnomo";
$a->strings["dreamwidth password"] = "Dreamwidth pasvorto";
$a->strings["Post to dreamwidth by default"] = "Defaŭlte afiŝi al Dreamwidth";
$a->strings["Submit"] = "Sendi";
App::$strings["Post to Dreamwidth"] = "Afiŝi al Dreamwidth";
App::$strings["Dreamwidth Post Settings"] = "Agordoj por Afiŝoj al Dreamwidth";
App::$strings["Enable dreamwidth Post Plugin"] = "Ŝalti la Dreamwidth Kromprogramon";
App::$strings["dreamwidth username"] = "Dreamwidth salutnomo";
App::$strings["dreamwidth password"] = "Dreamwidth pasvorto";
App::$strings["Post to dreamwidth by default"] = "Defaŭlte afiŝi al Dreamwidth";
App::$strings["Submit"] = "Sendi";
<?php
$a->strings["Post to Dreamwidth"] = "Publicar en Dreamwidth";
$a->strings["Dreamwidth Post Settings"] = "Configuración de las publicaciones en Dreamwidth";
$a->strings["Enable dreamwidth Post Plugin"] = "Activar el módulo de publicación en Dreamwidth";
$a->strings["dreamwidth username"] = "Nombre de usuario de Dreamwidth";
$a->strings["dreamwidth password"] = "Contraseña de Dreamwidth";
$a->strings["Post to dreamwidth by default"] = "Publicar en Dreamwidth por defecto";
$a->strings["Submit"] = "Envíar";
App::$strings["Post to Dreamwidth"] = "Publicar en Dreamwidth";
App::$strings["Dreamwidth Post Settings"] = "Configuración de las publicaciones en Dreamwidth";
App::$strings["Enable dreamwidth Post Plugin"] = "Activar el módulo de publicación en Dreamwidth";
App::$strings["dreamwidth username"] = "Nombre de usuario de Dreamwidth";
App::$strings["dreamwidth password"] = "Contraseña de Dreamwidth";
App::$strings["Post to dreamwidth by default"] = "Publicar en Dreamwidth por defecto";
App::$strings["Submit"] = "Envíar";
<?php
$a->strings["Post to Dreamwidth"] = "Poster vers Dreamwidth";
$a->strings["Dreamwidth Post Settings"] = "Réglages Dreamwidth";
$a->strings["Enable dreamwidth Post Plugin"] = "Activer \"Poster vers Dreamwidth\"";
$a->strings["dreamwidth username"] = "Nom d'utilisateur Dreamwidth";
$a->strings["dreamwidth password"] = "Mot de passe";
$a->strings["Post to dreamwidth by default"] = "Poster vers Dreamwidth par défaut";
$a->strings["Submit"] = "Envoyer";
App::$strings["Post to Dreamwidth"] = "Poster vers Dreamwidth";
App::$strings["Dreamwidth Post Settings"] = "Réglages Dreamwidth";
App::$strings["Enable dreamwidth Post Plugin"] = "Activer \"Poster vers Dreamwidth\"";
App::$strings["dreamwidth username"] = "Nom d'utilisateur Dreamwidth";
App::$strings["dreamwidth password"] = "Mot de passe";
App::$strings["Post to dreamwidth by default"] = "Poster vers Dreamwidth par défaut";
App::$strings["Submit"] = "Envoyer";
<?php
$a->strings["Post to Dreamwidth"] = "";
$a->strings["Dreamwidth Post Settings"] = "";
$a->strings["Enable dreamwidth Post Plugin"] = "";
$a->strings["dreamwidth username"] = "";
$a->strings["dreamwidth password"] = "";
$a->strings["Post to dreamwidth by default"] = "";
$a->strings["Submit"] = "Senda inn";
App::$strings["Post to Dreamwidth"] = "";
App::$strings["Dreamwidth Post Settings"] = "";
App::$strings["Enable dreamwidth Post Plugin"] = "";
App::$strings["dreamwidth username"] = "";
App::$strings["dreamwidth password"] = "";
App::$strings["Post to dreamwidth by default"] = "";
App::$strings["Submit"] = "Senda inn";
<?php
$a->strings["Post to Dreamwidth"] = "Posta su Dreamwidth";
$a->strings["Dreamwidth Post Settings"] = "Impostazioni post Dreamwidth";
$a->strings["Enable dreamwidth Post Plugin"] = "Abilita il plugin dreamwidth";
$a->strings["dreamwidth username"] = "dreamwidth username";
$a->strings["dreamwidth password"] = "Password dreamwidth";
$a->strings["Post to dreamwidth by default"] = "Invia a dreamwidth per impostazione predefinita";
$a->strings["Submit"] = "Invia";
App::$strings["Post to Dreamwidth"] = "Posta su Dreamwidth";
App::$strings["Dreamwidth Post Settings"] = "Impostazioni post Dreamwidth";
App::$strings["Enable dreamwidth Post Plugin"] = "Abilita il plugin dreamwidth";
App::$strings["dreamwidth username"] = "dreamwidth username";
App::$strings["dreamwidth password"] = "Password dreamwidth";
App::$strings["Post to dreamwidth by default"] = "Invia a dreamwidth per impostazione predefinita";
App::$strings["Submit"] = "Invia";
<?php
$a->strings["Post to Dreamwidth"] = "";
$a->strings["Dreamwidth Post Settings"] = "";
$a->strings["Enable dreamwidth Post Plugin"] = "";
$a->strings["dreamwidth username"] = "";
$a->strings["dreamwidth password"] = "";
$a->strings["Post to dreamwidth by default"] = "";
$a->strings["Submit"] = "Lagre";
App::$strings["Post to Dreamwidth"] = "";
App::$strings["Dreamwidth Post Settings"] = "";
App::$strings["Enable dreamwidth Post Plugin"] = "";
App::$strings["dreamwidth username"] = "";
App::$strings["dreamwidth password"] = "";
App::$strings["Post to dreamwidth by default"] = "";
App::$strings["Submit"] = "Lagre";
<?php
$a->strings["Post to Dreamwidth"] = "Opublikuj na Dreamwidth";
$a->strings["Dreamwidth Post Settings"] = "";
$a->strings["Enable dreamwidth Post Plugin"] = "";
$a->strings["dreamwidth username"] = "";
$a->strings["dreamwidth password"] = "";
$a->strings["Post to dreamwidth by default"] = "";
$a->strings["Submit"] = "Potwierdź";
App::$strings["Post to Dreamwidth"] = "Opublikuj na Dreamwidth";
App::$strings["Dreamwidth Post Settings"] = "";
App::$strings["Enable dreamwidth Post Plugin"] = "";
App::$strings["dreamwidth username"] = "";
App::$strings["dreamwidth password"] = "";
App::$strings["Post to dreamwidth by default"] = "";
App::$strings["Submit"] = "Potwierdź";
<?php
$a->strings["Post to Dreamwidth"] = "Publicar no Dreamwidth";
$a->strings["Dreamwidth Post Settings"] = "Configurações de publicação no Dreamwidth";
$a->strings["Enable dreamwidth Post Plugin"] = "Habilitar o plugin de publicação no Dreamwidth";
$a->strings["dreamwidth username"] = "Nome de usuário do Dreamwidth";
$a->strings["dreamwidth password"] = "Senha do Dreamwidth";
$a->strings["Post to dreamwidth by default"] = "Publicar no Dreamwidth por padrão";
$a->strings["Submit"] = "Enviar";
App::$strings["Post to Dreamwidth"] = "Publicar no Dreamwidth";
App::$strings["Dreamwidth Post Settings"] = "Configurações de publicação no Dreamwidth";
App::$strings["Enable dreamwidth Post Plugin"] = "Habilitar o plugin de publicação no Dreamwidth";
App::$strings["dreamwidth username"] = "Nome de usuário do Dreamwidth";
App::$strings["dreamwidth password"] = "Senha do Dreamwidth";
App::$strings["Post to dreamwidth by default"] = "Publicar no Dreamwidth por padrão";
App::$strings["Submit"] = "Enviar";
<?php
$a->strings["Post to Dreamwidth"] = "";
$a->strings["Dreamwidth Post Settings"] = "Dreamwidth настройки сообщений";
$a->strings["Enable dreamwidth Post Plugin"] = "Включить dreamwidth плагин сообщений";
$a->strings["dreamwidth username"] = "dreamwidth имя пользователя";
$a->strings["dreamwidth password"] = "dreamwidth пароль";
$a->strings["Post to dreamwidth by default"] = "";
$a->strings["Submit"] = "Подтвердить";
App::$strings["Post to Dreamwidth"] = "";
App::$strings["Dreamwidth Post Settings"] = "Dreamwidth настройки сообщений";
App::$strings["Enable dreamwidth Post Plugin"] = "Включить dreamwidth плагин сообщений";
App::$strings["dreamwidth username"] = "dreamwidth имя пользователя";
App::$strings["dreamwidth password"] = "dreamwidth пароль";
App::$strings["Post to dreamwidth by default"] = "";
App::$strings["Submit"] = "Подтвердить";
<?php
$a->strings["Submit"] = "Spara";
App::$strings["Submit"] = "Spara";
<?php
$a->strings["Post to Dreamwidth"] = "转播到Dreamwidth";
$a->strings["Dreamwidth Post Settings"] = "Dreamwidth转播设置";
$a->strings["Enable dreamwidth Post Plugin"] = "使Dreamwidth转播插件可用";
$a->strings["dreamwidth username"] = "Dreamwidth用户名";
$a->strings["dreamwidth password"] = "Dreamwidth密码";
$a->strings["Post to dreamwidth by default"] = "默认地转播到Dreamwidth";
$a->strings["Submit"] = "提交";
App::$strings["Post to Dreamwidth"] = "转播到Dreamwidth";
App::$strings["Dreamwidth Post Settings"] = "Dreamwidth转播设置";
App::$strings["Enable dreamwidth Post Plugin"] = "使Dreamwidth转播插件可用";
App::$strings["dreamwidth username"] = "Dreamwidth用户名";
App::$strings["dreamwidth password"] = "Dreamwidth密码";
App::$strings["Post to dreamwidth by default"] = "默认地转播到Dreamwidth";
App::$strings["Submit"] = "提交";
......@@ -25,11 +25,11 @@ function flattrwidget_unload() {
function flattrwidget_construct_page(&$a,&$b) {
if (! $b['module']=='channel')
return;
$id = $a->profile['profile_uid'];
$id = App::$profile['profile_uid'];
$enable = intval(get_pconfig($id,'flattrwidget','enable'));
if (! $enable)
return;
$a->page['htmlhead'] .= '<link rel="stylesheet" href="'.z_root().'/addon/flattrwidget/style.css'.'" media="all" />';
App::$page['htmlhead'] .= '<link rel="stylesheet" href="'.z_root().'/addon/flattrwidget/style.css'.'" media="all" />';
// get alignment and static/dynamic from the settings
// align is either "aside" or "right_aside"
// sd is either static or dynamic
......@@ -65,7 +65,7 @@ function flattrwidget_construct_page(&$a,&$b) {
function flattrwidget_settings_post($a,$s) {
if(! local_channel() || (! x($_POST,'flattrwidget-submit')))
return;
$c = $a->get_channel();
$c = App::get_channel();
set_pconfig( local_channel(), 'flattrwidget', 'align', $_POST['flattrwidget-align'] );
set_pconfig( local_channel(), 'flattrwidget', 'sd', $_POST['flattrwidget-static'] );
$thing = $_POST['flattrwidget-thing'];
......@@ -87,7 +87,7 @@ function flattrwidget_settings(&$a,&$s) {
if (! $id)
return;
//$a->page['htmlhead'] .= '<link rel="stylesheet" href="'.z_root().'/addon/flattrwidget/style.css'.'" media="all" />';