[geeklog-jp commit] r443 - in trunk/plugins/nmoxtopicown: . admin language

Back to archive index

codes****@googl***** codes****@googl*****
2008年 9月 9日 (火) 16:16:24 JST


Author: nmox.nan
Date: Tue Sep  9 00:13:38 2008
New Revision: 443

Added:
    trunk/plugins/nmoxtopicown/
    trunk/plugins/nmoxtopicown/admin/
    trunk/plugins/nmoxtopicown/admin/index.php   (contents, props changed)
    trunk/plugins/nmoxtopicown/admin/install.php   (contents, props changed)
    trunk/plugins/nmoxtopicown/config.php   (contents, props changed)
    trunk/plugins/nmoxtopicown/functions.inc   (contents, props changed)
    trunk/plugins/nmoxtopicown/language/
    trunk/plugins/nmoxtopicown/language/english.php   (contents, props  
changed)
    trunk/plugins/nmoxtopicown/language/english_utf-8.php   (contents, props  
changed)
    trunk/plugins/nmoxtopicown/language/japanese.php   (contents, props  
changed)
    trunk/plugins/nmoxtopicown/language/japanese_utf-8.php   (contents,  
props changed)
    trunk/plugins/nmoxtopicown/readme_ja.txt   (contents, props changed)

Log:
話題譲渡プラグインです。

