Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-liusg committed Apr 18, 2016
1 parent b883116 commit d8c01a4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
4 changes: 1 addition & 3 deletions Application/Home/Controller/ItemController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ public function show(){
}
}



$share_url = get_domain().__APP__.'/'.$item_id;

$ItemPermn = $this->checkItemPermn($uid , $item_id) ;
Expand Down Expand Up @@ -175,7 +173,7 @@ public function pwd(){
$item = D("Item")->where("item_id = '$item_id' ")->find();
if ($item['password'] == $password) {
session("visit_item_".$item_id , 1 );
header("location:".U("Home/item/show").'?item_id='.$item_id);
header("location:".U("Home/Item/show").'?item_id='.$item_id);
}else{

$this->message("访问密码不正确");
Expand Down
2 changes: 1 addition & 1 deletion Application/Home/View/Page/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</div>
<div class="head-right pull-right">
<a href="#" class="btn btn-primary " id="save">保存</a>
<a href="../item/show?item_id={$item_id}&page_id={$page.page_id}" class="btn cancel">取消</a>
<a href="../Item/show?item_id={$item_id}&page_id={$page.page_id}" class="btn cancel">取消</a>
</div>
</header>
<br>
Expand Down
2 changes: 2 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /

0 comments on commit d8c01a4

Please sign in to comment.