diff --git a/altpager/admin.tpl b/altpager/admin.tpl new file mode 100755 index 00000000..60558808 --- /dev/null +++ b/altpager/admin.tpl @@ -0,0 +1,3 @@ +{{ inc field_radio.tpl with $field=$global }}{{ endinc }} +{{ inc field_radio.tpl with $field=$individual }}{{ endinc }} +
diff --git a/altpager/altpager.php b/altpager/altpager.php index 65f9c0d8..f5ccbe4d 100755 --- a/altpager/altpager.php +++ b/altpager/altpager.php @@ -61,6 +61,10 @@ function altpager_settings(&$a,&$s) { if(! local_user()) return; + $global = get_config("alt_pager", "global"); + if($global == 1) + return; + /* Add our stylesheet to the page so we can make our settings look nice */ $a->page['htmlhead'] .= '' . "\r\n"; @@ -87,3 +91,18 @@ function altpager_settings(&$a,&$s) { $s .= '
'; } + +function altpager_plugin_admin(&$a, &$o){ + $t = file_get_contents( $a->get_baseurl() . "/addon/altpager/admin.tpl" ); + $o = replace_macros($t, array( + '$submit' => t('Submit'), + '$global' => array('altpagerchoice', t('Global'), 1, t('Force global use of the alternate pager'), get_config('alt_pager', 'global') == 1), + '$individual' => array('altpagerchoice', t('Individual'), 2, t('Each user chooses whether to use the alternate pager'), get_config('alt_pager', 'global') == 0) + )); +} + +function altpager_plugin_admin_post(&$a){ + $choice = ((x($_POST,'altpagerchoice')) ? notags(trim($_POST['altpagerchoice'])) : ''); + set_config('alt_pager','global',($choice == 1 ? 1 : 0)); + info( t('Settings updated.'). EOL ); +} diff --git a/convert.tgz b/convert.tgz index 56e0080c..766eaf7a 100755 Binary files a/convert.tgz and b/convert.tgz differ diff --git a/editplain.tgz b/editplain.tgz index be813177..0f2b95d0 100644 Binary files a/editplain.tgz and b/editplain.tgz differ diff --git a/editplain/editplain.php b/editplain/editplain.php index 7d91c295..966e2d8f 100755 --- a/editplain/editplain.php +++ b/editplain/editplain.php @@ -1,7 +1,7 @@ * diff --git a/fbpost.tgz b/fbpost.tgz index c60a6c06..ded32e19 100644 Binary files a/fbpost.tgz and b/fbpost.tgz differ diff --git a/forumlist.tgz b/forumlist.tgz index fe559f33..cbcf0fbd 100644 Binary files a/forumlist.tgz and b/forumlist.tgz differ diff --git a/js_upload.tgz b/js_upload.tgz index 98e16c5a..5a415de7 100755 Binary files a/js_upload.tgz and b/js_upload.tgz differ diff --git a/js_upload/js_upload.php b/js_upload/js_upload.php index 3ba5f9c4..148fde31 100755 --- a/js_upload/js_upload.php +++ b/js_upload/js_upload.php @@ -196,7 +196,13 @@ class qqUploadedFileXhr { */ function save() { $input = fopen("php://input", "r"); - $this->pathnm = tempnam(sys_get_temp_dir(),'frn'); + + $upload_dir = get_config('system','tempdir'); + if(! $upload_dir) + $upload_dir = sys_get_temp_dir(); + + $this->pathnm = tempnam($upload_dir,'frn'); + $temp = fopen($this->pathnm,"w"); $realSize = stream_copy_to_stream($input, $temp); diff --git a/ljpost/ljpost.css b/ljpost/ljpost.css index 2087d3f0..e0494c5c 100755 --- a/ljpost/ljpost.css +++ b/ljpost/ljpost.css @@ -1,6 +1,5 @@ #ljpost-enable-label, #ljpost-username-label, #ljpost-password-label, #ljpost-bydefault-label { -<<<<<<< HEAD float: left; width: 200px; margin-top: 10px; @@ -15,18 +14,3 @@ margin-top: 15px; } -======= -float: left; -width: 200px; -margin-top: 10px; -} - -#ljpost-checkbox, #ljpost-username, #ljpost-password, #ljpost-bydefault { -float: left; -margin-top: 10px; -} - -#ljpost-submit { -margin-top: 15px; -} ->>>>>>> 99d9fddb6af9e872266666038447771e42ce13b4 diff --git a/openstreetmap.tgz b/openstreetmap.tgz index 34f4bd6b..c195d151 100644 Binary files a/openstreetmap.tgz and b/openstreetmap.tgz differ diff --git a/page.tgz b/page.tgz index 21dab7b9..02140ce9 100644 Binary files a/page.tgz and b/page.tgz differ diff --git a/page/page.php b/page/page.php index 0e009098..21a83e16 100755 --- a/page/page.php +++ b/page/page.php @@ -1,7 +1,7 @@ * based on pages plugin by diff --git a/privacy_image_cache.tgz b/privacy_image_cache.tgz index b4c10080..8441ab65 100644 Binary files a/privacy_image_cache.tgz and b/privacy_image_cache.tgz differ diff --git a/smiley_pack.tgz b/smiley_pack.tgz index fe2689ca..2efe6332 100644 Binary files a/smiley_pack.tgz and b/smiley_pack.tgz differ diff --git a/statusnet.tgz b/statusnet.tgz index c171f2c3..72b6e928 100755 Binary files a/statusnet.tgz and b/statusnet.tgz differ diff --git a/twitter.tgz b/twitter.tgz index beeea2be..539ded93 100755 Binary files a/twitter.tgz and b/twitter.tgz differ