OSDN Git Service

sync with trunk for v3.31 release
authorkimitake <kimitake@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Tue, 23 Oct 2007 08:33:23 +0000 (08:33 +0000)
committerkimitake <kimitake@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Tue, 23 Oct 2007 08:33:23 +0000 (08:33 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/branches/branch-3-3@331 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/createaccount.php [new file with mode: 0644]
utf8/install.sql
utf8/nucleus/plugins/ping/english.php

diff --git a/utf8/createaccount.php b/utf8/createaccount.php
new file mode 100644 (file)
index 0000000..e1ca9ab
--- /dev/null
@@ -0,0 +1,128 @@
+<?php
+       include "./config.php";
+       include $DIR_LIBS."ACTION.php";
+       
+       if (isset ($_POST['showform'])&&$_POST['showform']==1) {
+               $showform = 1;
+       }
+       else {
+               $showform = 0;
+       }
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html>
+<head>
+       <title>Create Member Account</title>
+       <style type="text/css">@import url(nucleus/styles/manual.css);</style>
+</head>
+<body>
+
+       <h1>Create Account</h1>
+
+<?php
+       // show form only if Visitors are allowed to create a Member Account
+       if ($CONF['AllowMemberCreate']==1) { 
+               // if the form is shown the first time no POST data 
+               // will be added as value for the input fields
+               if ($showform==0) {
+?>
+
+       <form method="post" action="createaccount.php">
+
+       <div>
+       <input type="hidden" name="showform" value="1" />
+       <input type="hidden" name="action" value="createaccount" />
+       
+               Login Name (required): 
+               <br />
+               <input name="name" size="20" /> <small>(only a-z, 0-9)</small>
+               <br />
+               <br />          
+               Real Name (required): 
+               <br />
+               <input name="realname" size="40" />
+               <br />
+               <br />          
+               Email (required):
+               <br />
+               <input name="email" size="40" /> <small>(must be valid, because an activation link will be sent over there)</small>
+               <br />
+               <br />          
+               URL: 
+               <br />
+               <input name="url" size="60" />
+               <br />
+               <?php
+               // add a Captcha challenge or something else
+               global $manager;
+               $manager->notify('FormExtra', array('type' => 'membermailform-notloggedin'));
+               ?>
+               <br />
+               <br />                                          
+               <input type="submit" value="Create Account" />
+       </div>
+
+       </form>
+<?php
+               } // close if showfrom ...
+               else {
+               // after the from is sent it will be validated
+               // POST data will be added as value to treat the user with care (;-))
+       
+               $a = new ACTION();
+
+               // if createAccount fails it returns an error message 
+               $message = $a->createAccount();
+
+               echo '<span style="font-weight:bold; color:red;">'.$message.'</span><br /><br />'; 
+?>
+       
+               <form method="post" action="createaccount.php">
+
+       <div>
+       <input type="hidden" name="showform" value="1" />
+       <input type="hidden" name="action" value="createaccount" />
+       
+               Login Name (required): 
+               <br />
+               <input name="name" size="20" <?php if(isset($_POST['name'])){echo 'value="'.$_POST['name'].'"';}?>/> <small>(only a-z, 0-9)</small>
+               <br />
+               <br />          
+               Real Name (required): 
+               <br />
+               <input name="realname" size="40" <?php if(isset($_POST['realname'])){echo 'value="'.$_POST['realname'].'"';}?>/>
+               <br />
+               <br />          
+               Email (required):
+               <br />
+               <input name="email" size="40" <?php if(isset($_POST['email'])){echo 'value="'.$_POST['email'].'"';}?>/> <small>(must be valid, because an activation link will be sent over there)</small>
+               <br />
+               <br />          
+               URL: 
+               <br />
+               <input name="url" size="60" <?php if(isset($_POST['url'])){echo 'value="'.$_POST['url'].'"';}?>/>
+               <br />
+               <?php
+               // add a Captcha challenge or something else
+               global $manager;
+               $manager->notify('FormExtra', array('type' => 'membermailform-notloggedin'));
+               ?>
+               <br />
+               <br />
+               <input type="submit" value="Create Account" />
+       </div>
+
+       </form>
+<?php
+               }       // close else showform ...
+
+}
+else { 
+       echo 'Visitors are not allowed to create a Member Account.<br /><br />';
+       echo 'Please contact the website administrator for more information.';
+}
+?>
+       
+       
+</body>
+</html>
\ No newline at end of file
index cff9090..06eb9ec 100755 (executable)
@@ -38,12 +38,13 @@ CREATE TABLE `nucleus_blog` (
   `ballowpast` tinyint(2) NOT NULL default '0',
   `bincludesearch` tinyint(2) NOT NULL default '0',
   `breqemail` TINYINT( 2 ) DEFAULT '0' NOT NULL,
+  `bfuturepost` TINYINT(2) DEFAULT '0' NOT NULL,
   PRIMARY KEY  (`bnumber`),
   UNIQUE KEY `bnumber` (`bnumber`),
   UNIQUE KEY `bshortname` (`bshortname`)
 ) TYPE=MyISAM;
 
-INSERT INTO `nucleus_blog` VALUES (1, 'My Nucleus CMS', 'mynucleuscms', '', 1, 0, 0.0, '', 'http://localhost:8080/nucleus/', '', 5, 1, 0, 1, 1, 1, 1, 0, 0);
+INSERT INTO `nucleus_blog` VALUES (1, 'My Nucleus CMS', 'mynucleuscms', '', 1, 0, 0.0, '', 'http://localhost:8080/nucleus/', '', 5, 1, 0, 1, 1, 1, 1, 0, 0, 0);
 
 CREATE TABLE `nucleus_category` (
   `catid` int(11) NOT NULL auto_increment,
@@ -125,6 +126,7 @@ CREATE TABLE `nucleus_item` (
   `ikarmapos` int(11) NOT NULL default '0',
   `icat` int(11) default NULL,
   `ikarmaneg` int(11) NOT NULL default '0',
+  `iposted` tinyint(2) NOT NULL default '1',
   PRIMARY KEY  (`inumber`),
   UNIQUE KEY `inumber` (`inumber`),
   KEY `itime` (`itime`),
index e8af461..c81e8b3 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-       define('_PING_DESC', 'This plugin can be used to ping many blog tracking services');
+       define('_PING_DESC', 'This plugin can be used to ping many blog tracking services. - Don\'t forget to enable the option \'Ping weblog listing service on update\' in your blog settings!');
        define('_PING_PINGOM', 'Ping-o-matic');
        define('_PING_WEBLOGS', 'weblogs.com');
        define('_PING_TECHNOR', 'Technorati');