Skip to content

Instantly share code, notes, and snippets.

@Yexiaoxing
Created November 16, 2013 12:43
Show Gist options
  • Save Yexiaoxing/7499748 to your computer and use it in GitHub Desktop.
Save Yexiaoxing/7499748 to your computer and use it in GitHub Desktop.
discuz_checklogin.php
<?php
require './source/class/class_core.php';
$discuz = & discuz_core::instance();
$discuz->init_cron = false;
$discuz->init_session = false;
$discuz->init();
if (!empty($_G['uid'])){
//logged in
}else{
//not login yet
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment