當前位置: 首頁>>代碼示例>>PHP>>正文


PHP JB_admin_header函數代碼示例

本文整理匯總了PHP中JB_admin_header函數的典型用法代碼示例。如果您正苦於以下問題:PHP JB_admin_header函數的具體用法?PHP JB_admin_header怎麽用?PHP JB_admin_header使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了JB_admin_header函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: define

<?php

###########################################################################
# Copyright Jamit Software 2012, http://www.jamit.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
define('NO_HOUSE_KEEPING', true);
require "../config.php";
require dirname(__FILE__) . "/admin_common.php";
JB_admin_header('Admin -> SSL');
?>

<h3>SSL protection</h3>
<p>If your server has an SSL certificate installed then it is possible to access the admin/ , employers/ and myjobs/ directories using SSL without any modification to the job board files. To force users to the SSL version of your site, simply modify the links in your theme's template files. </p>
<p>Unfortunatelly, It is out of scope for Jamit Software to support your SSL settings, as each server is different and installation of a cerificate varies depending on your server.</p>
<p>However, if you are using the Apache server, then you can put the following rules in to your .htaccess file to automatically force users to SSL: (For Apache experts only, not supported by Jamit Software)</p>
<?php 
$base = JB_BASE_HTTP_PATH;
$base = preg_replace('#https?://#', '', JB_BASE_HTTP_PATH);
$a = array();
$a = explode('/', $base);
$host = array_shift($a);
// get rid of the host part
$base = implode("/", $a);
?>
<hr>
<pre>
&lt;IfModule mod_rewrite.c>
開發者ID:vinothtimes,項目名稱:phpdoc,代碼行數:30,代碼來源:ssl.php

示例2: define

<?php

