当前位置: 首页>>代码示例>>PHP>>正文


PHP ls_redirect函数代码示例

本文整理汇总了PHP中ls_redirect函数的典型用法代码示例。如果您正苦于以下问题:PHP ls_redirect函数的具体用法?PHP ls_redirect怎么用?PHP ls_redirect使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ls_redirect函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: json_encode

    $LS_PROVED = 1;
    $LS_PAGE_ACTIVE = 1;
    $checkp = 1;
}
if ($page == 'users') {
    require_once 'user.php';
    $LS_PROVED = 1;
    $LS_PAGE_ACTIVE = 1;
    $checkp = 1;
}
if ($page == 'checkstatus') {
    if (!LS_USERID_RHINO) {
        echo json_encode(array('status' => 0));
    } else {
        echo json_encode(array('status' => 1));
    }
    exit;
}
// if page not found
if ($checkp == 0) {
    ls_redirect(BASE_URL . 'index.php?p=404');
}
if (isset($template) && $template != '') {
    include_once APP_PATH . 'operator/template/' . $template;
}
// Get the plugin template
if (isset($plugin_template) && $plugin_template != '') {
    include_once APP_PATH . $plugin_template;
}
// Finally close all db connections
$lsdb->ls_close();
开发者ID:riteshkmr33,项目名称:ovessnce,代码行数:31,代码来源:index.php

示例2: ls_redirect

                    ls_redirect(BASE_URL . 'index.php?p=error&sp=mysql');
                } else {
                    ls_redirect(BASE_URL . 'index.php?p=success');
                }
            }
            if (isset($defaults['delete'])) {
                $lockuser = $defaults['ls_delete_user'];
                $useridarray = explode(',', LS_SUPERADMIN);
                for ($i = 0; $i < count($lockuser); $i++) {
                    $locked = $lockuser[$i];
                    if (!in_array($locked, $useridarray)) {
                        // Delete user
                        $lsdb->query('DELETE FROM ' . $lstable . ' WHERE id = ' . $locked . '');
                    }
                    $result = 1;
                }
                if (!$result) {
                    ls_redirect(BASE_URL . 'index.php?p=error&sp=mysql');
                } else {
                    ls_redirect(BASE_URL . 'index.php?p=success');
                }
            }
        }
        if ($LS_SPECIALACCESS) {
            $LS_USER_ALL = ls_get_user_all($lstable, '');
        } else {
            $LS_USER_ALL = ls_get_user_all($lstable, LS_USERID_RHINO);
        }
        // Call the template
        $template = 'user.php';
}
开发者ID:riteshkmr33,项目名称:ovessnce,代码行数:31,代码来源:user.php

示例3: die

|| #################################################################### ||
|| # Rhino 2.5                                                        # ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright 2014 Rhino All Rights Reserved.                        # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| #   ---------------- Rhino IS NOT FREE SOFTWARE ----------------   # ||
|| #                  http://www.livesupportrhino.com                 # ||
|| #################################################################### ||
\*======================================================================*/
// Check if the file is accessed only via index.php if not stop the script from running
if (!defined('LS_OPERATOR_PREVENT_ACCESS')) {
    die('You cannot access this file directly.');
}
// Check if the user has access to this file
if (!LS_USERID_RHINO || !LS_OPERATORACCESS) {
    ls_redirect(BASE_URL);
}
// The DB connections data
require_once '../class/class.export.php';
// All the tables we need for this plugin
$errors = array();
$lstable = DB_PREFIX . 'jrc_sessions';
switch ($page1) {
    case 'export':
        $sql = 'SELECT name, email FROM ' . $lstable . ' WHERE email REGEXP "^[A-Z0-9._%-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}$" GROUP BY email ORDER BY id DESC';
        $result = $lsdb->query($sql);
        if ($lsdb->affected_rows > 0) {
            while ($row = $result->fetch_assoc()) {
                // collect each record into $_data
                $lsdata[] = $row;
            }
开发者ID:riteshkmr33,项目名称:ovessnce,代码行数:31,代码来源:emails.php

示例4: ls_redirect

// Stop the chat
if ($page == 'stop') {
    require_once 'stop.php';
    $LS_CHECK_PAGE = 1;
    $PAGE_SHOWTITLE = 1;
}
// Stop the chat
if ($page == 'feedback') {
    require_once 'feedback.php';
    $LS_CHECK_PAGE = 1;
    $PAGE_SHOWTITLE = 1;
}
// Get the button
if ($page == 'b') {
    require_once 'button.php';
    $LS_CHECK_PAGE = 1;
    $PAGE_SHOWTITLE = 1;
}
// Get the 404 page
if ($page == '404') {
    $PAGE_TITLE = '404 ';
    require_once '404.php';
    $LS_CHECK_PAGE = 1;
    $PAGE_SHOWTITLE = 1;
}
// if page not found
if ($LS_CHECK_PAGE == 0) {
    ls_redirect(LS_rewrite::lsParseurl('404', '', '', '', ''));
}
// Finally close all db connections
$lsdb->ls_close();
开发者ID:riteshkmr33,项目名称:ovessnce,代码行数:31,代码来源:index.php

示例5: unset

                    }
                }
            }
        }
        $mail->Subject = LS_TITLE;
        $mail->AltBody = $tl['general']['g45'];
        $mail->MsgHTML($listform);
        if ($mail->Send()) {
            unset($_SESSION['jrc_captcha']);
            unset($_SESSION['chatbox_redirected']);
            // Ajax Request
            if ($_SERVER['HTTP_X_REQUESTED_WITH']) {
                header('Cache-Control: no-cache');
                die(json_encode(array('status' => 1, 'html' => $tl["general"]["g65"])));
            } else {
                ls_redirect($_SERVER['HTTP_REFERER']);
            }
        }
    }
}
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <title><?php 
echo $tl["general"]["g1"];
?>
 - <?php 
