This file contains 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
ErrorDocument 401 "Unauthorized Access! You need to provide valid credentials to login" | |
ErrorDocument 403 "Forbidden! You're not allowed to access this page." | |
<Files "wp-login.php"> | |
AuthName "Administrators Only!" | |
AuthType Basic | |
AuthUserFile /home/username/wplogin | |
require valid-user | |
</Files> |
This file contains 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
function modify_jquery() { | |
if ( !is_admin() ) { | |
wp_deregister_script( 'jquery' ); | |
wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js', false, '1.8.1' ); | |
wp_enqueue_script( 'jquery' ); | |
} | |
} | |
add_action( 'init', 'modify_jquery' ); |
This file contains 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
function add_jquery() { | |
wp_enqueue_script( 'jquery' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'add_jquery' ); |
This file contains 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
function add_jquery_ui() { | |
wp_enqueue_script('jquery-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.8/jquery-ui.min.js', false, '1.8.8'); | |
} | |
add_action( 'init', 'add_jquery_ui' ); |
This file contains 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
function add_jquery_ui() { | |
wp_enqueue_script( 'jquery-ui-core' ); | |
wp_enqueue_script( 'jquery-ui-widget' ); | |
wp_enqueue_script( 'jquery-ui-mouse' ); | |
wp_enqueue_script( 'jquery-ui-accordion' ); | |
wp_enqueue_script( 'jquery-ui-autocomplete' ); | |
wp_enqueue_script( 'jquery-ui-slider' ); | |
wp_enqueue_script( 'jquery-ui-tabs' ); | |
wp_enqueue_script( 'jquery-ui-sortable' ); | |
wp_enqueue_script( 'jquery-ui-draggable' ); |
This file contains 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
//Copy this CSS in to your style sheet // | |
.video-container { | |
position: relative; | |
padding-bottom: 56.25%; | |
padding-top: 0px; | |
height: 0; | |
overflow: hidden; | |
} |
This file contains 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 | |
if (isset($_GET)){ | |
$error_message = $_GET["error_message"]; | |
} else{ | |
$error_message = ""; | |
} | |
?><!DOCTYPE html> | |
<!-- | |
To change this license header, choose License Headers in Project Properties. | |
To change this template file, choose Tools | Templates |
This file contains 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 | |
if (empty($_POST)){ | |
header("location:index.php"); #redirect to the index page | |
} | |
//get the data from the form | |
$product_description = $_POST["product_description"]; | |
$list_price = $_POST["list_price"]; | |
$discount_percent = $_POST["discount_percent"]; | |
if (!is_numeric($list_price) || !is_numeric($discount_percent)) { | |
if (!is_numeric($list_price)) { |
This file contains 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 | |
$first_name = "Victor"; | |
$year_of_birth = 1974; | |
echo $first_name; | |
echo "<br>"; | |
echo $year_of_birth; | |
echo "<br>"; | |
echo $first_name . " " . $year_of_birth; | |
echo "<br>"; |
OlderNewer