3V Sourceviewer

Hier kannst du den Quellcode aller vom Admin freigegebenden Scripte einsehen. Es ist nicht erlaubt sich durch das Quellcode lesen Vorteile im Spiel zu verschaffen und wird daher schwer bestraft! Ebenso sind Fehler im Quellcode umgehend zu melden. Das Vinestrateam ist sehr dankbar falls ihr Bugs meldet. Bei Quellcodefragen wendet euch bitte im Spiel an Draza`ar oder schickt eine Mail.

Zum Quellcode

Verzeichnisliste

  • RPplaces.php
  • RPplaceslist.php
  • about.php
  • academy.php
  • access.php
  • alchemist.php
  • altaramon.php
  • amonnebeneingang.php
  • amontempel.php
  • anticheat.php
  • armor.php
  • armoreditor.php
  • aussenanlagetempel.php
  • avatars.php
  • badnav.php
  • badword.php
  • bait.php
  • bank.php
  • banker.php
  • bankrobber.php
  • bar.php
  • bar_casino.php
  • bar_club.php
  • barke.php
  • bath.php
  • battle.php
  • battlearena.php
  • beggar.php
  • beispiel.php
  • bio.php
  • biobackups.php
  • biobewertung.php
  • bioobs.php
  • bios.php
  • blumenstand.php
  • bordello.php
  • chapel.php
  • chat.php
  • chat_delete.php
  • chateaux.php
  • checknames.php
  • clan.php
  • coloredit.php
  • colors.php
  • common.php — Datei kann nicht angezeigt werden: Auf Grund von anpassungen gesperrt!
  • configuration.php
  • connector.php
  • create.php
  • creatures.php
  • dag.php
  • dbwrapper.php
  • descriptioneditor.php
  • docks.php
  • donators.php
  • dragon.php — Datei kann nicht angezeigt werden: Die gibt's hier auf Anfrage
  • durscripts.php
  • editchat.php — Datei kann nicht angezeigt werden: Die gibt's hier auf Anfrage
  • elementkammer.php
  • elwus.php
  • erde.php
  • fast_nav.php
  • feuer.php
  • fischhaendler.php
  • fish.php
  • flirt.php
  • floor.php
  • flowers.php
  • forest.php
  • forestlakepath.php
  • forum.php
  • forum_funcs.php
  • friedhof.php
  • furnedit.php
  • gardens.php
  • gartensee.php
  • gaya.php
  • gemstore.php
  • goettertempel.php
  • gottwahl.php
  • graveyard.php
  • grotte.php
  • guild.php
  • guildclanedit.php
  • guildclaneditfunc.php
  • guildclanfuncs.php
  • guildclanhelp.php
  • guilds-clans-su.php
  • gypsy.php
  • hafenviertel.php
  • healer.php
  • herocamp.php
  • hexe.php
  • hof.php
  • housefuncs.php
  • houses.php
  • huegel.php
  • impressum.php
  • index.php
  • indexregeln.php
  • info.php
  • inn.php
  • innboard.php
  • invhandler.php
  • itemeditor.php
  • kerker.php
  • kirche.php
  • kiste.php
  • kitchen.php
  • klippen.php
  • leuchtturm.php
  • library.php
  • list.php — Datei kann nicht angezeigt werden: Die gibt's hier auf Anfrage
  • list_funcs.php — Datei kann nicht angezeigt werden: Die gibt's hier auf Anfrage
  • lodge.php
  • logdnet.php
  • login.php
  • logs.php
  • lottery.php
  • luft.php
  • mail.php
  • man.php
  • massmail.php
  • modgems.php
  • moebelhaendler.php
  • motd.php
  • mounts.php
  • myranorapotheke.php
  • mystischersee.php
  • namechange.php
  • nebelinsel.php
  • new.php
  • newday.php — Datei kann nicht angezeigt werden: Die gibt's hier auf Anfrage
  • newgiftshop.php
  • news.php
  • olddrawl.php
  • orte.php
  • outhouse.php
  • outputs.php
  • panel_funcs.php
  • paths.php
  • petition.php
  • placefuncs.php
  • placelist.php
  • pool.php
  • prefs.php
  • pressarm.php
  • pvp.php
  • pvparena.php
  • raceedit.php
  • ramiusfight.php
  • ramiussitz.php
  • ramiustempel.php
  • randomchar.php
  • rathaus.php
  • reanda.php
  • rebirth.php
  • redaktion.php
  • referers.php
  • referral.php
  • regeln.php
  • retitle.php
  • robinhood.php
  • rock.php
  • rpchange.php
  • rpcharlist.php
  • rpfights.php
  • rpmod.php
  • rportclassfunc.php
  • rporte.php
  • sanela.php
  • sanelabrunnen.php
  • sanelaschmiede.php
  • sanelasee.php
  • sanelastrand.php
  • schnellbank.php
  • schnellbankhafen.php
  • schnellbanksanela.php
  • setnewday.php
  • shades.php
  • shrine.php
  • source.php — Datei kann nicht angezeigt werden: Na na na hier wird nicht geschaut ;P
  • spelunke.php
  • stables.php
  • stats.php
  • stonesgame.php
  • strand.php
  • styx.php
  • su_forum.php
  • suhouses.php
  • sulib.php
  • superuser.php
  • superuser2.php
  • suvinbor.php — Datei kann nicht angezeigt werden: Teil vom System 3V
  • switchfunctions.php
  • tanzsaal.php
  • taunt.php
  • tempelanlage.php
  • tempeleingang.php
  • tempelgewoelbe.php
  • templateedit.php
  • test.php
  • testi.php
  • thehell.php
  • titler.php
  • todolist.php
  • topwebvote.php
  • train.php
  • translator.php
  • translator_de.php
  • translator_en.php
  • treeofdeath.php
  • turm.php
  • turmsprung.php
  • usepotion.php
  • user.php
  • userpanel.php — Datei kann nicht angezeigt werden: Teil vom System 3V
  • useryoms.php
  • v3_su_guild.php
  • vendor.php
  • verdammnis.php
  • verifi.php
  • viewpetition.php
  • village.php
  • vinbor.php — Datei kann nicht angezeigt werden: Teil vom System 3V
  • vineinfo.php
  • vinestrafarben.php
  • wachstube.php
  • waldlichtung.php
  • waldsee.php
  • waldseefuncs.php
  • wanderweg.php
  • wasser.php
  • wasserfall.php
  • weaponeditor.php
  • weapons.php
  • well.php
  • wellness.php
  • whoaccess.php
  • wolkeninsel.php
  • zeitung.php
  • zulan.php


  • Zum Seitenanfang

    /special/



    Zum Seitenanfang

    /lib/



    Zum Seitenanfang

    /common/




    1:
    2:
    3:
    4:
    5:
    6:
    7:
    8:
    9:
    10:
    11:
    12:
    13:
    14:
    15:
    16:
    17:
    18:
    19:
    20:
    21:
    22:
    23:
    24:
    25:
    26:
    27:
    28:
    29:
    30:
    31:
    32:
    33:
    34:
    35:
    36:
    37:
    38:
    39:
    40:
    41:
    42:
    43:
    44:
    45:
    46:
    47:
    48:
    49:
    50:
    51:
    52:
    53:
    54:
    55:
    56:
    57:
    58:
    59:
    60:
    61:
    62:
    63:
    64:
    65:
    66:
    67:
    68:
    69:
    70:
    71:
    72:
    73:
    74:
    75:
    76:
    77:
    78:
    79:
    80:
    81:
    82:
    83:
    84:
    85:
    86:
    87:
    88:
    89:
    90:
    91:
    92:
    93:
    94:
    95:
    96:
    97:
    98:
    99:
    100:
    101:
    102:
    103:
    104:
    105:
    106:
    107:
    108:
    109:
    110:
    111:
    112:
    113:
    114:
    115:
    116:
    117:
    118:
    119:
    120:
    121:
    122:
    123:
    124:
    125:
    126:
    127:
    128:
    129:
    130:
    131:
    132:
    133:
    134:
    135:
    136:
    137:
    138:
    139:
    140:
    141:
    142:
    143:
    144:
    145:
    146:
    147:
    148:
    149:
    150:
    151:
    152:
    153:
    154:
    155:
    156:
    157:
    158:
    159:
    160:
    161:
    162:
    163:
    164:
    165:
    166:
    167:
    168:
    169:
    170:
    171:
    172:
    173:
    174:
    175:
    176:
    177:
    178:
    179:
    180:
    181:
    182:
    183:
    184:
    185:
    186:
    187:
    188:
    189:
    190:
    191:
    192:
    193:
    194:
    195:
    196:
    197:
    198:
    199:
    200:
    201:
    202:
    203:
    204:
    205:
    206:
    207:
    208:
    209:
    210:
    211:
    212:
    213:
    214:
    215:
    216:
    217:
    218:
    219:
    220:
    221:
    222:
    223:
    224:
    225:
    226:
    227:
    228:
    229:
    230:
    231:
    232:
    233:
    234:
    235:
    236:
    237:
    238:
    239:
    240:
    241:
    242:
    243:
    244:
    245:
    <?

    class Forum_section {
        private 
    $sectionID;
        private 
    $type;            # 1-> Bereich, 2->
        
    private $title;
        private 
    $autor;
        private 
    $insection;
        private 
    $timeofcreation;
        private 
    $priority;
        private 
    $desc;
        
        public function 
    __construct($sectionID=''$type=''$title=''$autor=''$insection=''$timeofcreation=''$priority=''$desc='') {
            if(
    $sectionID == '') {
                
    $sql 'SELECT MAX(id) AS c FROM forumtopics';
                
    $row db_fetch_assoc(db_query($sql));
                
    $sectionID $row['c'] + 1;
            }
            
    $this->sectionID $sectionID;
            
            if(
    $type !='' && $title != '') {
                
    $this->type $type;
                
    $this->title $title;
                
    $this->autorID $autor;
                
    $this->insection $insection;
                
    $this->timeofcreation $timeofcreation;
                
    $this->priority $priority;
                
    $this->desc $desc;
                if(
    $autor) {
                    
    $sql 'SELECT name FROM accounts WHERE acctid = '.$this->autorID;
                    
    $row db_fetch_assoc(db_query($sql));
                    
    $this->autorName $row['name'];
                }
                
    output('Blubbublub');
            }
            else {
                
    $sql 'SELECT * FROM forumtopics WHERE id='.$this->sectionID;
                
    $row db_fetch_assoc(db_query($sql));
                
                
    $this->type $row['type'];
                
    $this->title $row['title'];
                
    $this->autorID $row['autorID'];
                
    $this->insection $row['insection'];
                
    $this->timeofcreation $row['timeofcreation'];
                
    $this->priority $row['priority'];
                
    $this->desc $row['desc'];
                
                
    $sql 'SELECT name FROM accounts WHERE acctid = '.$this->autorID;
                
    $res db_query($sql);
                
    $row db_fetch_assoc($res);
                if(
    $row['name']!='') {
                    
    $this->autorName $row['name'];
                }
            }
        }
        
        public function 
    save_section($type=2) {
            
    $sql 'INSERT INTO
                            forumtopics
                            (type,
                             title,
                             autor,
                             insection,
                             timeofcreation,
                             priority,
                             desc)
                    VALUES
                            ('
    .$this->type.', 
                             "'
    .$this->title.'", 
                             "'
    .$this->autorID.'", 
                             "'
    .$this->insection.'", 
                             "'
    .$this->timeofcreation.'",
                             '
    .$this->priority.',
                             "'
    .$this->desc.'")';
            
    db_query($sql);
                             
        }
        
        public function 
    load_section() {
            
    $sql 'SELECT * FROM forumtopics WHERE id = '.$this->sectionID;
            
    $row db_fetch_assoc(db_query($sql));
            
            return 
    $row;
        }
    }
        

    class 
    Forum_Post {
        
        private 
    $postID;
        private 
    $body;
        private 
    $postdate;
        private 
    $autorID;
        private 
    $autorName;
        private 
    $intopic;
        
        public function 
    __construct($postID=0$body=''$postdate=''$autor=''$intopic='') {
            
    $this->postID = (int)$postID;
            if(
    $body != '' && $postdate != '' && $autor != '' && $intopic != '') {
                
    $this->body $body;
                
    $this->postdate $postdate;
                
    $this->autorID $autor;
                
    $this->intopic $intopic;
                
                
    $sql 'SELECT name FROM accounts WHERE acctid = '.$this->autorID;
                
    $row db_fetch_assoc(db_query($sql));
                
    $this->autorName $row['name'];
            }
            else {
                
    // Daten aus der Datenbank
                
    $sql 'SELECT * FROM forumposts WHERE postID = '.$this->postID;
                
    $row db_fetch_assoc(db_query($sql));
                
                
    $this->body $row['body'];
                
    $this->postdate $row['postdate'];
                
    $this->autorID $row['autor'];
                
    $this->intopic $row['intopic'];
                
                
    $sql 'SELECT name FROM accounts WHERE acctid = '.$this->autorID;
                
    $res db_query($sql);
                
    $row db_fetch_assoc($res);
                if(
    $row['name']!='') {
                    
    $this->autorName $row['name'];
                }
            }
        }
        
        public function 
    save_post() {
            
    $sql 'UPDATE forumposts SET body = "'.$this->body.'" WHERE postID = '.$this->postid;
            
    db_query($sql);
            if(
    db_affected_rows()==0) {
                
    $sql 'INSERT INTO 
                                forumposts
                        VALUER
                                ('
    .$this->autorID.',
                                 "'
    .$this->body.'",
                                 '
    .$this->postdate.')';
                
    db_query($res);
            }
        }
        
        public function 
    change_post_body($newcontent) {
            if(
    $newcontent != '') {
                
    $this->body $newcontent;
                return 
    true;
            }
            else {
                return 
    false;
            }
        }
        
        public function 
    delete_post() {
            
    $sql 'DELETE FROM forumposts WHERE postID = '.$this->postID;
            
    db_query($sql);
            if(
    db_affected_rows()==0) {
                return 
    false;
            }
            else {
                return 
    true;
            }
        }
        
        public function 
    get_infos() {
            
    $infos = array('postID' => $this->postID,
                           
    'autorID' => $this->autorID,
                           
    'autorName' => $this->autorName,
                           
    'body' => $this->body,
                           
    'postdate' => $this->postdate);
                           
            return 
    $infos;
        }
    }


    class 
    Forum_Setting {

        private 
    $name;
        private 
    $value;
        
        public function 
    __construct($name$value='') {
            
    $this->name $name;
            if(
    $value == '') {
                
    $sql 'SELECT value FROM forumsettings WHERE name = '.$this->name;
                
    $row db_fetch_assoc(db_query($sql));
                
    $this->value $row['value'];
            }
            else {
                
    $this->value $value;
            }
        }
        
        
        public function 
    save_setting() {
            
    $sql 'UPDATE forumsettings SET value = "'.$this->value.'" WHERE name = "'.$this->name.'"';
            
    db_query($sql);
        }
        
        public function 
    insert_setting() {
            
    $sql 'INSERT INTO
                        forumsettings (name, value)
                    VALUES ("'
    .$this->name.'", "'.$this->value.'")';
            
    db_query($sql);
        }
        
        public function 
    delete_setting() {
            
    $sql 'DELETE FROM forumsettings WHERE name = "'.$this->name.'"';
            
    db_query($sql);
            if(
    db_affected_rows()==0) {
                return 
    false;
            }
            else {
                return 
    true;
            }
        }
        
        public function 
    change_setting_value($newvalue) {
            if(
    $newvalue != '') {
                
    $this->value $newvalue;
                return 
    true;
            }
            else {
                return 
    false;
            }
        }
        
        public function 
    show_value() {
            return 
    $this->value;
        }
    }



    function 
    get_forum_settings($name='') {
        
    $sql 'SELECT * FROM forumsettings'.($name?' WHERE name = '.$name:' ORDER BY name ASC');
        
    $res db_query($sql);
        if(
    $name) {
            
    $row db_fetch_assoc($res);
            return 
    $row;
        }
        else {
            return 
    $res;
        }
    }

    ?>

    © 2007 by Kathal