<?php
/**
 * The config items for rights for front pages..
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPLV1.2 (http://zpl.pub/page/zplv12.html)
 * @author      Chunsheng Wang <chunsheng@cnezsoft.com>
 * @package     chanzhiEPS
 * @version     $Id$
 * @link        http://www.chanzhi.org
 */
/* Init the rights. */
$config->rights = new stdclass();

/* For guest users. */
$config->rights->guest['index']['index']    = 'index';
$config->rights->guest['article']['index']  = 'index';
$config->rights->guest['article']['browse'] = 'browse';
$config->rights->guest['article']['view']   = 'view';

$config->rights->guest['blog']['index'] = 'index';
$config->rights->guest['blog']['view']  = 'view';

$config->rights->guest['product']['index']    = 'index';
$config->rights->guest['product']['browse']   = 'browse';
$config->rights->guest['product']['view']     = 'view';
$config->rights->guest['product']['redirect'] = 'redirect';

$config->rights->guest['company']['index']   = 'index';
$config->rights->guest['company']['contact'] = 'contact';

$config->rights->guest['links']['index'] = 'index';

$config->rights->guest['forum']['index'] = 'index';
$config->rights->guest['forum']['board'] = 'board';

$config->rights->guest['thread']['view']   = 'view';
$config->rights->guest['thread']['post']   = 'post';
$config->rights->guest['thread']['locate'] = 'locate';

$config->rights->guest['message']['index']   = 'index';
$config->rights->guest['message']['comment'] = 'show';
$config->rights->guest['message']['notify']  = 'notify';
$config->rights->guest['message']['post']    = 'post';
$config->rights->guest['message']['reply']   = 'reply';

$config->rights->guest['book']['index']  = 'index';
$config->rights->guest['book']['browse'] = 'browse';
$config->rights->guest['book']['read']   = 'read';

$config->rights->guest['user']['login']         = 'login';
$config->rights->guest['user']['register']      = 'register';
$config->rights->guest['user']['oauthlogin']    = 'oauthlogin';
$config->rights->guest['user']['oauthcallback'] = 'oauthcallback';
$config->rights->guest['user']['oauthregister'] = 'oauthregister';
$config->rights->guest['user']['oauthbind']     = 'oauthbind';
$config->rights->guest['user']['oauthunbind']   = 'oauthunbind';
$config->rights->guest['user']['ignorebind']    = 'ignorebind';
$config->rights->guest['user']['message']       = 'message';
$config->rights->guest['user']['agreement']     = 'agreement';

$config->rights->guest['rss']['index']       = 'index';
$config->rights->guest['sitemap']['index']   = 'index';

$config->rights->guest['file']['download']    = 'download';
$config->rights->guest['file']['printfiles']  = 'printfiles';

$config->rights->guest['errors']['index'] = 'index';

$config->rights->guest['page']['index'] = 'index';
$config->rights->guest['page']['view']  = 'view';

$config->rights->guest['misc']['qrcode']         = 'qrcode';
$config->rights->guest['misc']['ajaxgetfiniger'] = 'ajaxgetfiniger';
$config->rights->guest['misc']['printtopbar']    = 'printtopbar';

$config->rights->guest['search']['index'] = 'index';

$config->rights->guest['cart']['add']           = 'add';
$config->rights->guest['cart']['delete']        = 'delete';
$config->rights->guest['cart']['browse']        = 'browse';
$config->rights->guest['cart']['count']         = 'count';
$config->rights->guest['order']['confirm']      = 'confirm';
$config->rights->guest['order']['check']        = 'check';
$config->rights->guest['order']['processorder'] = 'processorder';

$config->rights->guest['log']['record'] = 'record';

$config->rights->guest['score']['rankinglist']  = 'rankinglist';
$config->rights->guest['score']['rule']         = 'rule';
$config->rights->guest['score']['noscore']      = 'noscore';
$config->rights->guest['score']['processorder'] = 'processorder';

$config->rights->guest['ui']['getencrypt'] = 'getencrypt';

$config->rights->guest['source']['css'] = 'css';
$config->rights->guest['source']['js']  = 'js';

/* For logged member. */
$config->rights->member['article']['submission'] = 'submission';
$config->rights->member['article']['post']       = 'post';
$config->rights->member['article']['modify']     = 'modify';
$config->rights->member['article']['delete']     = 'delete';

$config->rights->member['thread']['post']         = 'post';
$config->rights->member['thread']['reply']        = 'reply';
$config->rights->member['thread']['edit']         = 'edit';
$config->rights->member['thread']['switchstatus'] = 'switchstatus';
$config->rights->member['thread']['stick']        = 'stick';
$config->rights->member['thread']['delete']       = 'delete';
$config->rights->member['thread']['transfer']     = 'transfer';
$config->rights->member['thread']['deletefile']   = 'deletefile';
$config->rights->member['thread']['addscore']     = 'addscore';

$config->rights->member['reply']['post']       = 'post';
$config->rights->member['reply']['eidt']       = 'edit';
$config->rights->member['reply']['hide']       = 'hide';
$config->rights->member['reply']['delete']     = 'delete';
$config->rights->member['reply']['deletefile'] = 'deletefile';

$config->rights->member['user']['control']    = 'control';
$config->rights->member['user']['profile']    = 'profile';
$config->rights->member['user']['edit']       = 'edit';
$config->rights->member['user']['logout']     = 'logout';
$config->rights->member['user']['thread']     = 'thread';
$config->rights->member['user']['reply']      = 'reply';
$config->rights->member['user']['message']    = 'message';
$config->rights->member['user']['checkemail'] = 'checkemail';
$config->rights->member['user']['setemail']   = 'setemail';
$config->rights->member['user']['score']      = 'score';

$config->rights->member['file']['ajaxupload'] = 'ajaxupload';

$config->rights->member['message']['view']        = 'view';
$config->rights->member['message']['batchdelete'] = 'batchdelete';

$config->rights->member['order']['create']          = 'pay';
$config->rights->member['order']['browse']          = 'browse';
$config->rights->member['order']['track']           = 'track';
$config->rights->member['order']['cancel']          = 'cancel';
$config->rights->member['order']['confirmdelivery'] = 'confirmdelivery';
$config->rights->member['order']['redirect']        = 'redirect';
$config->rights->member['order']['edit']            = 'edit';
$config->rights->member['order']['delete']          = 'delete';
$config->rights->member['order']['view']            = 'view';
$config->rights->member['order']['applyrefund']     = 'applyrefund';

$config->rights->member['address']['create'] = 'create';
$config->rights->member['address']['edit']   = 'edit';
$config->rights->member['address']['delete'] = 'delete';
$config->rights->member['address']['browse'] = 'browse';

$config->rights->member['score']['buyscore']      = 'buyscore';
$config->rights->member['score']['payorder']      = 'payorder';
$config->rights->member['score']['resetmaxlogin'] = 'resetmaxlogin';