###########################################################################
# Copyright Jamit Software 2012, http://www.jamit.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
@ini_set('memory_limit', '16M');
define('NO_HOUSE_KEEPING', true);
define('MAIN_PHP', '1');
define('JB_VERSION', '3.6.13');
require "../config.php";
require "admin_common.php";
JB_admin_header('Admin -> Main');
ini_set('max_execution_time', 100200);
function check_connection($user, $pass, $host)
{
    if (!($connection = @mysql_connect("{$host}", "{$user}", "{$pass}"))) {
        return false;
    }
    return $connection;
}
function check_db($db_name, $connection)
{
    if (!($db = @mysql_select_db($db_name, $connection))) {
        return false;
    }
    return true;
}
if ($conn = check_connection(JB_MYSQL_USER, JB_MYSQL_PASS, JB_MYSQL_HOST)) {
開發者ID:vinothtimes,項目名稱:phpdoc,代碼行數:31,代碼來源:main.php

示例3: dirname

###########################################################################
# Copyright Jamit Software 2012, http://www.jamit.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
include '../config.php';
require dirname(__FILE__) . "/admin_common.php";
require_once '../include/posts.inc.php';
require_once '../include/category.inc.php';
$post_id = (int) $_REQUEST['post_id'];
$JBPage = new JBJobPage($post_id, $admin = true);
extract($JBPage->get_vars(), EXTR_REFS);
// make the $data available
JB_admin_header('Admin -> Post Window');
?>
<h2 style="align:center;">Job Post Preview</h2>
<p style="align:center;"><input type="button" name="" value="Close" onclick="window.close()"></p>

<?php 
$JBPage->output('HALF');
?>

<p style="align:center;"><input type="button" name="" value="Close" onclick="window.close()"></p>
<?php 
if ($_REQUEST['post_id'] != '' && JB_MAP_DISABLED == "NO") {
    $pin_y = $DynamicForm->get_value('pin_y');
    $pin_x = $DynamicForm->get_value('pin_x');
    JB_echo_map_pin_position_js($pin_x, $pin_y);
}
開發者ID:vinothtimes,項目名稱:dchqtest,代碼行數:30,代碼來源:post_window.php

示例4: dirname

<?php

###########################################################################
# Copyright Jamit Software 2012, http://www.jamit.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
require '../config.php';
require dirname(__FILE__) . "/admin_common.php";
require_once '../include/category.inc.php';
JB_admin_header('Email Config');
?>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000; "></div>
<b>[Email Templates]</b>
<!--
<span style="background-color: #F2F2F2; border-style:outset; padding: 5px;"><a href="edit_config.php">Main</a></span>
 <span style="background-color: #F2F2F2; border-style:outset; padding:5px; "><a href="editcats.php">Categories</a></span>
 <span style="background-color: #F2F2F2; border-style:outset; padding:5px; "><a href="editcodes.php">Codes</a></span>
 <span style="background-color: #F2F2F2; border-style:outset; padding:5px; "><a href="language.php">Languages</a></span>
 <span style="background-color: #FFFFCC; border-style:outset; padding:5px; "><a href="emailconfig.php">Email Templates</a></span>	
-->

<hr>
<table border="0" cellSpacing="1" cellPadding="3" bgColor="#d9d9d9">
  <tr bgcolor='#ffffff'>
    <td bgColor="#eaeaea"><b>Sign up</b></td>
    <td <?php 
if ($_REQUEST['EmailID'] == 1) {
    echo " bgcolor='#FFFFCC' ";
}
開發者ID:vinothtimes,項目名稱:phpdoc,代碼行數:31,代碼來源:emailconfig.php

示例5: dirname

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
require '../config.php';
require dirname(__FILE__) . "/admin_common.php";
//require_once ('../include/dynamic_forms.php');
require_once '../include/category.inc.php';
require_once '../include/employers.inc.php';
if (!isset($_REQUEST['mode'])) {
    $_REQUEST['mode'] = 'VIEW';
}
$mode = $_REQUEST['mode'];
$EmployerForm =& JB_get_DynamicFormObject(4);
$EmployerForm->set_mode($mode);
JB_admin_header('Admin -> Employer Signup Form');
?>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000; "></div>
<b>[Employer's Signup Form]</b><span style="background-color: <?php 
if ($_REQUEST['mode'] != 'EDIT') {
    echo "#FFFFCC";
}
?>
; border-style:outset; padding: 5px;"><a href="signup_employer_form.php?mode=VIEW">View Form</a></span> <span style="background-color:  <?php 
if ($_REQUEST['mode'] == 'EDIT' && $_REQUEST['NEW_FIELD'] == '') {
    echo "#FFFFCC";
}
?>
; border-style:outset; padding: 5px;"><a href="signup_employer_form.php?mode=EDIT">Edit Fields</a></span> <span style="background-color: <?php 
if ($_REQUEST['mode'] == 'EDIT' && $_REQUEST['NEW_FIELD'] != '') {
    echo "#FFFFCC";
開發者ID:vinothtimes,項目名稱:phpdoc,代碼行數:31,代碼來源:signup_employer_form.php

示例6: dirname

<?php

###########################################################################
# Copyright Jamit Software 2012, http://www.jamit.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
$dir = dirname(__FILE__);
$dir = explode(DIRECTORY_SEPARATOR, $dir);
$blank = array_pop($dir);
$dir = implode('/', $dir);
require $dir . "/config.php";
require dirname(__FILE__) . "/admin_common.php";
JB_admin_header('Admin -> Cron Setup');
?>
<h3>About the Cron Daemon</h3>
<p>Cron Daemon is a tool on Unix type servers which allows you to schedule the running of tasks, chronologically. The job board needs to process the Outgoing Email queue every few minutes and  process the email alerts every hour. Additionally, several other 'house keeping' tasks need to be performed. (Note: On Windows a similar tool exists in the System Tools folder called 'Scheduled Tasks')</p> 
<p>
It is recommended that you set up a Cron job / scheduled task for the Job Board. If your hosting company does not provide this service then the job board can emulate a cron job, although this approach is not recommended for large websites. You can turn cron emulation On / Off from the Main Config.
</p>
<p>
The script that needs to be scheduled to run every minute is called cron.php and it's located in the cron/ directory. On <i>this server</i>, the full path to this script is:<b><?php 
echo $dir . "/cron/cron.php";
?>
</b> and the http address is: <b><?php 
if (defined('JB_CRON_HTTP_ALLOW') && JB_CRON_HTTP_ALLOW != 'YES') {
    ?>
<strike><?php 
}
echo JB_BASE_HTTP_PATH . "cron/cron.php";
開發者ID:vinothtimes,項目名稱:dchqtest,代碼行數:31,代碼來源:cron.php

示例7: dirname

<?php

###########################################################################
# Copyright Jamit Software 2012, http://www.jamit.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
include "../config.php";
require dirname(__FILE__) . "/admin_common.php";
require_once "../include/resumes.inc.php";
JB_admin_header('Admin -> Reveal Resume');
?>

<h3>
Step 1 - Search For Employer
</h3>
<form style="margin: 0" action="<?php 
echo htmlentities($_SERVER['PHP_SELF']);
?>
?action=search" method="post">
  <input type="hidden" name="resume_id" value="<?php 
echo jb_escape_html($_REQUEST['resume_id']);
?>
" >      
           <center>
         <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse"  id="AutoNumber2" width="100%">
    
    <tr>
      <td width="63" bgcolor="#EDF8FC" valign="top">
      <p style="float: right;"><font size="2" face="Arial"><b>Name</b></font></td>
開發者ID:vinothtimes,項目名稱:phpdoc,代碼行數:31,代碼來源:reveal_resume.php

示例8: dirname

<?php

###########################################################################
# Copyright Jamit Software 2012, http://www.jamit.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
require "../config.php";
require dirname(__FILE__) . "/admin_common.php";
JB_admin_header('Admin -> Manage Memberships');
if ($_REQUEST['add_month'] != '') {
    $invoice_row = JB_get_membership_invoice_row($_REQUEST['invoice_id']);
    $t_end = strtotime($invoice_row['member_end']);
    $t_next_month = mktime(date('H', $t_end), date('i', $t_end), date('s', $t_end), date('n', $t_end) + 1, date('j', $t_end), date('Y', $t_end));
    $d_next_month = gmdate("Y-m-d H:i:s", $t_next_month);
    $sql = "UPDATE membership_invoices SET member_end='{$d_next_month}' WHERE invoice_id = '" . jb_escape_sql($_REQUEST['invoice_id']) . "' ";
    jb_mysql_query($sql);
    $JBMarkup->ok_msg('Added 1 month');
}
if ($_REQUEST['sub_month'] != '') {
    $invoice_row = JB_get_membership_invoice_row($_REQUEST['invoice_id']);
    $t_end = strtotime($invoice_row['member_end']);
    $t_next_month = mktime(date('H', $t_end), date('i', $t_end), date('s', $t_end), date('n', $t_end) - 1, date('j', $t_end), date('Y', $t_end));
    $d_next_month = gmdate("Y-m-d H:i:s", $t_next_month);
    $sql = "UPDATE membership_invoices SET member_end='{$d_next_month}' WHERE invoice_id = '" . jb_escape_sql($_REQUEST['invoice_id']) . "' ";
    jb_mysql_query($sql);
    $JBMarkup->ok_msg('Subtracted 1 month');
}
if ($_REQUEST['never_expire'] != '') {
    $sql = "UPDATE membership_invoices SET months_duration='0' WHERE invoice_id = '" . jb_escape_sql($_REQUEST['invoice_id']) . "' ";
開發者ID:vinothtimes,項目名稱:dchqtest,代碼行數:31,代碼來源:member_modify.php

示例9: dirname

<?php

###########################################################################
# Copyright Jamit Software 2012, http://www.jamit.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
require "../config.php";
require dirname(__FILE__) . "/admin_common.php";
$offset = (int) $_REQUEST['offset'];
$post_id = (int) $_REQUEST['post_id'];
if ($post_id > 0) {
    $JBPage = new JBJobPage($post_id, $admin = true);
}
JB_admin_header('Admin -> Applications');
$ALM =& JB_get_ListMarkupObject('JBAppListMarkup');
$ALM->set_list_mode('ADMIN');
$COLSPAN = 5;
JBPLUG_do_callback('admin_apply_list_action_colspan', $COLSPAN);
// a plugin can also set the colspan
$ALM->set_colspan($COLSPAN);
$post_id = (int) $_REQUEST['post_id'];
$action = jb_alpha($_REQUEST['action']);
$apps = $_REQUEST['apps'];
if ($_REQUEST['delete']) {
    for ($i = 0; $i < sizeof($apps); $i++) {
        $sql = "DELETE FROM `applications` WHERE `app_id`='" . jb_escape_sql($apps[$i]) . "' ";
        $result = JB_mysql_query($sql) or die(mysql_error());
    }
    if (sizeof($apps)) {
開發者ID:vinothtimes,項目名稱:phpdoc,代碼行數:31,代碼來源:apps.php

示例10: dirname

<?php

###########################################################################
# Copyright Jamit Software 2012, http://www.jamit.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
@set_time_limit(180);
require "../config.php";
require dirname(__FILE__) . "/admin_common.php";
if (!defined('JB_MOD_REWRITE_DIR')) {
    define('JB_MOD_REWRITE_DIR', 'category/');
}
JB_admin_header('Admin -> Mod Rewrite');
?>
<h3>Extras: mod_rewrite</h3>
<br>
Settings: <a href="edit_config.php#mod_rewrite">Edit Mod_rewrite settings</a>
<hr>
<p>
This extra configuration feature is for those lucky webmasters who are running this software on an Apache server with the mod_rewrite module enabled. If this feature is enabled, the job board will map some dynamic URLs to appear as if they were static and more meaningful. The theory is that these more meaningful URLs get better search engine rankings. Mod_rewrite can be turned on/off in the Main Config. (Note: Mod_rewrite is a 3rd party application that needs to be installed separately. It is mostly for advanced webmasters, but a lot of information about it can be found on search engines.)
</p><p>
Mod_rewrite Status: <?php 
if (JB_CAT_MOD_REWRITE == 'YES') {
    echo 'On';
} else {
    echo "Off";
}
?>
 <a href="edit_config.php#mod_rewrite">(Change status...)</a></p>
開發者ID:vinothtimes,項目名稱:dchqtest,代碼行數:31,代碼來源:mod_rewrite.php

示例11: dirname

<?php

###########################################################################
# Copyright Jamit Software 2012, http://www.jamit.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
require "../config.php";
require dirname(__FILE__) . "/admin_common.php";
JB_admin_header('Admin -> XML Import Help');
?>

<b>[XML Import]</b> 
	<span style="background-color:#F2F2F2; border-style:outset; padding:5px;"><a href="xmlimport.php">Import Setup</a></span> 
	<span style="background-color:#F2F2F2; border-style:outset; padding:5px;"><a href="xmlimport_log.php">Import Log</a></span>
	<span style="background-color:#FFFFCC; border-style:outset; padding: 5px;"><a href="xmlimporthelp.php">Import Help</a></span>
	<hr>

<h3>What is XML Import?</h3>
<p>XML import is a tool which can parse various XML files and import the jobs data in to your job board. It is flexible enough to be 'trained' to work with any XML feed, as long as it contains the required data.</p>
<h3>What does it import?</h3>
<p>- Jobs</p>
<p>- Employer accounts (if present with the jobs data)</p>
<p>- Additionally, it can process commands to update or delete a job posting</p>
<h3>How does it fetch XML files?</h3>
<p>- Direct push to a URL on your server, using the POST method of the HTTP/HTTPS protocol. </p>
<p>- From a local file</p>
<p>- From a remote FTP server</p>
<p>- From any URL</p>
<h3>How to Setup</h3>
開發者ID:vinothtimes,項目名稱:dchqtest,代碼行數:31,代碼來源:xmlimporthelp.php

示例12: dirname

require '../config.php';
//require ('../include/code_functions.php');
require dirname(__FILE__) . "/admin_common.php";
if ($_REQUEST['jb_code_order_by'] != false && $_SESSION['ADMIN'] != false && JB_DEMO_MODE != 'YES') {
    if (JB_DEMO_MODE != 'YES') {
        $filename = "../config.php";
        $handle = fopen($filename, "rb");
        $contents = fread($handle, filesize($filename));
        fclose($handle);
        $handle = fopen($filename, "w");
        $new_contents = JB_change_config_value($contents, 'JB_CODE_ORDER_BY', stripslashes($_REQUEST['jb_code_order_by']));
        fwrite($handle, $new_contents, strlen($new_contents));
        fclose($handle);
    }
}
JB_admin_header('Admin -> Edit Codes');
?>
<b>[Edit Codes]</b>

	<span style="background-color: #F2F2F2; border-style:outset; padding: 5px;"><a href="edit_config.php">Main</a></span>
 <span style="background-color: #F2F2F2; border-style:outset; padding:5px; "><a href="editcats.php">Categories</a></span>
 <span style="background-color: #FFFFCC; border-style:outset; padding:5px; "><a href="editcodes.php">Codes</a></span>
 <span style="background-color: #F2F2F2; border-style:outset; padding:5px; "><a href="language.php">Languages</a></span>
 <span style="background-color: #F2F2F2; border-style:outset; padding:5px; "><a href="emailconfig.php">Email Templates</a></span>	
	
	
<hr>

<?php 
function list_code_groups($form_id)
{
開發者ID:vinothtimes,項目名稱:dchqtest,代碼行數:31,代碼來源:editcodes.php

示例13: define

<?php

###########################################################################
# Copyright Jamit Software 2012, http://www.jamit.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
define('NO_HOUSE_KEEPING', true);
require "../config.php";
require dirname(__FILE__) . "/admin_common.php";
JB_admin_header('Admin -> Email Test');
require_once "../include/lib/mail/email_message.php";
require_once "../include/lib/mail/smtp_message.php";
require_once "../include/lib/mail/smtp.php";
require_once "../include/lib/mail/pop3.php";
if ($_REQUEST['pop3_port'] == '') {
    $_REQUEST['pop3_port'] = 110;
}
$pop3 = new pop3_class();
$pop3->hostname = $_REQUEST['pop'];
/* POP 3 server host name              */
$pop3->port = $_REQUEST['pop3_port'];
/* POP 3 server host port              */
$user = $_REQUEST['user'];
/* Authentication user name            */
$password = $_REQUEST['pass'];
/* Authentication password             */
$pop3->realm = "";
/* Authentication realm or domain      */
$pop3->workstation = "";
開發者ID:vinothtimes,項目名稱:dchqtest,代碼行數:31,代碼來源:test_email.php

示例14: dirname

<?php

###########################################################################
# Copyright Jamit Software 2012, http://www.jamit.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
require "../config.php";
require dirname(__FILE__) . "/admin_common.php";
JB_admin_header('Admin -> XML Help');
?>
<b>[XML Export]</b> 
	<span style="background-color: <?php 
if ($_REQUEST['export'] == '1') {
    echo '#FFFFCC';
} else {
    echo "#F2F2F2";
}
?>
; border-style:outset; padding:5px; "><a href="xmlfeed.php?export=1">XML Feeds</a></span> <span style="background-color:#F2F2F2; border-style:outset; padding: 5px;"><a href="xmlschema.php">XML Schemas</a></span> <span style="background-color:#FFFFCC; border-style:outset; padding: 5px;"><a href="xmlhelp.php">XML Help</a></span>
	<hr>

<p><b><font face="Arial">What are XML feeds?</font></b></p>
<p><font face="Arial" size="2">XML Feeds are used to export your job board data 
to other websites or databases, such as Google Base, SimplyHired.com or 
Indeed.com - effectively allowing you to do such things as cross-posting jobs to 
other job boards.</font></p>
<p><font face="Arial" size="2">You can create your own private XML feeds that 
can be used integrate your job board with other systems. Currently the XML 
feature is only able to export Jobs, but it will be extended in the near future 
開發者ID:vinothtimes,項目名稱:dchqtest,代碼行數:31,代碼來源:xmlhelp.php

示例15: ini_set

<?php

###########################################################################
# Copyright Jamit Software 2012, http://www.jamit.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
@set_time_limit(280);
ini_set('session.gc_maxlifetime', 60 * 60 * 4);
// 4 hours
require '../config.php';
require "admin_common.php";
//ini_set (session.use_trans_sid, false);
JB_admin_header('Admin->Translation / Editing Tool');
$label = array();
$sql = "SELECT * FROM lang WHERE lang_code='" . jb_escape_sql($_REQUEST['target_lang']) . "' ";
$result = JB_mysql_query($sql) or die(mysql_error());
$row = mysql_fetch_array($result, MYSQL_ASSOC);
$lang_filename = $row['lang_filename'];
$lang_name = $row['name'];
include jb_get_english_default_dir() . "english_default.php";
// main english default
JBPLUG_append_english_default_labels();
// require the english_defult.php files for the modules
JB_theme_append_english_default_labels();
$source_label = $label;
// default english labels
include jB_get_lang_dir() . $lang_filename;
$dest_label = $label;
// dest labels
開發者ID:vinothtimes,項目名稱:dchqtest,代碼行數:31,代碼來源:translation_tool.php


注:本文中的JB_admin_header函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。