Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules.php

    r80 r154  
    11<?php
    2 
    32
    43/************************************************************************/
     
    1211
    1312// Additional security (Union, CLike, XSS)
    14 
    1513// We want to use the function stripos,
    1614// but thats only available since PHP5.
     
    9290////////////////////////
    9391
    94 include("config.php");
     92@require_once("config.php");
     93# verifica se effettuata la configurazione
     94if(empty($dbname)) {
     95    die("<html><body><div style=\"text-align:center\"><br /><br /><img src=\"modules/Elezioni/images/logo.jpg\" alt=\"Eleonline\" title=\"Eleonline\"><br /><br /><strong>Sembra che <a href='http://www.eleonline.it' title='Eleonline'>Eleonline</a> non sia stato ancora installato.<br /><br />Puoi procedere <a href='../install/index.php'>cliccando qui</a> per iniziare l'installazione</strong></div></body></html>");
     96}
     97
    9598
    9699
     
    105108}
    106109mysql_query("SET NAMES 'utf8'", $dbi);
     110
     111# protezione csrf ottobre 2012 - by l.apolito
     112if (file_exists("inc/csrf-magic/csrf-magic.php")) {
     113        include_once 'inc/csrf-magic/csrf-magic.php';
     114}
     115
     116
     117
     118
     119
    107120
    108121# carica i parametri di default sulla tabella
     
    220233$file=(isset($_GET['file'])) ? htmlentities($_GET['file']):"index";
    221234$name=(isset($_GET['name'])) ? htmlentities($_GET['name']):"Elezioni";
     235$op=(isset($_GET['op'])) ? htmlentities($_GET['op']):"gruppo";
    222236if (!isset($_GET['op'])) $_GET['op']="gruppo";
    223237
Note: See TracChangeset for help on using the changeset viewer.