123456789101112131415161718192021222324 |
- <?php namespace Place\Api;
- use Dever;
- use Place\Lib\Core;
- use Dever\Helper\Secure;
- class Url extends Core
- {
- public function __construct()
- {
- }
- public function place()
- {
- $id = Dever::input('id');
- $info = Dever::db('info', 'place')->find($id);
- if ($info) {
- $extend = Dever::load('common', 'manage')->extend();
- $param['p'] = Dever::load('util', 'place')->entry($extend['info_id'], $extend['module_id'], $extend['data_id'], $id);
- $link = Dever::url('place/data.home', $param);
- header('HTTP/1.1 301 Moved Permanently');
- header('Location: ' . $link);
- }
- }
- }
|