Visualizzazione dei risultati da 1 a 2 su 2

Discussione: iBWd News

  1. #1

    iBWd News

    quando cerco di installare iBWd News(scaricato da questo sito html.it)
    Mi da sempre questo errore
    An error occured! * check your mySQL settings (username, password, database,...) in config.php *
    ecco il file config.php
    Codice PHP:
    <?

    //[database vars]\\
    $server "localhost";
    $username    "sk1zzo";
    $password    "mia pass";
    $database "my_sk1zzo";
    $table "news";
    $table_users "users";

    //[various vars]\\


    //how many news entries on one page before adding next-pervious links
    $limit=10


    // Set 1 if moderators can only modify their own posts
    // Set 0 if moderators can modify all posts
    $modall 1;


    // Set 1 if moderators can only delete their own posts
    // Set 0 if moderators can delete all posts
    $dedall 1;


    //[admin panel styles]\\

    $style  "body{ font-family: verdana; font-size: 8pt; scrollbar-base-color: #EEEEEE; }";
    $style .= "td{ font-size: 8pt; }";
    $style .= ".table_border{ background-color: #CCCCCC; }";
    $style .= ".header_cell{ background-color: #EEEEEE; font-weight: bold; font-size: 10pt;}";
    $style .= ".cells{ background-color: #FFFFFF; }";
    $style .= ".box{ border: solid 1px #CCCCCC; }";
    $style .= "input{ font-family: verdana; font-size: 8pt; cursus: hand; }";
    $style .= ".input{ font-family: verdana; font-size: 8pt; border: solid 1px #CCCCCC;}";
    $style .= "a:link{ color: navy; }";
    $style .= "a:visited{ color: navy; }";
    $style .= "a:hover{ color: blue; }";
    $style .= "li{ list-style-type: square;}";


    //[functions]-[don't modify!]\\

    function error($msg){
        
    ?>
            <html>
            <head>
            <script language="JavaScript">
            <!--
            alert("<?=$msg?>");
            history.back();
            //-->
            </script>
            </head>
            <body><body>
            </html>
            <?
            
    exit;
    }

    $db = @mysql_connect($server,$username,$password);
    mysql_select_db($database);
    $denied "You are not allowed to complete this action!";
    $date date("Y-m-d-H-i-s");
    ?>
    Cos'è che non va???

  2. #2
    oppure ce qualcosa che non va in install.php
    chiedo a voi che ne sapete piu di me!!!
    Codice PHP:
    <?

    /*###############################################################*\
    ##                       iBWd News 1.1b                          ##
    ##                 [url]http://bramstart.be/ibwds[/url]                     ##
    ##                                                               ##
    */###############################################################*\


                   ########### INSTALL FILE ############
                   # once installed, delete this file! #
                   #####################################
    require("config.php");
    ?>
    <html>
    <head>
    <title>iBWD News [install mysql tables]</title>
    <style>
    <?=$style;?>
    </style>
    </head>
    <body>
    <h3 align="center">iBWD News [install mysql tables]</h3>




    <center>
    <?
    if(!isset($install)){
        echo
    "[b]<a href=\"?install=1\">Install now >></a>[/b]";
    }
    if(
    $install == "1"){
        
    // table news
        
    $query "CREATE TABLE $table (
                    ID int(7) unsigned DEFAULT '0' NOT NULL auto_increment,
                    title varchar(20),
                    date varchar(20),
                    poster varchar(30),
                    email varchar(30),
                    news blob,
                    PRIMARY KEY (ID))"
    ;
        
    mysql_query($query,$db);
        
    // table users
        
    $query2 "CREATE TABLE $table_users (
                    ID int(11) DEFAULT '0' NOT NULL auto_increment,
                    password varchar(16) NOT NULL,
                    name varchar(100) NOT NULL,
                    addpost enum('Y','N') DEFAULT 'N' NOT NULL,
                    modpost enum('Y','N') DEFAULT 'N' NOT NULL,
                    delpost enum('Y','N') DEFAULT 'N' NOT NULL,
                    status enum('ADMIN','MOD') DEFAULT 'MOD' NOT NULL,
                    PRIMARY KEY (ID))"
    ;
        
    mysql_query($query2,$db);
        
    $test mysql_query("SELECT * FROM $table");
        
    $test2 mysql_query("SELECT * FROM $table_users");
        if((
    $test) && ($test2)){
            echo
    "Tables [i]$table[/i] and [i]$table_users[/i] created.

    Go to your admin panel: <a href=\"index.php\">Click here</a>"
    ;
            echo
    "

    Make sure you delete install.php now => security reasons!"
    ;
        }
        if((!
    $test) || (!$test2)){
            echo
    "[b]An error occured![/b]
    "
    ;
            echo
    "* check your mySQL settings (username, password, database,...) in config.php *";
        }
        
    mysql_close($db);
    }
    ?>
    </center>

    <p align="center">[url="http://www.ibram007.f2s.com"]<font size="-2" face="Verdana">powered by iBWd scripts</font>[/url]</p>
    </body>
    </html>

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.