This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'submit_job_form_login_url', 'jobhunt_submit_job_form_login_url' ); | |
add_filter( 'job_manager_job_dashboard_login_url', 'jobhunt_submit_job_form_login_url' ); | |
add_filter( 'submit_resume_form_login_url', 'jobhunt_submit_job_form_login_url' ); | |
add_filter( 'resume_manager_candidate_dashboard_login_url', 'jobhunt_submit_job_form_login_url' ); | |
add_filter( 'job_manager_alerts_login_url', 'jobhunt_submit_job_form_login_url' ); | |
add_filter( 'job_manager_bookmark_form_login_url', 'jobhunt_submit_job_form_login_url' ); | |
add_filter( 'job_manager_past_applications_login_url', 'jobhunt_submit_job_form_login_url' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( ! function_exists( 'front_job_header_search_form' ) ) { | |
function front_job_header_search_form( $args = array() ) { | |
$defaults = apply_filters( 'front_job_header_search_form_default_args', array( | |
'keywords_title_text' => esc_html__( 'what', 'front' ), | |
'keywords_subtitle_text' => esc_html__( 'job title, keywords, or company', 'front' ), | |
'keywords_placeholder_text' => esc_html__( 'Keyword or title', 'front' ), | |
'location_title_text' => esc_html__( 'where', 'front' ), | |
'location_subtitle_text' => esc_html__( 'city, state, or zip code', 'front' ), | |
'location_placeholder_text' => esc_html__( 'City, state, or zip', 'front' ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Remove the preview step. Code goes in theme functions.php or custom plugin. | |
* @param array $steps | |
* @return array | |
*/ | |
function custom_submit_job_steps( $steps ) { | |
unset( $steps['preview'] ); | |
return $steps; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // answer to wpquestions.com #2143 by Julian Lannigan (julianlannigan.com) | |
function override_logout_form() { | |
wp_logout(); | |
$logoutDestination = '/'; | |
$redirect_to = !empty($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to'] : $logoutDestination; | |
wp_safe_redirect($redirect_to); | |
exit(); | |
} | |
add_action('login_form_logout', 'override_logout_form'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Script which generates valid JSON for the website in order to display all current members | |
* | |
* @author Miguel Gonzalez <[email protected]> | |
* @since 1.0 | |
* @version 1.0 | |
*/ | |
// Connect to phpBB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function login_test($username, $password) | |
{ | |
if ($username == $password) { | |
mysql_connect('localhost', 'root'); | |
mysql_select_db('phpbb'); | |
$exists = mysql_num_rows(mysql_query('SELECT * FROM '.USERS_TABLE.' WHERE username = \''.$username.'\'')) == 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Debug phpBB installation path detections | |
*/ | |
define('IN_PHPBB', true); | |
$phpEx = substr(strrchr(__FILE__, '.'), 1); | |
$phpbb_root_path = (strpos(__FILE__, 'adm/') !== false) ? './../' : './'; | |
include($phpbb_root_path . 'common.' . $phpEx); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This program is free software. It comes without any warranty, to | |
* the extent permitted by applicable law. You can redistribute it | |
* and/or modify it under the terms of the Do What The Fuck You Want | |
* To Public License, Version 2, as published by Sam Hocevar. See | |
* http://sam.zoy.org/wtfpl/COPYING for more details. | |
*/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// clanCMS to phpBB3 bridge by FuntimeError of dfbrigade.org | |
/** | |
* @ignore | |
*/ | |
if (!defined('IN_PHPBB')) | |
{ | |
// exit; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* External MySQL auth plug-in for phpBB3 | |
* | |
* Authentication plug-ins is largely down to Sergey Kanareykin, our thanks to him. | |
* | |
* @package login | |
* @version $Id: auth_dbext.php 8602 2009-04-09 16:38:27Z nzeyimana $ | |
* @copyright NONE: use as you see fit but no guarantees | |
* @license NONE: use as you see fit but no guarantees |
NewerOlder