echo LS_TITLE;
?>
</title>
开发者ID:riteshkmr33,项目名称:ovessnce,代码行数:31,代码来源:contact.php

示例6: smartsql

            $lsdb->query('INSERT INTO ' . DB_PREFIX . 'jrc_transcript SET 
				name = "Admin",
				message = "' . smartsql(LS_WELCOME_MESSAGE) . '",
				convid = "' . $cid . '",
				time = NOW(),
				class = "admin"');
        }
        // Redirect page
        $gochat = LS_rewrite::lsParseurl('chat', '', '', '', '');
        /* Outputtng the error messages */
        if ($_SERVER['HTTP_X_REQUESTED_WITH']) {
            header('Cache-Control: no-cache');
            echo json_encode(array('login' => 1, 'link' => $gochat));
            exit;
        }
        ls_redirect($gochat);
    }
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<title><?php 
echo $tl["general"]["g"];
?>
 - <?php 
echo LS_TITLE;
?>
</title>
	<meta charset="utf-8">
	<meta name="author" content="Live Support Rhino" />
开发者ID:riteshkmr33,项目名称:ovessnce,代码行数:31,代码来源:start.php

示例7: header

                                // Step 2: Use sendText( $to, $from, $message ) method to send a message.
                                $info = $nexmo_sms->sendText($row['phonenumber'], LS_TITLE, LS_TW_MSG);
                            }
                        }
                    }
                }
            }
        }
        // Redirect page
        $gochat = LS_rewrite::lsParseurl('chat', $_POST['slide_chat'], $_POST['lang'], '', '');
        /* Outputtng the error messages */
        if ($_SERVER['HTTP_X_REQUESTED_WITH']) {
            header('Cache-Control: no-cache');
            die(json_encode(array('login' => 1, 'link' => html_entity_decode($gochat))));
        }
        ls_redirect(html_entity_decode($gochat));
    }
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<title><?php 
echo $tl["general"]["g"];
?>
 - <?php 
echo LS_TITLE;
?>
</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
开发者ID:riteshkmr33,项目名称:ovessnce,代码行数:31,代码来源:start.php

示例8: die

|| #   ---------------- Rhino IS NOT FREE SOFTWARE ----------------   # ||
|| #                  http://www.livesupportrhino.com                 # ||
|| #################################################################### ||
\*======================================================================*/
// Check if the file is accessed only via index.php if not stop the script from running
if (!defined('LS_PREVENT_ACCESS')) {
    die('You cannot access this file directly.');
}
// start buffer
ob_start();
if (empty($_SESSION['jrc_userid']) || empty($_SESSION['convid']) || LS_base::lsCheckSession($_SESSION['jrc_userid'], $_SESSION['convid'])) {
    // Destroy Session
    unset($_SESSION['convid']);
    unset($_SESSION['jrc_userid']);
    unset($_SESSION['jrc_email']);
    ls_redirect(html_entity_decode(LS_rewrite::lsParseurl('start', $page1, $page2, '', '')));
}
if (LS_FEEDBACK) {
    $parseurl = LS_rewrite::lsParseurl('feedback', $page1, $page2, '', '');
} else {
    $parseurl = LS_rewrite::lsParseurl('stop', $page1, $page2, '', '');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<title><?php 
echo $tl["general"]["g"];
?>
 - <?php 
echo LS_TITLE;
开发者ID:riteshkmr33,项目名称:ovessnce,代码行数:31,代码来源:chat.php


注:本文中的ls_redirect函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。