本文整理汇总了PHP中alogs函数的典型用法代码示例。如果您正苦于以下问题:PHP alogs函数的具体用法?PHP alogs怎么用?PHP alogs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了alogs函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: save
public function save()
{
FS("ageconfig", $_POST['leve'], "Webconfig/");
alogs("Age", 0, 1, '会员年龄别称操作成功!');
//管理员操作日志
$this->success("操作成功", __URL__ . "/index/");
}
示例2: wapsave
public function wapsave()
{
FS("wappayconfig", $_POST['pay'], "Webconfig/");
alogs("Payonline", 0, 1, '执行了wap端第三方支付接口参数的编辑操作!');
//管理员操作日志
$this->success("操作成功le", __URL__ . "/wap");
}
示例3: doEdit
public function doEdit()
{
$data['user_name'] = text($_POST['user_name']);
$data['user_id'] = M('members')->getFieldByUser_name($data['user_name'], "id");
if (!$data['user_id']) {
$this->error("找不到你要备注的会员");
}
$data['remark'] = text($_POST['remark']);
if (!$data['remark']) {
$this->error("备注信息不可为空");
}
$data['admin_id'] = $_SESSION['admin_id'];
$data['admin_real_name'] = $_SESSION['admin_user_name'];
$data['add_time'] = time();
$newid = M('member_remark')->add($data);
if ($newid) {
alogs("Remark", $newid, 1, '成功执行了备注信息的添加操作!');
//管理员操作日志
$this->success("添加成功");
} else {
alogs("Remark", $newid, 0, '执行备注信息的添加操作失败!');
//管理员操作日志
$this->error("添加失败");
}
}
示例4: save
public function save()
{
alogs("Loginonline", 0, 1, '执行了登陆接口管理参数编辑操作!');
//管理员操作日志
FS("loginconfig", $_POST['login'], "Webconfig/");
$this->success("操作成功", __URL__ . "/index/");
}
示例5: investsave
public function investsave()
{
alogs("Leve", 0, 2, '执行了投资积分等级数据编辑操作!');
//管理员操作日志
FS("leveinvestconfig", $_POST['leve'], "Webconfig/");
$this->success("操作成功", __URL__ . "/invest/");
}
示例6: save
/**
* 保存参数
*
*/
public function save()
{
FS("loanconfig", $_POST['loan'], "Webconfig/");
alogs("Age", 0, 1, '托管设置操作成功!');
//管理员操作日志
$this->success("操作成功", __URL__ . "/index/");
}
示例7: logout
public function logout()
{
alogs("logout", '', '1', "管理员退出");
//require C("APP_ROOT")."Common/menu.inc.php";
session(null);
$this->assign('jumpUrl', '/');
$this->success('注销成功,现在转向首页');
}
示例8: cleanall
public function cleanall()
{
alogs("Global", 0, 1, '执行了所有缓存清除操作!');
//管理员操作日志
$dirs = array(C('APP_ROOT') . 'Runtime');
foreach ($dirs as $value) {
rmdirr($value);
echo "<div style='border:2px solid green; background:#f1f1f1; padding:20px;margin:20px;width:800px;font-weight:bold;color:green;text-align:center;'>\"" . $value . "\" 目录下缓存清除成功! </div> <br /><br />";
@mkdir($value, 0777, true);
}
}
示例9: _editFilter
public function _editFilter($id)
{
$x = D('Areaarticle')->where("id = {$id} AND area_id=" . session('admin_area_id') . "")->count();
if ($x == 0) {
alogs("AreaarticleEdit", 0, 0, '不能编辑,没有此文章的编辑权限!');
//管理员操作日志
$this->error("不能编辑,没有此文章的编辑权限");
exit;
}
$typelist = get_type_leve_list_area('0', 'Aacategory', session("admin_area_id"));
//分级栏目
$this->assign('type_list', $typelist);
}
示例10: upload
public function upload()
{
$model = M("hetong");
$model->startTrans();
if (!empty($_FILES['picpath']['name'])) {
$this->saveRule = 'uniqid';
//$this->saveRule = date("YmdHis",time()).rand(0,1000);
$this->savePathNew = C('ADMIN_UPLOAD_DIR') . 'Hetong/';
$this->thumbMaxWidth = C('HETONG_UPLOAD_H');
$this->thumbMaxHeight = C('HETONG_UPLOAD_W');
$info = $this->CUpload();
$data['hetong_img'] = $info[0]['savepath'] . $info[0]['savename'];
}
if ($data['hetong_img']) {
$model->hetong_img = $data['hetong_img'];
//合同图章
//$model->thumb_hetong_img=$data['thumb_hetong_img'];//合同图章缩略图
}
/*$model->add_time=time();
$model->deal_user=session('adminname');
$model->name=$_POST['name'];
$model->dizhi=$_POST['dizhi'];
$model->tel= intval($_POST['tel']);*/
$data['add_time'] = time();
$data['deal_user'] = session('adminname');
$data['name'] = text($_POST['name']);
$data['dizhi'] = text($_POST['dizhi']);
$data['tel'] = text($_POST['tel']);
$res = M('hetong')->field(true)->find();
if ($res == '') {
$result = $model->add($data);
} else {
$result = $model->where("id={$res['id']}")->save($data);
}
//保存当前数据对象
if ($result) {
//保存成功
$model->commit();
alogs("hetong", 0, 1, '合同章上传的操作成功!');
//管理员操作日志
//成功提示
$this->assign('jumpUrl', __URL__);
$this->success(L('上传成功'));
} else {
alogs("hetong", 0, 0, '合同章上传的操作失败!');
//管理员操作日志
$model->rollback();
//失败提示
$this->error(L('上传失败'));
}
}
示例11: save
public function save()
{
$str = text($_POST['o_time']) . "|";
$str .= text($_POST['o_rate']) . "|";
$str .= text($_POST['o_key']);
$res = file_put_contents($this->updir . "config.txt", $str);
if ($res) {
alogs("Auto", 0, 1, '自动值守程序参数修改成功!');
//管理员操作日志
$this->success("保存成功,如执行时间有改动,请重启程序");
} else {
alogs("Auto", 0, 0, '自动值守程序参数修改失败!');
//管理员操作日志
$this->error("保存失败,请重试");
}
}
示例12: addAdmin
public function addAdmin()
{
$aid = $_POST['aid'];
$data = array();
$data['user_name'] = $_POST['user_name'];
$data['user_pass'] = md5($_POST['user_pass']);
$data['real_name'] = $_POST['real_name'];
$data['is_ban'] = $_POST['is_ban'];
$data['user_word'] = $_POST['user_word'];
$data['invitation_code'] = $_POST['invitation_code'];
$ret = M('ausers')->where("id = {$aid}")->save($data);
//echo M()->getlastsql();die;
if ($ret) {
alogs("addAdmin", 1, '管理员更新配资专员信息成功!');
//管理员操作日志
$this->success("更新成功!");
} else {
alogs("addAdmin", 1, '管理员更新配资专员信息失败!');
//管理员操作日志
$this->error("更新失败!");
}
}
示例13: doUploadShow
public function doUploadShow()
{
$show['uid'] = intval($_REQUEST['uid']);
$show['deal_time'] = time();
$show['deal_user'] = session('adminname');
//M("member_borrow_show")->where("uid={$show['uid']}")->delete();
foreach ($_POST['swfimglist'] as $key => $v) {
$show['data_url'] = substr($v, 1);
$show['data_name'] = $_POST['picinfo'][$key];
$show['sort'] = $_POST['picsort'][$key];
M("member_borrow_show")->add($show);
}
alogs("Memberdata", 0, 1, '成功执行了上传会员展示资料的操作!');
//管理员操作日志
//$this->assign('jumpUrl', __URL__."/".session('listaction'));
$this->success("保存成功");
}
示例14: export
public function export()
{
$proid = (int) $_REQUEST['id'];
$proinfo = M('promote')->find($proid);
if (empty($proinfo)) {
$this->error('数据错误');
}
import("ORG.Io.Excel");
alogs("CapitalAccount", 0, 1, '执行了所有会员资金列表导出操作!');
//管理员操作日志
$map = array();
if ($_REQUEST['uname']) {
$map['m.user_name'] = array("like", urldecode($_REQUEST['uname']) . "%");
$search['uname'] = urldecode($_REQUEST['uname']);
}
if ($_REQUEST['realname']) {
$map['mi.real_name'] = urldecode($_REQUEST['realname']);
$search['realname'] = $map['mi.real_name'];
}
if (!empty($_REQUEST['bj']) && !empty($_REQUEST['lx']) && !empty($_REQUEST['money'])) {
if ($_REQUEST['lx'] == 'allmoney') {
if ($_REQUEST['bj'] == 'gt') {
$bj = '>';
} else {
if ($_REQUEST['bj'] == 'lt') {
$bj = '<';
} else {
if ($_REQUEST['bj'] == 'eq') {
$bj = '=';
}
}
}
$map['_string'] = "(mm.account_money+mm.back_money) " . $bj . $_REQUEST['money'];
} else {
$map[$_REQUEST['lx']] = array($_REQUEST['bj'], $_REQUEST['money']);
}
$search['bj'] = $_REQUEST['bj'];
$search['lx'] = $_REQUEST['lx'];
$search['money'] = $_REQUEST['money'];
}
$map['m.tid'] = $proid;
//分页处理
import("ORG.Util.Page");
$count = M('members m')->join("{$this->pre}member_money mm ON mm.uid=m.id")->join("{$this->pre}member_info mi ON mi.uid=m.id")->where($map)->count('m.id');
$p = new Page($count, C('ADMIN_PAGE_SIZE'));
$page = $p->show();
$Lsql = "{$p->firstRow},{$p->listRows}";
//分页处理
$pre = $this->pre;
$field = 'm.id,m.reg_time,m.user_email,m.user_phone,m.user_name,m.user_type,mi.real_name,mm.money_freeze,mm.money_collect,(mm.account_money+mm.back_money) total_money,mm.account_money,mm.back_money';
$list = M('members m')->field($field)->join("{$this->pre}member_money mm ON mm.uid=m.id")->join("{$this->pre}member_info mi ON mi.uid=m.id")->where($map)->order("m.id DESC")->select();
foreach ($list as $key => $v) {
$uid = $v['id'];
//$umoney = M('members')->field('account_money,reward_money')->find($uid);
//待确认投标
$investing = M()->query("select sum(investor_capital) as capital from {$pre}borrow_investor where investor_uid={$uid} AND status=1");
//待收金额
$invest = M()->query("select sum(investor_capital-receive_capital) as capital,sum(reward_money) as jiangli,sum(investor_interest-receive_interest) as interest from {$pre}borrow_investor where investor_uid={$uid} AND status =4");
//$invest = M()->query("SELECT sum(capital) as capital,sum(interest) as interest FROM {$pre}investor_detail WHERE investor_uid={$uid} AND `status` =7");
//待付金额
$borrow = M()->query("select sum(borrow_money-repayment_money) as repayment_money,sum(borrow_interest-repayment_interest) as repayment_interest from {$pre}borrow_info where borrow_uid={$uid} AND borrow_status=6");
$withdraw0 = M('member_withdraw')->where("uid={$uid} AND withdraw_status=0")->sum('withdraw_money');
//待提现
$withdraw1 = M('member_withdraw')->where("uid={$uid} AND withdraw_status=1")->sum('withdraw_money');
//提现处理中
$withdraw2 = M('member_withdraw')->where("uid={$uid} AND withdraw_status=2")->sum('withdraw_money');
//已提现
$withdraw3 = M('member_withdraw')->where("uid={$uid} AND withdraw_status=0")->sum('second_fee');
//待提现手续费
$withdraw4 = M('member_withdraw')->where("uid={$uid} AND withdraw_status=1")->sum('second_fee');
//处理中提现手续费
$borrowANDpaid = M()->query("select status,sort_order,borrow_id,sum(capital) as capital,sum(interest) as interest from {$pre}investor_detail where borrow_uid={$uid} AND status in(1,2,3)");
$investEarn = M('borrow_investor')->where("investor_uid={$uid} and status in(4,5,6)")->sum('receive_interest');
$investPay = M('borrow_investor')->where("investor_uid={$uid} status<>2")->sum('investor_capital');
$investEarn1 = M('borrow_investor')->where("investor_uid={$uid} and status in(4,5,6)")->sum('invest_fee');
//投资者管理费
$payonline = M('member_payonline')->where("uid={$uid} AND status=1")->sum('money');
//累计支付佣金
$commission1 = M('borrow_investor')->where("investor_uid={$uid}")->sum('paid_fee');
$commission2 = M('borrow_info')->where("borrow_uid={$uid} AND borrow_status in(2,4)")->sum('borrow_fee');
$uplevefee = M('member_moneylog')->where("uid={$uid} AND type=2")->sum('affect_money');
$adminop = M('member_moneylog')->where("uid={$uid} AND type=7")->sum('affect_money');
$txfee = M('member_withdraw')->where("uid={$uid} AND withdraw_status=2")->sum('second_fee');
$czfee = M('member_payonline')->where("uid={$uid} AND status=1")->sum('fee');
$interest_needpay = M()->query("select sum(borrow_interest-repayment_interest) as need_interest from {$pre}borrow_info where borrow_uid={$uid} AND borrow_status=6");
$interest_willget = M()->query("select sum(investor_interest-receive_interest) as willget_interest from {$pre}borrow_investor where investor_uid={$uid} AND status=4");
$interest_jiliang = M('borrow_investor')->where("borrow_uid={$uid}")->sum('reward_money');
//累计支付投标奖励
$moneylog = M("member_moneylog")->field("type,sum(affect_money) as money")->where("uid={$uid}")->group("type")->select();
$listarray = array();
foreach ($moneylog as $vs) {
$listarray[$vs['type']]['money'] = $vs['money'] > 0 ? $vs['money'] : $vs['money'] * -1;
}
//$money['kyxjje'] = $umoney['account_money'];//可用现金金额
$money['kyxjje'] = $v['account_money'];
//可用现金金额
$money['dsbx'] = floatval($invest[0]['capital'] + $invest[0]['interest']);
//待收本息
$money['dsbj'] = $invest[0]['capital'];
//待收本金
//.........这里部分代码省略.........
示例15: _doDelFilter
public function _doDelFilter($id)
{
$n = M('area')->where("reid in ({$id})")->count();
if ($n > 0) {
alogs("AreaDel", 0, 0, '删除失败,所删除的栏目包含有子地区!');
//管理员操作日志
$this->error("删除失败,所删除的栏目包含有子地区");
exit;
}
}