示例#1
0
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * HUBzero is a registered trademark of Purdue University.
 *
 * @package   hubzero-cms
 * @copyright Copyright 2005-2015 HUBzero Foundation, LLC.
 * @license   http://opensource.org/licenses/MIT MIT
 */
namespace Components\Checkin\Admin;

// Access check.
if (!\User::authorise('core.manage', 'com_checkin')) {
    return \App::abort(403, \Lang::txt('JERROR_ALERTNOAUTHOR'));
}
require_once dirname(__DIR__) . DS . 'models' . DS . 'inspector.php';
require_once __DIR__ . DS . 'controllers' . DS . 'checkin.php';
// Instantiate controller
$controller = new Controllers\Checkin();
$controller->execute();
示例#2
0
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * HUBzero is a registered trademark of Purdue University.
 *
 * @package   hubzero-cms
 * @author    Shawn Rice <*****@*****.**>
 * @copyright Copyright 2005-2015 HUBzero Foundation, LLC.
 * @copyright Copyright 2005-2014 Open Source Matters, Inc.
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GPLv2
 */
namespace Components\Checkin\Admin;

// Access check.
if (!\User::authorise('core.manage', 'com_checkin')) {
    return \App::abort(404, \Lang::txt('JERROR_ALERTNOAUTHOR'));
}
require_once dirname(__DIR__) . DS . 'models' . DS . 'checkin.php';
require_once __DIR__ . DS . 'controllers' . DS . 'checkin.php';
// Instantiate controller
$controller = new Controllers\Checkin();
$controller->execute();
$controller->redirect();