Changeset 1126
- Timestamp:
- 2007/01/20 00:31:15 (17 years ago)
- Location:
- temp/test-xoops.ec-cube.net/html
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/test-xoops.ec-cube.net/html/mainfile.php
r1092 r1126 98 98 } 99 99 100 // ¥ª¥Õ¥£¥·¥ã¥ë¥µ¥¤¥ÈDB 101 define ("DEFAULT_DSN", "pgsql://eccube_intro_admin:b8cSLkXf@192.168.0.202/eccube_intro_db"); 100 // ¥ª¥Õ¥£¥·¥ã¥ë¥µ¥¤¥ÈURL 101 define ("OFFICIAL_URL", "http://www.ec-cube.net/"); 102 define ("REGIST_URL", OFFICIAL_URL . "entry/xoops_regist.php"); 102 103 } 103 104 ?> -
temp/test-xoops.ec-cube.net/html/register.php
r1096 r1126 29 29 30 30 include 'mainfile.php'; 31 require XOOPS_ROOT_PATH."/class/SC_DbConn.php"; 32 require XOOPS_ROOT_PATH."/class/SC_Query.php"; 31 require(XOOPS_ROOT_PATH . "/pear/Request.php"); 33 32 34 33 $myts =& MyTextSanitizer::getInstance(); … … 251 250 // ¥ª¥Õ¥£¥·¥ã¥ë¥Ú¡¼¥¸¤Ø¤ÎÅÐÏ¿ 252 251 if($mailmaga) { 253 $objQuery = new SC_QUery(); 252 $objHttp = new HTTP_Request(REGIST_URL); 253 254 $objHttp->setMethod(HTTP_REQUEST_METHOD_POST); 255 $objHttp->addPostData("name", $uname); 256 $objHttp->addPostData("email", $email); 254 257 255 $sqlval['org_name'] = $uname; 256 $sqlval['email'] = $email; 257 $sqlval["create_date"] = "now()"; 258 259 $objQuery->insert("dtb_user_regist", $sqlval); 258 if (!PEAR::isError($objHttp->sendRequest())) { 259 $body = $objHttp->getResponseBody(); 260 } 260 261 } 261 262 // ¾åÉô¥á¥Ã¥»¡¼¥¸
Note: See TracChangeset
for help on using the changeset viewer.