Added: trunk/plugins/nmoxtopicown/admin/index.php
==============================================================================
--- (empty file)
+++ trunk/plugins/nmoxtopicown/admin/index.php	Tue Sep  9 00:13:38 2008
@@ -0,0 +1,123 @@
+<?php
+//  
+---------------------------------------------------------------------------+
+// | nmoxtopicown Geeklog Plugin 1.0                                        
|
+//  
+---------------------------------------------------------------------------+
+// |  
index.php                                                                 |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+// | Copyright (C) 2007 by  
nmox                                                |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//  
|                                                                            
|
+// | This program is free software; you can redistribute it  
and/or             |
+// | modify it under the terms of the GNU General Public  
License               |
+// | as published by the Free Software Foundation; either version  
2            |
+// | of the License, or (at your option) any later  
version.                    |
+//  
|                                                                            
|
+// | This program is distributed in the hope that it will be  
useful,           |
+// | but WITHOUT ANY WARRANTY; without even the implied warranty  
of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See  
the             |
+// | GNU General Public License for more  
details.                              |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//
+class nmoxtopicown{
+	function listup(){
+		global $_TABLES,$LANG_NMOXTOPICOWN;
+		$html="
+		<div class='block-center'>
+		<h2>".$LANG_NMOXTOPICOWN["nmoxtopicown"]."</h2>
+		";
+		//更新完了メッセージ
+		if(isset($_GET["msg"]) and !empty($_GET["msg"])){
+			$html.="<div>".$LANG_NMOXTOPICOWN["done"]."</div>";
+		}
+		
+		$html.="
+		<form action='index.php' method='post'>
+		<table>
+		";
+		$n=1;
+		$users=array();
+		$rsu=DB_query("select * from ".$_TABLES["users"]);
+		while($rcu=DB_fetchArray($rsu)){
+			$users[$n]=array("uid"=>$rcu["uid"],"username"=>$rcu["username"]);
+			$n++;
+		}
+		$n=1;
+		$rs=DB_query("select * from ".$_TABLES["topics"]);
+		while($rc=DB_fetchArray($rs)){
+			$html.="
+			<tr>
+			<td>".$rc["topic"]."
+			<input type='hidden' name='id".$n."'  
value='".$rc["tid"]."'></input></td>
+			<td><select name='n".$n."'>
+			";
+			foreach($users as $user){
+				$html.="<option  
value='".$user["uid"]."'".($user["uid"]==$rc["owner_id"]?"  
selected":"").">".$user["username"]."</option>";
+			}
+			$html.="</select></td>
+			<td><input type='checkbox' name='touser".$n."'  
value='1'><small>".$LANG_NMOXTOPICOWN["change_writer"]."</small></input>
+			</td>
+			</tr>
+			";
+			$n++;
+		}
+		$html.="
+		</table>
+		<br><br>
+		<input type='hidden' name='mode' value='dbset'></input>
+		<input type='submit' value='".$LANG_NMOXTOPICOWN["ok"]."'></input>
+		</form>
+		".$LANG_NMOXTOPICOWN["message_caution"]."
+		</div>
+		";
+		return $html;
+	}
+	function dbset(){
+		global $_TABLES;
+		for($n=1;$n<1000;$n++){
+			if(isset($_POST["n".$n])){
+				$rs=DB_query("update ".$_TABLES["topics"]." set  
owner_id='".$_POST["n".$n]."' where tid='".$_POST["id".$n]."'");
+				$rs=DB_query("update ".$_TABLES["stories"]." set  
owner_id='".$_POST["n".$n]."' where tid='".$_POST["id".$n]."'");
+				if($_POST["touser".$n]==1){
+					$rs=DB_query("update ".$_TABLES["stories"]." set  
uid='".$_POST["n".$n]."' where tid='".$_POST["id".$n]."'");
+				}
+			}else{
+				break;
+			}
+		}
+		header("location:index.php?msg=done");
+	}
+}
+
+require_once("../../../lib-common.php");
+//管理権限をチェックしてNGなら退出
+if(!SEC_hasRights('nmoxtopicown.edit')) {
+	COM_errorLog("Someone has tried to illegally access the nmoxtopicown  
page.  User id: {$_USER['uid']}, Username: {$_USER['username']}, IP:  
$REMOTE_ADDR",1);
+	$display=COM_siteHeader(1);
+	$display.="<div style='margin:50px;'>You can not access this page.</div>";
+	$display.=COM_siteFooter(1);
+	echo $display;
+	exit;
+}
+
+$cl=new nmoxtopicown;
+if(isset($_POST["mode"])){
+	$mode=$_POST["mode"];
+}else{
+	$mode="";
+}
+switch($mode){
+	case "dbset":
+		$html=$cl->dbset();
+		break;
+	default:
+		$html=$cl->listup();
+}
+
+$display=COM_siteHeader(1);
+$display.=$html;
+$display.=COM_siteFooter(1);
+echo $display;
+?>
\ No newline at end of file

Added: trunk/plugins/nmoxtopicown/admin/install.php
==============================================================================
--- (empty file)
+++ trunk/plugins/nmoxtopicown/admin/install.php	Tue Sep  9 00:13:38 2008
@@ -0,0 +1,170 @@
+<?php
+//  
+---------------------------------------------------------------------------+
+// | nmoxtopicown Geeklog Plugin 1.0                                        
|
+//  
+---------------------------------------------------------------------------+
+// |  
install.php                                                               |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+// | Copyright (C) 2007 by  
nmox                                                |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//  
|                                                                            
|
+// | This program is free software; you can redistribute it  
and/or             |
+// | modify it under the terms of the GNU General Public  
License               |
+// | as published by the Free Software Foundation; either version  
2            |
+// | of the License, or (at your option) any later  
version.                    |
+//  
|                                                                            
|
+// | This program is distributed in the hope that it will be  
useful,           |
+// | but WITHOUT ANY WARRANTY; without even the implied warranty  
of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See  
the             |
+// | GNU General Public License for more  
details.                              |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//
+global $_TABLES,$_USER, $_NMOXTOPICOWN,$LANG_NMOXTOPICOWN,$_CONF;
+require_once('../../../lib-common.php');
+require_once($_CONF['path'] . 'plugins/nmoxtopicown/config.php');
+require_once($_CONF['path'] . 'plugins/nmoxtopicown/functions.inc');
+
+//
+// Universal plugin install variables
+// Change these to match your plugin
+//
+
+$pi_name    = 'nmoxtopicown';             // Plugin name  Must be 15 chars  
or less
+$pi_version = $_NMOXTOPICOWN['version'];  // Plugin Version
+$gl_version = '1.4.1';                  // GL Version plugin for
+$pi_url     = 'http://nmox.com/'; // Plugin Homepage
+
+//
+// Default data
+// Insert table name and sql to insert default data for your plugin.
+//
+
+$NEWFEATURE = array();
+$NEWFEATURE['nmoxtopicown.edit']="nmoxtopicown Admin";
+$NEWFEATURE['nmoxtopicown.user']="nmoxtopicown User";
+
+// Default data
+
+// Only let Root users access this page
+if (!SEC_inGroup('Root')) {
+	// Someone is trying to illegally access this page
+	COM_errorLog("Someone has tried to illegally access the nmoxtopicown  
install/uninstall page.  User id: {$_USER['uid']}, Username:  
{$_USER['username']}, IP: $REMOTE_ADDR",1);
+	$display = COM_siteHeader();
+	$display .= COM_startBlock($LANG_NMOXTOPICOWN['access_denied']);
+	$display .= $LANG_NMOXTOPICOWN['access_denied_msg'];
+	$display .= COM_endBlock();
+	$display .= COM_siteFooter(true);
+	echo $display;
+	exit;
+}
+
+/**
+* Puts the datastructures for this plugin into the Geeklog database
+*
+* Note: Corresponding uninstall routine is in functions.inc
+*
+* @return   boolean True if successful False otherwise
+*
+*/
+function plugin_install_now()
+{
+    global $pi_name, $pi_version, $gl_version, $pi_url, $NEWFEATURE;
+    global $_TABLES,$_CONF;
+
+
+    DB_query("INSERT INTO {$_TABLES['groups']} (grp_name, grp_descr) "
+        . "VALUES ('$pi_name Admin', 'Users in this group can administer  
the $pi_name plugin')",1);
+    if (DB_error()) {
+    	COM_errorLog('failed insert groups table',1);
+        plugin_uninstall_nmoxtopicown();
+        return false;
+        exit;
+    }
+    $group_id = DB_insertId();
+
+    DB_query("INSERT INTO {$_TABLES['vars']} VALUES  
('{$pi_name}_admin', '$group_id')",1);
+    if (DB_error()) {
+    	COM_errorLog('failed insert vars table',1);
+        plugin_uninstall_nmoxtopicown();
+        return false;
+        exit;
+    }
+
+    foreach ($NEWFEATURE as $feature => $desc) {
+        DB_query("INSERT INTO {$_TABLES['features']} (ft_name, ft_descr) "
+            . "VALUES ('$feature','$desc')",1);
+        if (DB_error()) {
+    		COM_errorLog('failed insert feature table',1);
+            plugin_uninstall_nmoxtopicown();
+            return false;
+            exit;
+        }
+        $feat_id = DB_insertId();
+        DB_query("INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id)  
VALUES ($feat_id, $group_id)");
+        if (DB_error()) {
+    		COM_errorLog('failed insert access table',1);
+            plugin_uninstall_nmoxtopicown();
+            return false;
+            exit;
+        }
+    }
+
+    DB_query("INSERT INTO {$_TABLES['group_assignments']} VALUES  
($group_id, NULL, 1)");
+    if (DB_error()) {
+    	COM_errorLog('failed insert group_assignments table',1);
+        plugin_uninstall_nmoxtopicown();
+        return false;
+        exit;
+    }
+
+    DB_delete($_TABLES['plugins'],'pi_name','nmoxtopicown');
+    DB_query("INSERT INTO {$_TABLES['plugins']} (pi_name, pi_version,  
pi_gl_version, pi_homepage, pi_enabled) "
+        . "VALUES ('$pi_name', '$pi_version', '$gl_version', '$pi_url',  
1)");
+
+    if (DB_error()) {
+    	COM_errorLog('failed insert plugin table',1);
+        plugin_uninstall_nmoxtopicown();
+        return false;
+        exit;
+    }
+
+    return true;
+}
+
+/*
+* Main Function
+*/
+
+$display = '';
+
+if ($_REQUEST['action'] == 'uninstall') {
+    $uninstall_plugin = 'plugin_uninstall_' . $pi_name;
+    if ($uninstall_plugin ()) {
+        $display = COM_refresh ($_CONF['site_admin_url']
+                                . '/plugins.php?msg=45');
+    } else {
+        $display = COM_refresh ($_CONF['site_admin_url']
+                                . '/plugins.php?msg=73');
+    }
+} else if (DB_count ($_TABLES['plugins'], 'pi_name', $pi_name) == 0) {
+    // plugin not installed
+    if (plugin_install_now ()) {
+        $display = COM_refresh ($_CONF['site_admin_url']
+                                . '/plugins.php?msg=44');
+    } else {
+        $display = COM_refresh ($_CONF['site_admin_url']
+                                . '/plugins.php?msg=72');
+    }
+} else {
+    // plugin already installed
+    $display .= COM_siteHeader ('menu', $LANG01[77])
+             . COM_startBlock ($LANG32[6])
+             . '<p>' . $LANG32[7] . '</p>'
+             . COM_endBlock ()
+             . COM_siteFooter();
+}
+
+echo $display;
+?>
\ No newline at end of file

Added: trunk/plugins/nmoxtopicown/config.php
==============================================================================
--- (empty file)
+++ trunk/plugins/nmoxtopicown/config.php	Tue Sep  9 00:13:38 2008
@@ -0,0 +1,33 @@
+<?php
+//
+//  
+---------------------------------------------------------------------------+
+// | nmoxtopicown Geeklog Plugin 1.0                                        
|
+//  
+---------------------------------------------------------------------------+
+// |  
config.php                                                                |
+//  
+---------------------------------------------------------------------------+
+// | Copyright (C) 2007 by  
nmox                                                |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//  
|                                                                            
|
+// | This program is free software; you can redistribute it  
and/or             |
+// | modify it under the terms of the GNU General Public  
License               |
+// | as published by the Free Software Foundation; either version  
2            |
+// | of the License, or (at your option) any later  
version.                    |
+//  
|                                                                            
|
+// | This program is distributed in the hope that it will be  
useful,           |
+// | but WITHOUT ANY WARRANTY; without even the implied warranty  
of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See  
the             |
+// | GNU General Public License for more  
details.                              |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//
+
+$_NMOXTOPICOWN['version'] = '1.0.7';
+
+$_NMOXTOPICOWN['hidenmoxtopicownmenu']=0;
+
+$_NMOXTOPICOWN['nmoxtopicown'] = $LANG_NMOXTOPICOWN['nmoxtopicown'];
+
+$_TABLES['nmoxtopicown']  = $_DB_table_prefix . 'nmoxtopicown';
+
+?>

Added: trunk/plugins/nmoxtopicown/functions.inc
==============================================================================
--- (empty file)
+++ trunk/plugins/nmoxtopicown/functions.inc	Tue Sep  9 00:13:38 2008
@@ -0,0 +1,166 @@
+<?php
+//
+//  
+---------------------------------------------------------------------------+
+// | nmoxtopicown Geeklog Plugin 1.0                                        
|
+//  
+---------------------------------------------------------------------------+
+// |  
function.inc                                                              |
+//  
+---------------------------------------------------------------------------+
+// | Copyright (C) 2007 by  
nmox                                                |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//  
|                                                                            
|
+// | This program is free software; you can redistribute it  
and/or             |
+// | modify it under the terms of the GNU General Public  
License               |
+// | as published by the Free Software Foundation; either version  
2            |
+// | of the License, or (at your option) any later  
version.                    |
+//  
|                                                                            
|
+// | This program is distributed in the hope that it will be  
useful,           |
+// | but WITHOUT ANY WARRANTY; without even the implied warranty  
of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See  
the             |
+// | GNU General Public License for more  
details.                              |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+/**
+* Language file Include
+*/
+$langfile = $_CONF['path'] . 'plugins/nmoxtopicown/language/' .  
$_CONF['language'] . '.php';
+if (file_exists ($langfile))
+{
+	include_once ($langfile);
+}
+else
+{
+	include_once  
($_CONF['path'] . 'plugins/nmoxtopicown/language/english.php');
+}
+
+require_once ($_CONF['path'] . 'plugins/nmoxtopicown/config.php');
+
+//  
+---------------------------------------------------------------------------+
+// | Geeklog Plugin API  
Implementations                                        |
+//  
+---------------------------------------------------------------------------+
+
+function plugin_chkVersion_nmoxtopicown() {
+	global $_NMOXTOPICOWN;
+
+	return $_NMOXTOPICOWN['version'];
+}
+
+/**
+* Returns the items for this plugin that should appear on the main menu
+*
+* NOTE: this MUST return the url/value pairs in the following format
+* $<arrayname>[<label>] = <url>
+*
+* Universal Plugin:  Uncomment and fill in variables;
+*
+* @return    array   Associative array of menu items to be added to menu
+*
+*/
+function plugin_getmenuitems_nmoxtopicown()
+{
+}
+
+/**
+* Check to see if this Plugin uses comments
+*
+* Geeklog is checking to see if this plugin supports comments, tell it no!
+* NOTE: to support comments you must use the same date/time based ID for  
your
+* widget.  In other words, to make primary keys for your plugin you should  
call
+* makesid().  Comments are keyed off of that...it is a limitation on how  
geeklog
+* does comments.
+*
+* @return   boolean true or false
+*
+*/
+function plugin_commentsupport_nmoxtopicown()
+{
+	return false;
+}
+
+/**
+* Shows the statistics for the plugin on stats.php.  If
+* $showsitestats is 1 then we are to only print the overall stats in  
the 'site
+* statistics' box otherwise we show the detailed stats for the plugin
+*
+* Universal Plugin:  Modify/uncomment use it
+*
+* @param    int showsitestate   Flag to let us know which stats to get
+* @return   string  returns formatted HTML to insert in stats page
+*
+*/
+function plugin_showstats_nmoxtopicown($showsitestats)
+{
+	$retval = '';
+	return $retval;
+}
+
+function plugin_upgrade_nmoxtopicown ()
+{
+    global $_TABLES, $_NMOXTOPICOWN;
+
+    $v = DB_getItem ($_TABLES['plugins'], 'pi_version', "pi_name  
= 'nmoxtopicown'");
+
+    if ($v != $_NMOXTOPICOWN['version']) {
+        // update version numbers
+        DB_query ("UPDATE {$_TABLES['plugins']} SET pi_version  
= '{$_NMOXTOPICOWN['version']}', pi_gl_version = '1.4.1' WHERE pi_name  
= 'nmoxtopicown'");
+
+        // check if version number was updated successfully
+        $v = DB_getItem ($_TABLES['plugins'], 'pi_version', "pi_name  
= 'spamx'");
+    }
+
+    if ($v == $_NMOXTOPICOWN['version']) {
+        return true;
+    }
+
+    return true;
+}
+
+/**
+* Removes the datastructures for this plugin from the Geeklog database.
+* This routine will get called from the Plugin install program if user  
select De-Install or if Delete is used in the Plugin Editor.
+* The Plugin Installer will also call this routine upon and install error  
to remove anything it has created.
+* The Plugin installer will pass the optional parameter which will then  
double check that plugin has first been disabled.
+*
+* For this plugin, this routine will also remove the Block definition.
+*
+* Returns True if all Plugin related data is removed without error
+*
+* @param    string   $installCheck     Defult is blank but if set, check  
if plugin is disabled first
+*
+* @return   boolean True if successful false otherwise
+*
+*/
+function plugin_uninstall_nmoxtopicown($installCheck = '')
+{
+	global $_TABLES, $LANG_NMOXTOPICOWN,$_CONF;
+
+	$pi_name  = 'nmoxtopicown';
+
+
+	$grp_id = DB_getItem($_TABLES['vars'], 'value', "name  
= '{$pi_name}_admin'");
+	DB_delete($_TABLES['plugins'],'pi_name','nmoxtopicown');
+	DB_query("DELETE FROM {$_TABLES['group_assignments']} WHERE  
ug_main_grp_id = $grp_id",1);
+	$FEATURES = array ('nmoxtopicown.edit','nmoxtopicown.user');
+	foreach ($FEATURES as $feature) {
+		$feat_id = DB_getItem($_TABLES['features'], 'ft_id', "ft_name  
= '$feature'");
+		DB_query("DELETE FROM {$_TABLES['access']} WHERE acc_ft_id =  
$feat_id",1);
+		DB_query("DELETE FROM {$_TABLES['features']} WHERE ft_id = $feat_id",1);
+	}
+	DB_query("DELETE FROM {$_TABLES['vars']} WHERE name  
= '{$pi_name}_admin'");
+	DB_query("DELETE FROM {$_TABLES['groups']} WHERE grp_id = $grp_id",1);
+
+	return true;
+}
+
+function plugin_getadminoption_nmoxtopicown(){
+	global $_CONF, $_NMOXTOPICOWN, $_TABLES;
+
+	if (SEC_hasRights ('nmoxtopicown.edit', 'OR')) {
+		return array ($_NMOXTOPICOWN['nmoxtopicown'],  
$_CONF['site_admin_url'] . '/plugins/nmoxtopicown/index.php');
+	}
+}
+
+function phpblock_nmoxtopicown(){
+	return "@_@";
+}
+?>

Added: trunk/plugins/nmoxtopicown/language/english.php
==============================================================================
--- (empty file)
+++ trunk/plugins/nmoxtopicown/language/english.php	Tue Sep  9 00:13:38 2008
@@ -0,0 +1,57 @@
+<?php
+
+//  
+---------------------------------------------------------------------------+
+// | nmoxtopicown Geeklog Plugin 1.0                                        
|
+//  
+---------------------------------------------------------------------------+
+// |  
english.php                                                               |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+// | Copyright (C) 2007 by  
nmox                                                |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//  
|                                                                            
|
+// | This program is free software; you can redistribute it  
and/or             |
+// | modify it under the terms of the GNU General Public  
License               |
+// | as published by the Free Software Foundation; either version  
2            |
+// | of the License, or (at your option) any later  
version.                    |
+//  
|                                                                            
|
+// | This program is distributed in the hope that it will be  
useful,           |
+// | but WITHOUT ANY WARRANTY; without even the implied warranty  
of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See  
the             |
+// | GNU General Public License for more  
details.                              |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//
+//  
+---------------------------------------------------------------------------+
+// | Array  
Format:                                                             |
+// | $LANGXX[YY]:	$LANG - variable  
name                                      |
+// |	  	XX - file id number                                                 
|
+// |		YY - phrase id number                                              |
+//  
+---------------------------------------------------------------------------+
+
+/**
+* Generic Install language
+*
+* Be sure and change the name of this array to match your plugin
+* e.g. $LANG_ST00
+*
+*/
+
+$LANG_NMOXTOPICOWN= array (
+'plugin'				=> 'nmoxtopicown',
+'access_denied'			=> 'Access Denied',
+'access_denied_msg'		=> 'Only Root Users have Access to this Page.  Your  
user name and IP have been recorded.',
+'install_header'		=> 'Install/Uninstall Plugin',
+'installed'				=> 'The Plugin is Installed',
+'uninstalled'			=> 'The Plugin is Not Installed',
+'install_success'		=> 'Installation Successful',
+'install_failed'		=> 'Installation Failed -- See your error log to find  
out why.',
+'uninstall_msg'			=> 'Plugin Successfully Uninstalled',
+'install'				=> 'Install',
+'uninstall'				=> 'UnInstall',
+'ok'					=> 'ok',
+'message_caution'		=> '* you will change owner of topic with included all  
stories.',
+'change_writer'			=> 'change writer all stories in this topic.',
+'done'					=> 'done'
+);
+?>
\ No newline at end of file

Added: trunk/plugins/nmoxtopicown/language/english_utf-8.php
==============================================================================
--- (empty file)
+++ trunk/plugins/nmoxtopicown/language/english_utf-8.php	Tue Sep  9  
00:13:38 2008
@@ -0,0 +1,57 @@
+<?php
+
+//  
+---------------------------------------------------------------------------+
+// | nmoxtopicown Geeklog Plugin 1.0                                        
|
+//  
+---------------------------------------------------------------------------+
+// |  
english_utf-8.php                                                         |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+// | Copyright (C) 2007 by  
nmox                                                |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//  
|                                                                            
|
+// | This program is free software; you can redistribute it  
and/or             |
+// | modify it under the terms of the GNU General Public  
License               |
+// | as published by the Free Software Foundation; either version  
2            |
+// | of the License, or (at your option) any later  
version.                    |
+//  
|                                                                            
|
+// | This program is distributed in the hope that it will be  
useful,           |
+// | but WITHOUT ANY WARRANTY; without even the implied warranty  
of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See  
the             |
+// | GNU General Public License for more  
details.                              |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//
+//  
+---------------------------------------------------------------------------+
+// | Array  
Format:                                                             |
+// | $LANGXX[YY]:	$LANG - variable  
name                                      |
+// |	  	XX - file id number                                                 
|
+// |		YY - phrase id number                                              |
+//  
+---------------------------------------------------------------------------+
+
+/**
+* Generic Install language
+*
+* Be sure and change the name of this array to match your plugin
+* e.g. $LANG_ST00
+*
+*/
+
+$LANG_NMOXTOPICOWN= array (
+'plugin'				=> 'nmoxtopicown',
+'access_denied'			=> 'Access Denied',
+'access_denied_msg'		=> 'Only Root Users have Access to this Page.  Your  
user name and IP have been recorded.',
+'install_header'		=> 'Install/Uninstall Plugin',
+'installed'				=> 'The Plugin is Installed',
+'uninstalled'			=> 'The Plugin is Not Installed',
+'install_success'		=> 'Installation Successful',
+'install_failed'		=> 'Installation Failed -- See your error log to find  
out why.',
+'uninstall_msg'			=> 'Plugin Successfully Uninstalled',
+'install'				=> 'Install',
+'uninstall'				=> 'UnInstall',
+'ok'					=> 'ok',
+'message_caution'		=> '* you will change owner of topic with included all  
stories.',
+'change_writer'			=> 'change writer all stories in this topic.',
+'done'					=> 'done'
+);
+?>
\ No newline at end of file

Added: trunk/plugins/nmoxtopicown/language/japanese.php
==============================================================================
--- (empty file)
+++ trunk/plugins/nmoxtopicown/language/japanese.php	Tue Sep  9 00:13:38  
2008
@@ -0,0 +1,51 @@
+<?php
+
+//  
+---------------------------------------------------------------------------+
+// | nmoxtopicown Geeklog Plugin 1.0                                        
|
+//  
+---------------------------------------------------------------------------+
+// |  
japanese.php                                                              |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+// | Copyright (C) 2007 by  
nmox                                                |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//  
|                                                                            
|
+// | This program is free software; you can redistribute it  
and/or             |
+// | modify it under the terms of the GNU General Public  
License               |
+// | as published by the Free Software Foundation; either version  
2            |
+// | of the License, or (at your option) any later  
version.                    |
+//  
|                                                                            
|
+// | This program is distributed in the hope that it will be  
useful,           |
+// | but WITHOUT ANY WARRANTY; without even the implied warranty  
of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See  
the             |
+// | GNU General Public License for more  
details.                              |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//
+
+//  
+---------------------------------------------------------------------------+
+// | Array  
Format:                                                             |
+// | $LANGXX[YY]:	$LANG - variable  
name                                      |
+// |	  	XX - file id number                                                 
|
+// |		YY - phrase id number                                              |
+//  
+---------------------------------------------------------------------------+
+
+$LANG_NMOXTOPICOWN = array (
+'nmoxtopicown'		=> '�������',
+'plugin'            => '�ץ饰����',
+'access_denied'     => '���������ϵ��ݤ���ޤ�����',
+'access_denied_msg'  
=> 'Root�桼�����������Υڡ����ˤϥ��������Ǥ��ޤ��󡣤��ʤ��Υ桼����̾��IP���ɥ쥹�ϵ�Ͽ����ޤ�����',
+'install_header'	=> '�ץ饰����Υ��󥹥ȡ���/���󥤥󥹥ȡ���',
+'installed'          
=> '���Υץ饰����ϥ����Ȥ������֥饦�������ѹ����뤳�Ȥ��Ǥ���褦�ˤ���ץ饰����Ǥ���',
+'uninstalled'        
=> '���ߡ� ������� �ץ饰����ϥ��󥹥ȡ��뤵��Ƥ��ޤ��󡣥��󥹥ȡ��뤹����� �����Υ��󥹥ȡ���ܥ���򲡤��Ʋ�������',
+'install_success'	=> '���󥹥ȡ�������ޤ�����',
+'install_failed'	 
=> '���󥹥ȡ���˼��Ԥ��ޤ������ܺ٤ϥ��顼��(error.log)����������',
+'uninstall_msg'		=> '������� �ץ饰����Ϥ����ȥ��󥤥󥹥ȡ��뤵��ޤ�����',
+'install'           => '���󥹥ȡ���',
+'uninstall'			=> '���󥤥󥹥ȡ���',
+'ok'				=> '����',
+'message_caution'	 
=> '���������ˤ��뤹�٤Ƥε�������桼�����˾��Ϥ���ޤ��Τǡ����餫���ᤴ��դ��������',
+'change_writer'		=> '��������ε������ƼԤ⤳�Υ桼�������',
+'done'				=> '�������ޤ�����'
+);
+?>
\ No newline at end of file

Added: trunk/plugins/nmoxtopicown/language/japanese_utf-8.php
==============================================================================
--- (empty file)
+++ trunk/plugins/nmoxtopicown/language/japanese_utf-8.php	Tue Sep  9  
00:13:38 2008
@@ -0,0 +1,51 @@
+<?php
+
+//  
+---------------------------------------------------------------------------+
+// | nmoxtopicown Geeklog Plugin 1.0                                        
|
+//  
+---------------------------------------------------------------------------+
+// |  
japanese_utf-8.php                                                        |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+// | Copyright (C) 2007 by  
nmox                                                |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//  
|                                                                            
|
+// | This program is free software; you can redistribute it  
and/or             |
+// | modify it under the terms of the GNU General Public  
License               |
+// | as published by the Free Software Foundation; either version  
2            |
+// | of the License, or (at your option) any later  
version.                    |
+//  
|                                                                            
|
+// | This program is distributed in the hope that it will be  
useful,           |
+// | but WITHOUT ANY WARRANTY; without even the implied warranty  
of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See  
the             |
+// | GNU General Public License for more  
details.                              |
+//  
|                                                                            
|
+//  
+---------------------------------------------------------------------------+
+//
+
+//  
+---------------------------------------------------------------------------+
+// | Array  
Format:                                                             |
+// | $LANGXX[YY]:	$LANG - variable  
name                                      |
+// |	  	XX - file id number                                                 
|
+// |		YY - phrase id number                                              |
+//  
+---------------------------------------------------------------------------+
+
+$LANG_NMOXTOPICOWN = array (
+'nmoxtopicown'		=> '話題譲渡',
+'plugin'            => 'プラグイン',
+'access_denied'     => 'アクセスは拒否されました。',
+'access_denied_msg' => 'Rootユーザーしかこのページにはアクセスできません。 
あなたのユーザー名とIPアドレスは記録されました。',
+'install_header'	=> 'プラグインのインストール/アンインストール',
+'installed'         => 'このプラグインはサイトの設定をブラウザから変更する 
ことができるようにするプラグインです。',
+'uninstalled'       => '現在、 話題譲渡 プラグインはインストールされていま 
せん。インストールする場合は 下記のインストールボタンを押して下さい。',
+'install_success'	=> 'インストールに成功しました。',
+'install_failed'	=> 'インストールに失敗しました。詳細はエラーログ 
(error.log)をご覧ください。',
+'uninstall_msg'		=> '話題譲渡 プラグインはきちんとアンインストールされまし 
た。',
+'install'           => 'インストール',
+'uninstall'			=> 'アンインストール',
+'ok'				=> '決定',
+'message_caution'	=> '※話題の中にあるすべての記事も指定ユーザーに譲渡されま 
すので、あらかじめご注意ください。',
+'change_writer'		=> 'この話題の記事の投稿者もこのユーザに統一',
+'done'				=> '更新しました。'
+);
+?>
\ No newline at end of file

Added: trunk/plugins/nmoxtopicown/readme_ja.txt
==============================================================================
--- (empty file)
+++ trunk/plugins/nmoxtopicown/readme_ja.txt	Tue Sep  9 00:13:38 2008
@@ -0,0 +1,38 @@
+nmoxtopicown on Geeklog     by nmox
+
+nmoxtopicownはGeeklogのプラグインです。
+
+指定した話題とその中にある記事の所有者をブラウザから変更することができま 
す。
+ブログ用途など、複数人で話題を分担して投稿する体制を意識しています。
+なお、所有者と投稿者の意味を混同しないようお願いします。
+
+
+Geeklog1.4.1 日本語環境 に対応しています。
+
+■更新履歴
+2007/03/27 1.0.0 リリース
+2007/04/01 1.0.1 多言語対応
+2007/04/07 1.0.2 インストーラを全面見直し
+2007/04/21 1.0.3 テーマProffesionalCSSに対応しました。
+2007/05/04 1.0.4 新しいタイプの3カラムレイアウトのテーマに対応しました。
+2007/05/06 1.0.5 投稿者名も変更できるようにしました。
+2007/05/27 1.0.6 COM_siteHeaderの扱いを改善しました。
+2008/09/09 1.0.7 Geeklog1.5.0で動作確認をしました。一部脆弱性を改善しまし 
た。
+
+■インストール方法
+1.念のため、可能な限りGeeklogのバックアップを取ってください。
+2.展開したディレクトリとファイルをそれぞれ下記要領で配置してください。
+	/admin/plugins/nmoxtopicown/	→	/公開ディレクトリ 
/admin/plugins/nmoxtopicown/
+	/language/			→	/非公開ディレクトリ/plugins/nmoxtopicown/language/
+	/templates/			→	/非公開ディレクトリ/plugins/nmoxtopicown/templates/
+	/config.php			→	/非公開ディレクトリ/plugins/nmoxtopicown/config.php
+	/functions.inc			→	/非公開ディレクトリ/plugins/nmoxtopicown/functions.inc
+3.通常はパーミッションの変更は不要です。(644等)
+4.Geeklogに管理者権限でログインして、プラグイン管理ページからインストール 
してください。
+
+■ご利用方法
+・管理者メニューの「話題譲渡」からご利用ください。
+
+■アンインストール方法
+1.Geeklogに管理者権限でログインして、プラグイン管理ページからアンインス 
トールしてください。
+2.必要なら、インストール時に配置したディレクトリとファイルを削除してくだ 
さい。(しなくても構いません。)


Geeklogjp-changes メーリングリストの案内
Back to archive index