こんばんは。突然ですが質問させていただきます
現在、MCAuthを利用したログインシステムを作ろうとしています。
ですが、エラーが出ていてうまく動作しません。
エラー文は以下の通りです。
PHP
1Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /home/u526201047/public_html/MCAuth/MCAuth.class.php on line 59
PHP文は以下の通りです
PHP
1<?php 2ini_set('safe_mode', false); 3include "../header.php"; 4?> 5<html> 6<head> 7<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" /> 8</head> 9<body> 10<div class="container" style="margin-top: 35px;"> 11<div class="row"> 12<?php 13if (isset($_POST['login']) AND isset($_POST['password'])) { 14 include("../MCAuth/MCAuth.class.php"); 15 $MCAuth = new MCAuth(); 16 echo '<div class="col-md-6 col-md-offset-3">'; 17 if ($MCAuth->authenticate($_POST['login'], $_POST['password']) == TRUE) { 18 echo '<pre>'; 19 print_r($MCAuth->account); 20 echo '</pre>'; 21 } else { 22 echo '<pre>'; 23 print_r($MCAuth->autherr); 24 echo '</pre>'; 25 } 26 echo '</div>'; 27} else { 28 ?> 29 <div class="col-md-4 col-md-offset-4"> 30 <form action="#" method="post"> 31 <legend>MCAuth tester</legend> 32 <input class="form-control" type="text" name="login" placeholder="username/email"><br /> 33 <input class="form-control" type="password" name="password" placeholder="password"><br /> 34 <button class="btn btn-default btn-block" type="submit">Test</button> 35 </form> 36 </div> 37 <?php 38} 39?> 40 41</div> 42</div> 43</body> 44</html> 45<?php include "../footer.php"; ?>
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/12/13 05:22