예제 #1
0
function plugin_new_init()
{
    // Elapsed time => New! message with CSS
    $messages['_plugin_new_elapses'] = array(60 * 60 * 24 * 1 => ' <span class="new1" title="%s">New!</span>', 60 * 60 * 24 * 5 => ' <span class="new5" title="%s">New</span>');
    // 5days
    set_plugin_messages($messages);
}
function weblog_msg_init()
{
    if (LANG == 'ja') {
        $messages = array('_weblog_msgs' => array('lbl_author' => 'お名前:', 'lbl_category' => 'カテゴリ:', 'lbl_subject' => 'タイトル:', 'lbl_comment' => 'コメント', 'send_trackback_ping' => 'トラックバック先:', 'allow_comment' => 'コメントを許可する:', 'auto_br' => '自動改行を行う:', 'update_stamp' => 'タイムスタンプを更新する:', 'lbl_yes' => 'はい', 'lbl_no' => 'いいえ', 'lbl_by' => '投稿者:', 'lbl_at' => '投稿日時:', 'lbl_daily_header' => '日付別', 'lbl_new_title' => '%sへの投稿', 'btn_post' => 'write:', 'btn_submit' => '投稿する', 'btn_edit' => '記事編集', 'no_name' => '匿名希望', 'no_subject' => '(無題)', 'fmt_day' => 'm月d日', 'fmt_month' => 'Y年m月', 'fmt_fullday' => 'Y年m月d日', 'fmt_time' => 'H時i分', 'fmt_fulltime' => 'H時i分s秒', 'message_sent' => '投稿記事の保存中です。', 'message_sent_complete' => '投稿記事の保存中が完了しました。', 'message_ping' => 'TrackBack Pingを送信中です。', 'message_disable_comment' => 'コメントの投稿は許可されてません。', 'err_msg_nomsg' => '記事が空です。', 'err_msg_noauth' => '記事を投稿する権限がありません。', 'err_msg_notemplate' => 'テンプレートが見つかりません。(%s)', 'err_msg_noconf' => 'コンフィグファイルが見つかりません。(%s)', 'err_msg_arg2' => '第二引数が変です。', 'err_msg_noargs' => '引数を指定してください。', 'err_nopages' => '<p>\'$1\' には、下位層のページがありません。</p>', 'msg_title' => '\'$1\'で始まるページの一覧', 'msg_go' => '<span class="small">...</span>', 'msg_daily' => '%s%sの投稿(%d件)'));
    } else {
        $messages = array('_weblog_msgs' => array('lbl_author' => 'Name:', 'lbl_category' => 'Category:', 'lbl_subject' => 'Title:', 'lbl_comment' => 'Comment', 'send_trackback_ping' => 'Send Trackback Ping:', 'allow_comment' => 'Allow Comment:', 'auto_br' => 'Auto BR:', 'update_stamp' => 'Update Timestamp:', 'lbl_yes' => 'Yes', 'lbl_no' => 'No', 'lbl_by' => 'by', 'lbl_at' => 'at', 'lbl_daily_header' => 'Daily Archieve', 'lbl_new_title' => 'New Posting to %s', 'btn_post' => 'write:', 'btn_submit' => 'Post Aritcle', 'btn_edit' => 'Edit', 'no_name' => 'No Name', 'no_subject' => 'No Subject', 'fmt_day' => 'm/d', 'fmt_month' => 'Y/m', 'fmt_fullday' => 'Y/m/d', 'fmt_time' => 'H:i', 'fmt_fulltime' => 'H:i:s', 'message_sent' => 'Saving Message.', 'message_ping' => 'Sending TrackBack Ping.', 'err_msg_nomsg' => 'Posted message is empty.', 'err_msg_noauth' => 'You can\'t post article.', 'err_msg_arg2' => '2nd parameter isn\'t valid.', 'err_msg_noargs' => 'Please specify parameters.', 'err_nopages' => '<p>\'$1\' has no child page.</p>', 'msg_title' => 'Page Listing begining from \'$1\'', 'msg_go' => '<span class="small">...</span>'));
    }
    set_plugin_messages($messages);
}
예제 #3
0
function plugin_stationary_init()
{
    if (PKWK_SAFE_MODE || PKWK_READONLY) {
        return;
    }
    // Do nothing
    $messages = array('_plugin_stationary_A' => 'a', '_plugin_stationary_B' => array('C' => 'c', 'D' => 'd'));
    set_plugin_messages($messages);
}
예제 #4
0
function plugin_movieviewer_set_global_settings()
{
    $settings = plugin_movieviewer_load_settings();
    $cfg = array("movieviewer_settings" => $settings);
    // $GLOBALSに値が保存される
    set_plugin_messages($cfg);
    // CSRF対策用トークンを生成し、セッションに登録する
    plugin_movieviewer_set_csrf_token();
}
예제 #5
0
function plugin_attachref_init()
{
    global $_string;
    $messages = array('_attachref_messages' => array('msg_upload' => T_("Upload to \$1"), 'msg_maxsize' => T_("Maximum file size is <var>%s</var>."), 'msg_adminpass' => T_("Administrator password"), 'msg_password' => T_("password"), 'msg_file' => T_("Attach file"), 'btn_upload' => T_("Upload"), 'btn_submit' => T_("[Upload]"), 'msg_title' => T_("Attach and Ref to \$1"), 'msg_title_collided' => $_string['title_collided'], 'msg_collided' => $_string['msg_collided']));
    PluginRenderer::getPluginInfo('attach', true);
    if (!exist_plugin('attach') or !function_exists('attach_upload')) {
        return array('msg' => 'attach.inc.php not found or not correct version.');
    }
    set_plugin_messages($messages);
}
예제 #6
0
function plugin_stationary_init()
{
    // if (PKWK_SAFE_MODE || PKWK_READONLY) return; // Do nothing
    if (Auth::check_role('safemode') || Auth::check_role('readonly')) {
        return;
    }
    // Do nothing
    $messages = array('_plugin_stationary_A' => 'a', '_plugin_stationary_B' => array('C' => 'c', 'D' => 'd'));
    set_plugin_messages($messages);
}
예제 #7
0
function plugin_amazon_init()
{
    global $amazon_body, $stat, $keys, $genre;
    $stat = 0;
    $keys = array();
    $genre = array("books", "videogames", "dvd", "music");
    $amazon_body = sprintf("-" . _("Author") . ": [[" . _("THIS EDIT") . "]]\n" . "-" . _("Critic") . ": " . _("MY_NAME") . "\n" . "-" . _("Date") . ": &date;\n" . "**" . _("RECOMMENDATION") . "\n" . "[[" . _("THIS EDIT") . "]]\n" . "\n" . "#amazon(,clear)\n" . "**" . _("Impression") . "\n" . "[[" . _("THIS EDIT") . "]]\n" . "\n" . _("// First of all, please delete the full text when you stop this review, and push the [update] button on the page.\n") . _("// (It has already been registered in PukiWiki.)\n") . _("// Please delete the [[THIS EDIT]] part on including parentheses, and rewrite it if you continue.\n") . _("// Please change the MY_NAME part to my name.\n") . _("// **RECOMMENDATION Above, please do not add a new line. Because it uses it for the contents making.\n") . _("// Please cut all the comment lines that start in // finally.\n") . _("// There is a possibility that contents cannot be normally made.\n") . "#comment\n");
    $msg = array('_amazon_msg' => array('msg_ReviewEdit' => _("Review edit"), 'msg_Code' => _("(ISBN(10) or ASIN(12))"), 'msg_Cargo' => _("To the shopping basket"), 'msg_Price' => _("Price"), 'msg_FixedPrice' => _("Fixed price"), 'msg_Tax' => _("(Including tax)"), 'msg_BookReviewEdit' => _("Book review edit"), 'msg_amazon' => _("Amazon.co.jp associate"), 'msg_Relation' => _("Relation")));
    set_plugin_messages($msg);
}
예제 #8
0
function plugin_update_entities_init()
{
    $messages = array('_entities_messages' => array('title_update' => 'キャッシュ更新', 'msg_adminpass' => '管理者パスワード', 'btn_submit' => '実行', 'msg_done' => 'キャッシュの更新が完了しました。', 'msg_usage' => '
* 処理内容

:文字実体参照にマッチする正規表現パターンのキャッシュを更新|
PHPの持つテーブルおよびW3CのDTDをスキャンして、キャッシュに記録します。

* 処理対象
「COLOR(red){not found.}」と表示されたファイルは処理されません。
-%s

* 実行
管理者パスワードを入力して、[実行]ボタンをクリックしてください。
'));
    set_plugin_messages($messages);
}
예제 #9
0
function plugin_update_entities_init()
{
    $messages = array('_entities_messages' => array('title_update' => 'キャッシュ更新', 'msg_adminpass' => '管理者パスワード', 'btn_submit' => '実行', 'msg_done' => 'キャッシュの更新が完了しました。', 'msg_usage' => '
&size(16){&color(red){【お知らせ】};};
 &size(16){&color(red){ページを開いただけでは、作業は行われていません};};
 &size(16){&color(red){ページ末尾で、管理者パスワードを入力し、「実行ボタン」を押して下さい};};

* 処理内容

:文字実体参照にマッチする正規表現パターンのキャッシュを更新|
PHPの持つテーブルおよびW3CのDTDをスキャンして、キャッシュに記録します。

* 処理対象
「COLOR(red){not found.}」と表示されたファイルは処理されません。
-%s

* 実行
管理者パスワードを入力して、[実行]ボタンをクリックしてください。
'));
    set_plugin_messages($messages);
}
예제 #10
0
function plugin_auth_mixi_init()
{
    $msg = array('_auth_mixi_msg' => array('msg_agreement' => _("It is necessary to agree to the guideline that mixi provides to use this plugin."), 'msg_invalid' => _("The function of opeind is invalid.")));
    set_plugin_messages($msg);
}
예제 #11
0
function plugin_links_init()
{
    $messages = array('_links_messages' => array('title_update' => 'キャッシュ更新', 'msg_adminpass' => '管理者パスワード', 'btn_submit' => '実行', 'msg_done' => 'キャッシュの更新が完了しました。', 'msg_usage' => "\n* 処理内容\n\n:キャッシュを更新|\n全てのページをスキャンし、あるページがどのページからリンクされているかを調査して、キャッシュに記録します。\n\n* 注意\n実行には数分かかる場合もあります。実行ボタンを押したあと、しばらくお待ちください。\n\n* 実行\n管理者パスワードを入力して、[実行]ボタンをクリックしてください。\n"));
    set_plugin_messages($messages);
}
function plugin_contents2_1_init()
{
    $messages['_contents2_1_msg_err'] = '<div>\'%s\' does not exist.</div>';
    set_plugin_messages($messages);
}
예제 #13
0
function plugin_login_init()
{
    $messages = array('_login_msg' => array('msg_username' => _('UserName'), 'msg_auth_guide' => _('Please attest it with %s to write the comment.'), 'btn_login' => _('Login')));
    set_plugin_messages($messages);
}
예제 #14
0
function plugin_ls2_1_init()
{
    // できるだけ new プラグインの設定を用いる (new オプション用)
    if (is_file(PLUGIN_DIR . 'new.inc.php')) {
        require_once PLUGIN_DIR . 'new.inc.php';
        plugin_new_init();
    } else {
        $messages['_plugin_new_elapses'] = array(60 * 60 * 24 * 1 => ' <span class="new1" title="%s">New!</span>', 60 * 60 * 24 * 5 => ' <span class="new5" title="%s">New</span>');
        // 5days
        set_plugin_messages($messages);
    }
}
/**
 * 初期処理
 */
function plugin_log_guess_user_init()
{
    $messages = array('_log_guess_user_msg' => array('msg_put' => _('<div>PUT: %s</div>')));
    set_plugin_messages($messages);
}
예제 #16
0
function plugin_paint_init()
{
    $messages = array('_paint_messages' => array('field_name' => _('Name'), 'field_filename' => _('Filename'), 'field_comment' => _('Comment'), 'btn_submit' => _('paint'), 'msg_max' => _('(Max %d x %d)'), 'msg_title' => _('Paint and Attach to  $1'), 'msg_title_collided' => _('On updating  $1, there was a collision.'), 'msg_collided' => _('It seems that someone has already updated this page while you were editing it.<br />
		 The picture and the comment were added to this page, but there may be a problem.<br />')));
    set_plugin_messages($messages);
}
예제 #17
0
function plugin_csv2newpage_init()
{
    $messages = array('_csv2newpage_messages' => array('btn_submit' => T_('Exec'), 'title_text' => T_('New page generation:'), 'btn_upload' => T_('Attache & Exec'), 'msg_file' => T_('CSV File:'), 'msg_maxsize' => T_('Maximum file size is %s.'), 'msg_password' => T_('password'), 'msg_adminpass' => T_('Administrator password')));
    set_plugin_messages($messages);
}
예제 #18
0
파일: listbox.inc.php 프로젝트: big2men/qhm
function plugin_listbox_init()
{
    $cfg = array('_listbox_cfg' => array('imgEdit' => 'paraedit.png', 'imgRefer' => 'close-mini.png'));
    set_plugin_messages($cfg);
}
예제 #19
0
function plugin_htdigest_init()
{
    $msg = array('_htdigest_msg' => array('realm' => T_("realm"), 'UserName' => T_("UserName"), 'Passwd' => T_("Passwd"), 'Calculate' => T_("Calculate"), 'CALC' => T_("CALC"), 'Update' => T_("Update"), 'Result' => T_("Result"), 'Crypt' => T_("Encryption key"), 'msg_pass_admin' => T_("Please input Administrator password."), 'msg_pass_old' => T_("Please input the password being used now."), 'msg_pass_new' => T_("Please input a new password."), 'msg_iis' => T_("It doesn't correspond to IIS of Microsoft Corporation."), 'err_not_use' => T_("The writing function is limited."), 'err_role' => T_("The authority more than Webmaster for World Wide Web Site is necessary to update it."), 'err_key' => T_("The encryption key is not corresponding."), 'err_md5' => T_("In this version, the Administrator password is supported only with {x-php-md5}."), 'msg_realm' => T_("Realm is not corresponding."), 'msg_1st' => T_("It newly made .htdigest."), 'msg_not_update' => T_("Because the password was the same, it did not update it."), 'msg_update' => T_("It updated .htdigest."), 'msg_add' => T_("One was added."), 'msg_err' => T_("ERROR.")));
    set_plugin_messages($msg);
}
예제 #20
0
function plugin_ajaxtree_init()
{
    $messages['_ajaxtree_messages'] = array('title' => 'サイトナビ', 'toppage' => 'ホーム');
    set_plugin_messages($messages);
}
예제 #21
0
function plugin_referer_init()
{
    $messages = array('_referer_msg' => array('msg_H0_Refer' => _('Referer'), 'msg_Hed_LastUpdate' => _('LastUpdate'), 'msg_Hed_1stDate' => _('First Register'), 'msg_Hed_RefCounter' => _('RefCounter'), 'msg_Hed_Referer' => _('Referer'), 'msg_Fmt_Date' => _('F j, Y, g:i A'), 'msg_Chr_uarr' => _('&uArr;'), 'msg_Chr_darr' => _('&dArr;')));
    set_plugin_messages($messages);
}
예제 #22
0
function plugin_article_init()
{
    global $_string;
    $msg = array('_article_msg' => array('title_updated' => $_string['updated'], 'title_collided' => $_string['title_collided'], 'msg_collided' => $_string['msg_collided'], 'msg_article_mail_sender' => T_('Author: '), 'msg_article_mail_page' => T_('Page: '), 'form_name' => T_('Name: '), 'form_subject' => T_('Subject: '), 'form_msg' => T_('Message: '), 'btn_submit' => T_('Submit')));
    set_plugin_messages($msg);
}
예제 #23
0
function plugin_replace_init()
{
    global $_replace_msg;
    $messages = array('_replace_msg' => array('msg_input_pass' => _('Please input the retrieval character string, the substitution character string, and the password for the Administrator.'), 'msg_input_str' => _('Please input the retrieval character string, the substitution character string.'), 'msg_input_search_word' => _('Retrieval character string:'), 'msg_input_replace_word' => _('Substitution character string:'), 'btn_exec' => _('Exec'), 'msg_warn_pass' => _('SECURITY ERROR:') . _('It remains as the Administrator password distributes it.') . _('Please change the password.'), 'msg_no_pass' => _('The password is wrong.'), 'msg_no_search' => _('The retrieval character string to substitute it is empty.'), 'msg_H0_replace' => _('All page character string substitution'), 'msg_no_replaced' => _('There is no substituted character string.'), 'msg_replaced' => _('The following pages were substituted.'), 'msg_H0_replaced' => _('Replaced.'), 'msg_H0_no_data' => _('No search data.')));
    set_plugin_messages($messages);
}
예제 #24
0
function plugin_linklist_init()
{
    $msg = array('_linklist_msg' => array('h5_title' => _('Auto Mutual link'), 'title' => _('Auto Mutual link of %s'), 'not_effective' => _('The function of Referer is not effective.'), 'no_data' => _('no data.')));
    set_plugin_messages($msg);
}
예제 #25
0
function plugin_rss_init()
{
    $msg = array('_rss_msg' => array('msg_description' => T_('Recent changes of %s')));
    set_plugin_messages($msg);
}
예제 #26
0
function plugin_edit_init()
{
    global $_string;
    $msg = array('_edit_msg' => array('msg_edit' => T_('Edit'), 'err_empty_page' => T_('Pagename is missing.'), 'title_edit' => T_('Edit of %s'), 'err_long' => T_('Pagename is too long.'), 'title_preview' => T_('Preview of %s'), 'msg_preview' => T_('To confirm the changes, click the button at the bottom of the page'), 'msg_preview_delete' => T_('(The contents of the page are empty. Updating deletes this page.)'), 'title_deleted' => T_(' $1 was deleted'), 'msg_invalidpass' => $_string['invalidpass']));
    set_plugin_messages($msg);
}
예제 #27
0
function plugin_unfreeze_init()
{
    global $_string;
    $msg = array('_unfreeze_msg' => array('title_isunfreezed' => T_(' $1 is not frozen'), 'title_unfreezed' => T_(' $1 has been unfrozen.'), 'title_freeze' => T_('Unfreeze  $1'), 'title_disabled' => T_('Unfreeze function is disabled.'), 'title_unfreeze' => $_string['invalidpass'], 'msg_unfreezing' => T_('Please input the password for unfreezing.'), 'btn_unfreeze' => T_('Unfreeze')));
    set_plugin_messages($msg);
}
예제 #28
0
function plugin_rename_init()
{
    $messages = array('_rename_messages' => array('err' => T_('Error:%s'), 'err_nomatch' => T_('no matching page(s)'), 'err_notvalid' => T_('the new name is invalid.'), 'err_adminpass' => T_('Incorrect administrator password.'), 'err_notpage' => T_('%s is not a valid pagename.'), 'err_norename' => T_('cannot rename %s.'), 'err_already' => T_('already exists :%s.'), 'err_already_below' => T_('The following files already exist.'), 'msg_title' => T_('Rename page'), 'msg_page' => T_('specify source page name'), 'msg_regex' => T_('rename with regular expressions.'), 'msg_related' => T_('related pages'), 'msg_do_related' => T_('A related page is also renamed.'), 'msg_rename' => T_('rename %s'), 'msg_oldname' => T_('current page name'), 'msg_newname' => T_('new page name'), 'msg_adminpass' => T_('Administrator password'), 'msg_arrow' => T_('->'), 'msg_exist_none' => T_('page is not processed when it already exists.'), 'msg_exist_overwrite' => T_('page is overwritten when it already exists.'), 'msg_confirm' => T_('The following files will be renamed.'), 'msg_result' => T_('The following files have been overwritten.'), 'btn_submit' => T_('Submit'), 'btn_next' => T_('Next')));
    set_plugin_messages($messages);
}
예제 #29
0
function plugin_role_init()
{
    $msg = array('_role_msg' => array('role' => _('Role'), 'role_0' => _('Guest'), 'role_2' => _('Webmaster'), 'role_3' => _('Contents manager'), 'role_4' => _('Enrollee'), 'role_5' => _('Authorized')));
    set_plugin_messages($msg);
}
예제 #30
0
/**
 * 初期処理
 */
function plugin_log_whois_init()
{
    $messages = array('_log_whois_msg' => array('msg_whois' => _('<div>Mr/Ms %s ?</div>')));
    set_plugin_messages($messages);
}