Example #1
0
<?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>
Example #2
0
<?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)) {
Example #3
0
###########################################################################
# 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);
}
Example #4
0
<?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' ";
}
# 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";
Example #6
0
<?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";
Example #7
0
<?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>
Example #8
0
<?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']) . "' ";
Example #9
0
<?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)) {
Example #10
0
<?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>
Example #11
0
<?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>
Example #12
0
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)
{
Example #13
0
<?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 = "";
Example #14
0
<?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 
Example #15
0
<?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
Example #16
0
<?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 -> Currency');
?>

<b>[Prices]</b>
	<span style="background-color: #FFFFCC; border-style:outset; padding: 5px;"><a href="currency.php">Currency Rates</a></span>
<hr>

<?php 
function is_reserved_currency($code)
{
    switch ($code) {
        case "AUD":
            return true;
            break;
        case "CAD":
            return true;
            break;
        case "EUR":
            return true;
            break;
        case "GBP":
Example #17
0
# 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';
require_once '../include/posts.inc.php';
if (!isset($_REQUEST['mode'])) {
    $_REQUEST['mode'] = 'VIEW';
}
$mode = $_REQUEST['mode'];
$PostingForm =& JB_get_DynamicFormObject(1);
$PostingForm->set_mode($mode);
JB_admin_header('Admin -> Posting Form');
?>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000; "></div>
<b>[Posting Form]</b><span style="background-color: <?php 
if ($_REQUEST['mode'] != 'EDIT') {
    echo "#FFFFCC";
}
?>
; border-style:outset; padding: 5px;"><a href="postform.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="postform.php?mode=EDIT">Edit Fields</a></span> <span style="background-color: <?php 
if ($_REQUEST['mode'] == 'EDIT' && $_REQUEST['NEW_FIELD'] != '') {
    echo "#FFFFCC";
Example #18
0
# 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';
if ($_REQUEST['action'] == 'delete' || $_REQUEST['action'] == 'deactivate') {
    setcookie("JB_SAVED_LANG", '', time() - 3600);
    // destroy the saved lang
}
require "admin_common.php";
require_once JB_basedirpath() . 'include/dynamic_forms.php';
require_once JB_basedirpath() . 'include/code_functions.php';
require_once JB_basedirpath() . 'include/category.inc.php';
# Copyright 2005-2009 Jamit Software
# http://www.jamit.com/
JB_admin_header('Admin -> Language');
?>


<b>[Languages]</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: #FFFFCC; 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 
if (JB_DEMO_MODE == 'YES') {
    $JBMarkup->ok_msg('Demo mode enabled - cannot save changes');
}
Example #19
0
<?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('Admin -> XML Sitemaps');
?>



<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000; "></div>
<b>[Sitemaps]</b>
	
<hr>	
Your XML Sitemaps URL: <pre><a target="_blank" href="<?php 
echo JB_BASE_HTTP_PATH . 'jb-xml-sitemap.php';
?>
"><?php 
echo JB_BASE_HTTP_PATH . 'jb-xml-sitemap.php';
?>
<a></pre>
	<hr>
<?php 
function JB_init_sitemap_data()
{
Example #20
0
<?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('max_execution_time', 500);
require '../config.php';
require dirname(__FILE__) . "/admin_common.php";
JB_admin_header('Email Queue');
if ($_REQUEST['action'] == 'delall') {
    $sql = "SELECT SQL_BUFFER_RESULT mail_id, att1_name,att2_name,att3_name  FROM mail_queue ";
    $result = JB_mysql_query($sql) or die(mysql_error());
    while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
        if ($row['att1_name'] != '' && file_exists($row['att1_name'])) {
            unlink($row['att1_name']);
        }
        if ($row['att2_name'] != '' && file_exists($row['att2_name'])) {
            unlink($row['att2_name']);
        }
        if ($row['att3_name'] != '' && file_exists($row['att3_name'])) {
            unlink($row['att3_name']);
        }
        $sql = "DELETE FROM mail_queue where mail_id='" . jb_escape_sql($row['mail_id']) . "' ";
        JB_mysql_query($sql) or die(mysql_error());
    }
}
if ($_REQUEST['action'] == 'delsent') {
    $sql = "SELECT mail_id, att1_name, att2_name, att3_name from mail_queue where `status`='sent' ";
Example #21
0
<?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_once '../include/skill_matrix_functions.php';
require_once dirname(__FILE__) . "/admin_common.php";
JB_admin_header('Admin -> Build Matrix');
?>
<form method="post">
<?php 
if ($_REQUEST['submit'] != '') {
    $sql = "REPLACE INTO skill_matrix (matrix_id, field_id, row_count) VALUES ('" . jb_escape_sql($_REQUEST['field_id']) . "', '" . jb_escape_sql($_REQUEST['field_id']) . "', '" . jb_escape_sql($_REQUEST['row_count']) . "') ";
    JB_mysql_query($sql) or die(mysql_error());
}
$sql = "Select * from skill_matrix WHERE field_id='" . jb_escape_sql($_REQUEST['field_id']) . "' ";
$result = JB_mysql_query($sql) or die(mysql_error());
$row = mysql_fetch_array($result, MYSQL_ASSOC);
?>

	<b>Number of rows:</b> <input type="text" size="3" name="row_count" value="<?php 
echo $row['row_count'];
?>
">
	<input type="hidden" name="matrix_id" value="<?php 
echo jb_escape_html($row['matrix_id']);
?>
Example #22
0
<?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";
$sql = "SELECT * FROM mail_queue where mail_id='" . jb_escape_sql($_REQUEST['mail_id']) . "'";
$result = JB_mysql_query($sql);
$row = mysql_fetch_array($result, MYSQL_ASSOC);
JB_admin_header('Admin -> Show Email');
?>
<table border="1" id="table1" width="600">
	<tr>
		<td width="118">Template ID:</td>
		<td width="322"><?php 
echo $row['template_id'];
?>
</td>
	</tr>
	<tr>
		<td width="118">To Name:</td>
		<td width="322"><?php 
echo $row['to_name'];
?>
</td>
	</tr>
	<tr>
Example #23
0
<?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/.
###########################################################################
$timestart = microtime();
require "../config.php";
# Copyright 2005-2009 Jamit Software
# http://www.jamit.com/
require dirname(__FILE__) . "/admin_common.php";
ini_set('max_execution_time', 100200);
JB_admin_header('Admin -> Newsletter');
?>
<b>[Newsletters]</b> <span style="background-color: #FFFFCC; border-style:outset; padding:5px; "><a href="newsletter.php">Create / Send</a></span>

<hr>

<?php 
$to = $_REQUEST['to'];
if ($to == "CA") {
    $who = "Candidates";
    $sql = "SELECT * from `users` WHERE `Newsletter`=1";
    $result = JB_mysql_query($sql);
    $count = mysql_num_rows($result);
} else {
    $who = "Employers";
    $sql = "SELECT * from `employers` WHERE `Newsletter`=1";
    $result = JB_mysql_query($sql);
<?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";
define('DEFAULT_CURR', JB_get_default_currency());
JB_admin_header('Admin -> Subscription Report');
?>
<b>[Subscription Orders]</b> <span style="background-color: #F2F2F2; border-style:outset; padding: 5px;"><a href="package_report.php">Posting Orders</a></span> <span style="background-color: #FFFFCC; border-style:outset; padding:5px; "><a href="subscription_report.php">Subscription Orders</a></span> <span style="background-color: #F2F2F2; border-style:outset; padding:5px; "><a href="membership_report.php">Membership Orders</a></span>
	

<hr>
<input type="button" value="New Invoice" onclick="window.location='subscription_report.php?new=1'">

<?php 
if ($_REQUEST['new'] != '') {
    //echo "<p>New Invoice";
    if ($_REQUEST['go'] != '') {
        if ($_REQUEST['employer_id'] == '') {
            $error = "<p><b>Error:</b> Employer account not selected...</p>";
        }
        if ($_REQUEST['subscription_id'] == '') {
            $error = "<p><b>Error:</b> Subscription not selected...</p>";
        }
        if ($error != '') {
            echo $error;
Example #25
0
    function admin_main_page()
    {
        if ($_REQUEST['p'] == 'JobsFiller') {
            if (function_exists('JB_admin_header')) {
                JB_admin_header('Admin -> List Posts');
            }
            require_once "../include/posts.inc.php";
            $_SESSION['show'] = 'FILLER';
            ?>

			<p>
			<b>[POSTS]</b> <span style="background-color: <?php 
            if ($_SESSION['show'] == 'ALL') {
                echo "#FFFFCC";
            } else {
                echo "#F2F2F2";
            }
            ?>
; border-style:outset; padding:5px; "><a href="posts.php?show=ALL">Approved Posts</a></span>
				<span style="background-color: <?php 
            if ($_SESSION['show'] == 'WA') {
                echo "#FFFFCC";
            } else {
                echo "#F2F2F2";
            }
            ?>
; border-style:outset; padding: 5px;"><a href="posts.php?show=WA">New Posts Waiting</a></span>
				<span style="background-color: <?php 
            if ($_SESSION['show'] == 'NA') {
                echo "#FFFFCC";
            } else {
                echo "#F2F2F2";
            }
            ?>
; border-style:outset; padding: 5px;"><a href="posts.php?show=NA">Non-Approved Posts</a></span>
				<span style="background-color: <?php 
            if ($_SESSION['show'] == 'EX') {
                echo "#FFFFCC";
            } else {
                echo "#F2F2F2";
            }
            ?>
; border-style:outset; padding: 5px;"><a href="posts.php?show=EX">Expired Posts</a></span>
				<span style="background-color: <?php 
            echo "#F2F2F2";
            ?>
; border-style:outset; padding: 5px;"><a href="post_new.php">Post a Job</a></span>
			</p>

			<p>'Jobs Filler' - This feature fills your job board with supplementary job posts. These posts get indexed by the search engines, bringing your job board free organic traffic. Your visitor does not have to leave your site to view these jobs, the full content of the job is displayed on your site. This also allows you to insert ads inside the job post - bringing you both  ad revenue and free search engine traffic. 

			
			<?php 
            if (function_exists('JB_admin_footer')) {
                JB_admin_footer();
            }
        }
    }
Example #26
0
<?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/posts.inc.php";
require_once "../include/category.inc.php";
JB_admin_header('Admin -> Select Category');
?>
Please select the category and click OK<br>
The category will be the starting category for the field.
<form name="cat_selector" >
<select height="10" name="select" onchange="change_it(); ">
<option value="0">[Select Starting Category]</option>
<?php 
$form_id = (int) $_REQUEST['form_id'];
if ($form_id == '') {
    $form_id = 1;
}
JB_category_option_list2(0, $selected, $form_id);
?>
	</select>
	
	<input type="button" value="OK" onclick="window.close()" >

	</form>
Example #27
0
<?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 "admin_common.php";
require "../include/xml_feed_functions.php";
if ($_REQUEST['export'] == '') {
    $_REQUEST['export'] = 1;
}
JB_admin_header('Admin->XML Feed');
?>
<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:#F2F2F2; border-style:outset; padding: 5px;"><a href="xmlhelp.php">XML Help</a></span>
	<hr>

<?php 
?>
Example #28
0
<?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("../include/accounting_functions.php");
define('DEFAULT_CURR', JB_get_default_currency());
JB_admin_header('Admin -> Posting Orders');
?>
<b>[Posting Orders]</b> 
<span style="background-color: #FFFFCC; border-style:outset; padding: 5px;"><a href="package_report.php">Posting Orders</a></span> 
<span style="background-color: #F2F2F2; border-style:outset; padding:5px; "><a href="subscription_report.php">Subscription Orders</a></span> <span style="background-color: #F2F2F2; border-style:outset; padding:5px; "><a href="membership_report.php">Membership Orders</a></span>
	


<hr>

<input type="button" value="New Invoice" onclick="window.location='package_report.php?new=1'">

<?php 
if ($_REQUEST['new'] != '') {
    //echo "<p>New Invoice";
    if ($_REQUEST['go'] != '') {
        if ($_REQUEST['employer_id'] == '') {
            $error = "<p>Error: Employer account not selected...</p>";
        }
Example #29
0
###########################################################################
# 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";
if ($_SESSION['subscr_status_type'] == '') {
    $_SESSION['subscr_status_type'] = 'A';
}
if ($_REQUEST['type'] != '') {
    $_SESSION['subscr_status_type'] = $_REQUEST['type'];
}
define('DEFAULT_CURR', JB_get_default_currency());
JB_admin_header('Admin -> Manage Subscriptions');
?>
<b>[Manage Employer's Subscriptions]</b> <span style="background-color: <?php 
if ($_SESSION['subscr_status_type'] == 'A') {
    echo '#FFFFCC';
} else {
    echo '#F2F2F2';
}
?>
; border-style:outset; padding: 5px;"><a href="subscriptions.php?type=A">Active</a></span> <span style="background-color: <?php 
if ($_SESSION['subscr_status_type'] == 'E') {
    echo '#FFFFCC';
} else {
    echo '#F2F2F2';
}
?>
Example #30
0
<?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";
JB_admin_header('Admin -> View Cover Letter');
$app_id = $_REQUEST['app_id'];
$sql = "SELECT * FROM `applications` where app_id='" . jb_escape_sql($app_id) . "' ";
$result = JB_mysql_query($sql) or die(mysql_error() . $sql);
$row = mysql_fetch_array($result, MYSQL_ASSOC);
echo JB_escape_html($row['cover_letter']);
?>
<center>
<input type="button" value="Close" onclick="window.close(); return false">
</center>
<?php 
JB_admin_footer();