Index: trunk/install/php/StarlightBreaker/sb-write.php
===================================================================
--- trunk/install/php/StarlightBreaker /sb-write.php (リビジョン 56)
+++ trunk/install/php/StarlightBreaker/sb-write.php (リビジョン 81)
@@ -18,6 +18,18 @@
//�鴻�����潟������include("./sb-config.php");
+include("./foltialib.php");
+$con = m_connect();
-include("./foltialib.php");
+if ($useenvironmentpolicy == 1){
+ if (!isset($_SERVER['PHP_AUTH_USER'])) {
+ header("WWW-Authenticate: Basic realm=\"foltia\"");
+ header("HTTP/1.0 401 Unauthorized");
+ redirectlogin();
+ exit;
+ } else {
+ login($con,$_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']);
+ }
+}//end if login
+
$tid = getgetnumform(tid);
Index: trunk/install/php/StarlightBreaker/sb-edit.php
===================================================================
--- trunk/install/php/StarlightBreaker /sb-edit.php (リビジョン 56)
+++ trunk/install/php/StarlightBreaker/sb-edit.php (リビジョン 81)
@@ -16,6 +16,18 @@
*/
-
include("./foltialib.php");
+$con = m_connect();
+
+if ($useenvironmentpolicy == 1){
+ if (!isset($_SERVER['PHP_AUTH_USER'])) {
+ header("WWW-Authenticate: Basic realm=\"foltia\"");
+ header("HTTP/1.0 401 Unauthorized");
+ redirectlogin();
+ exit;
+ } else {
+ login($con,$_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']);
+ }
+}//end if login
+
$pid = getgetform(pid);
@@ -47,5 +59,4 @@
-$con = m_connect();
$query = "
SELECT
@@ -120,6 +131,5 @@
$subject = getform(subject);
$maintext = getform(textarea);
-//$replaced = preg_replace ('/\n/', '$1
',$maintext ) ;
-$maintext = mbereg_replace("\n","
\n", $maintext);
+//$maintext = mbereg_replace("\n","
\n", $maintext);
$rate = getform(rank4);
@@ -151,5 +161,5 @@
$subject = $ratechara . $subject;
-print "". htmlspecialchars(stripslashes( $subject)) ."
\n";
+print "". htmlspecialchars(stripslashes( $subject)) ."\n";
print "". stripslashes( $maintext) ."
\n";
print "
\n";
@@ -189,5 +199,5 @@
if ($tid > 0){
print "
-
+
参考リンク: $title ";
if ($countno != ""){