Nowwhat
09/12/2012, 00h50
Bascule le mode de transfert de FileZilla en 'bin' et ça va aller mieux
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, postmaster@cassandrelaurent.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
phpinfo();
?>
add_action( 'admin_init', 'backgroundmenuregs' );
add_action( 'wp_head', 'add_bg_changerstyle' );
function backgroundmenuregs(){
wp_enqueue_script('jquery');
wp_register_style( 'FlowTypographyMainStylesheet', WP_PLUGIN_URL . '/typography/js/colorpicker/css/colorpicker.css' );
wp_register_style( 'FlowTypographyLayoutStylesheet', WP_PLUGIN_URL . '/typography/js/colorpicker/css/layout.css' );
wp_register_script('jquery_colorpicker_script', WP_PLUGIN_URL . '/typography/js/colorpicker/js/colorpicker.js', array('jquery'), '1.0' );
wp_enqueue_style( 'FlowTypographyMainStylesheet' );
wp_enqueue_style( 'FlowTypographyLayoutStylesheet' );
wp_enqueue_script('jquery_colorpicker_script');
}
function add_bg_menu(){
//must check that the user has the required capability
if (!current_user_can('manage_options'))
{
wp_die( __('You do not have sufficient permissions to access this page.') );
}
echo '';
echo "" . __( 'Styling', 'menu-test' ) . "
";
if($_POST['bg_submit_h'] && $_POST['bg_submit_h'] == "Y"){
$bgrepeat = array("repeat"=>"repeat","repeatx"=>"repeat-x","repeaty"=>"repeat-y","norepeat"=>"no-repeat");
update_option("bgchanger_color", $_POST['bc']);
update_option("bgchanger_imgsrc", $_POST['bi']);
if($_POST['bpx'] == "left" || $_POST['bpx'] == "center" || $_POST['bpx'] == "right"){
update_option("bgchanger_posx", $_POST['bpx']);
}
if($_POST['bpy'] == "top" || $_POST['bpy'] == "center" || $_POST['bpy'] == "bottom"){
update_option("bgchanger_posy", $_POST['bpy']);
}
if($_POST['ba'] == "fixed" || $_POST['ba'] == "scroll"){
update_option("bgchanger_attach", $_POST['ba']);
}
if(array_key_exists($_POST['br'], $bgrepeat)){
update_option("bgchanger_repeat", $bgrepeat[$_POST['br']]);
}
?>
}
$bgcval_bc = get_option("bgchanger_color");
$bgcval_bi = get_option("bgchanger_imgsrc");
$bgcval_bpx = get_option("bgchanger_posx");
$bgcval_bpy = get_option("bgchanger_posy");
$bgcval_ba = get_option("bgchanger_attach");
$bgcval_br = get_option("bgchanger_repeat");
?>
}
function add_bg_changerstyle(){
$bgcval_bc = get_option("bgchanger_color");
$bgcval_bi = get_option("bgchanger_imgsrc");
if($bgcval_bc || $bgcval_bi){
print("");
}
}
?>
SetEnv PHP_VER 5
Parse error: syntax error, unexpected '{' in /homez.314/jaimemat/www/index.php on line 12
require "includes/connect.php";
$msg = '';
if($_POST['email']){
// Requested with AJAX:
$ajax = ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest');
try{
if(!filter_input(INPUT_POST,'email',FILTER_VALIDATE_EMAIL)){
throw new Exception('Mail invalide.. ');
}
$mysqli->query("INSERT INTO coming_soon_emails
SET email='".$mysqli->real_escape_string($_POST['email'])."'");
if($mysqli->affected_rows != 1){
throw new Exception('Cet email existe déjà.');
}
if($ajax){
die('{"status":1}');
}
$msg = "Merci :D et à bientôt !";
}
catch (Exception $e){
if($ajax){
die(json_encode(array('error'=>$e->getMessage())));
}
$msg = $e->getMessage();
}
}
?>
error_reporting(E_ALL ^ E_NOTICE);
$db_host = 'localhost';
$db_user = 'root';
$db_pass = '';
$db_name = '';
@$mysqli = new mysqli($db_host, $db_user, $db_pass, $db_name);
if (mysqli_connect_errno()) {
die('Connexion base de donnée impossible :(
');
}
$mysqli->set_charset("utf8");
?>