Announcement

Collapse
No announcement yet.

PHP Livesupport aus DB entfernen

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP Livesupport aus DB entfernen

    Hallo leute ihr seit meine letzte Hoffnung

    Ich habe mir vor einer Weile ein gratis "PHPonline LiveSupport" von
    dianahost installiert. Es lief auch mal aber jetzt suckt es rum.

    Das ganze läuft in einem Oscommerce Onlineshop und soll jetzt weg
    leider krieg ich anfänger das nicht hin.

    Habe gehört mann kann es über eine Anweisung entfernen
    d.h. beim Installieren schmeisst mann einfach eine zusammenstellung in die DB und die Tabellen Spalten werden erstellt.

    Nun zu meiner Frage kann man das ganze auch mit einer Anweisung auch
    wieder Löschen.

    Also die Install Datei sieht es so aus.

    PHP Code:
    <?php

    /*****************************************************************
    phpOnline - Online customer support system
    Copyright (C) 2003-2006 
    Dayana Networks Ltd. <[email protected]>
    Farhad Malekpour <[email protected]>
    All rights reserved.

    Official Website    http://phponline.dayanahost.com
    Online Forums       http://www.dayanahost.com/forum
    Powered by          http://www.dayanahost.com

    Translation service provided by Google Inc.

    THE USE OF THIS SOFTWARE IS COMPLETELY AT YOUR OWN RISK!

    --------------------------- GNU License ---------------------------

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

    *****************************************************************/


    include_once('config.php');

    $dbhe=mysql_connect($DBHost$DBUsername$DBPassword,true) or exit("Could not connect");
    mysql_select_db($DBDatabase,$dbhe);

    echo 
    "Creating msgdb Table...\n<BR>";
    $res mysql_query("CREATE TABLE msgdb (
                    ttime double(25,8) NOT NULL,
                    ccode varchar(20),
                    msg text,
                    code1 SMALLINT(4) default 0,
                    code2 SMALLINT(4) default 0,
                            PRIMARY KEY  (ttime)
                            ) TYPE=MyISAM
            "
    ,$dbhe);
    if(
    $res==false)
        echo 
    "Error: ".mysql_error()."\n<BR>";
    else
        echo 
    "Done.\n<BR>";


    echo 
    "Creating cs Table...\n<BR>";
    $res mysql_query("CREATE TABLE cs (
                    ccode varchar(20) NOT NULL,
                    assign SMALLINT(4) default 0,
                    online SMALLINT(4) default 0,
                    ip varchar(20),
                    code1 SMALLINT(4) default 0,
                    code2 SMALLINT(4) default 0,
                    lastact INT(10) default 0,
                    name varchar(110),
                    email varchar(50),
                    username varchar(20),
                            PRIMARY KEY  (ccode)
                            ) TYPE=MyISAM
            "
    ,$dbhe);
    if(
    $res==false)
        echo 
    "Error: ".mysql_error()."\n<BR>";
    else
        echo 
    "Done.\n<BR>";

    echo 
    "Creating bvars Table...\n<BR>";
    $res mysql_query("CREATE TABLE bvars (
                    bname varchar(254) NOT NULL,
                    bvalue varchar(254),
                            PRIMARY KEY  (bname)
                            ) TYPE=MyISAM
            "
    ,$dbhe);
    if(
    $res==false)
        echo 
    "Error: ".mysql_error()."\n<BR>";
    else
        echo 
    "Done.\n<BR>";


    mysql_close($dbhe);


    ?>
    Währe cool wenn mir einer sagt wie ich den S... wieder los werde.
    Danke fürs lesen

  • #2
    Was hat das jetzt mit Datenbanken und ganz speziell mit dem MSSQL-Server zu tun?

    Gibts beim Hersteller keine Deinstallationsanleitung?

    Gruß Falk
    Wenn du denkst du hast alle Bugs gefunden, dann ist das ein Bug in deiner Denksoftware.

    Quellcode ohne ein Mindestmaß an Formatierung sehe ich mir nicht an! Ich leiste keinen Privatsupport per Mail oder PN!

    Comment


    • #3
      Jedenfalls sieht man anhand des Scriptes, welche Tabellen mit CREATE TABLE erstellt wurden (in diesem einen Script).

      Die kannst Du dann auch löschen mit
      [highlight=SQL]DROP TABLE bvars;
      DROP TABLE cs;
      DROP TABLE msgdb;[/highlight]
      und das auf eigene Gefahr.
      Ob das nur zur Deinstallation reicht???
      Olaf Helper

      <Blog> <Xing>
      * cogito ergo sum * errare humanum est * quote erat demonstrandum *
      Wenn ich denke, ist das ein Fehler und das beweise ich täglich

      Comment


      • #4
        Originally posted by Falk Prüfer View Post
        Was hat das jetzt mit Datenbanken und ganz speziell mit dem MSSQL-Server zu tun?

        Gibts beim Hersteller keine Deinstallationsanleitung?

        Gruß Falk
        Echt ich trottel sollte gucken lernen
        uppps

        Comment


        • #5
          Originally posted by O. Helper View Post
          ...Ob das nur zur Deinstallation reicht???
          Wohl nicht, weil das Script dann eher mit Fehlermeldungen wg. nicht vorhandener Tabellen um sich wirft
          Wenn du denkst du hast alle Bugs gefunden, dann ist das ein Bug in deiner Denksoftware.

          Quellcode ohne ein Mindestmaß an Formatierung sehe ich mir nicht an! Ich leiste keinen Privatsupport per Mail oder PN!

          Comment

          Working...
          X