Changeset 601

Show
Ignore:
Timestamp:
07/16/08 22:38:18 (5 years ago)
Author:
Tatzelwurm
Message:

install.sql fixed

Location:
de.inside.wcf.gamemenue/de.inside.wcf.gamemenue
Files:
1 added
1 removed
9 modified

Legend:

Unmodified
Added
Removed
  • de.inside.wcf.gamemenue/de.inside.wcf.gamemenue/acptemplates/gamemenueAdd.tpl

    r521 r601  
    11{include file='header'} 
    2 {include file='wysiwyg'} 
     2{include file='Wysiwyg'} 
    33<script type="text/javascript" src="{@RELATIVE_WCF_DIR}js/TabbedPane.class.js"></script> 
    44<script type="text/javascript" src="{@RELATIVE_WCF_DIR}js/ImageResizer.class.js"></script> 
  • de.inside.wcf.gamemenue/de.inside.wcf.gamemenue/files/lib/acp/form/GamemenueAddForm.class.php

    r521 r601  
    7878                if (isset($_POST['position']))          $this->position                 = intval($_POST['position']); 
    7979                if (isset($_POST['active']))            $this->active                   = intval($_POST['active']); 
    80                 if (isset($_POST['name']))                      $this->name                             = escapeString($_POST['name']); 
    81                 if (isset($_POST['text']))                      $this->text                             = escapeString($_POST['text']); 
     80                if (isset($_POST['name']))                      $this->name                             = StringUtil::trim($_POST['name']); 
     81                if (isset($_POST['text']))                      $this->text                             = StringUtil::trim($_POST['text']); 
    8282                if (isset($_POST['link']))                      $this->link                             = StringUtil::encodeHTML($_POST['link']); 
    8383                if (isset($_POST['bild']))                      $this->bild                             = StringUtil::encodeHTML($_POST['bild']); 
     
    131131                                (`position`, `name`, `text`, `link`, `bild`, `active`, `post`, `showhit`, `target`, `extend`, `height`, `width`, `enableSmilies`, `enableHtml`, `enableBBCodes`, `permission`) 
    132132                                VALUES  (".$this->position.", 
    133                                                 '".$this->name."', 
    134                                                 '".$this->text."', 
     133                                                '".escapeString($this->name)."', 
     134                                                '".escapeString($this->text)."', 
    135135                                                '".$this->link."', 
    136136                                                '".$this->bild."', 
     
    142142                                                ".$this->height.", 
    143143                                                ".$this->width.", 
    144                                                 ".$this->enableSmilies.", 
    145                                                 ".$this->enableHtml.", 
    146                                                 ".$this->enableBBCodes.", 
     144                                                ".intval($this->enableSmilies).", 
     145                                                ".intval($this->enableHtml).", 
     146                                                ".intval($this->enableBBCodes).", 
    147147                                                ".$this->PermissionType.")"; 
    148148                        WCF::getDB()->sendQuery($sql); 
  • de.inside.wcf.gamemenue/de.inside.wcf.gamemenue/files/lib/acp/form/GamemenueEditForm.class.php

    r521 r601  
    1818 
    1919        /** 
    20          * @see Page::show() 
    21          */ 
    22         public function show() { 
    23                 // enable menu item 
    24                 WCFACP::getMenu()->setActiveMenuItem('wcf.acp.menu.link.content.games'); 
    25                 parent::show(); 
    26         } 
    27          
    28         /** 
    2920         * @see Page::readParameters() 
    3021         */ 
     
    3223                parent::readParameters(); 
    3324                // get game id 
    34                 if (isset($_REQUEST['menue_id']))       $this->menue_id                 = intval($_REQUEST['menue_id']); 
     25                if (isset($_REQUEST['menue_id']))       $this->menue_id = intval($_REQUEST['menue_id']); 
    3526        } 
    3627 
     
    4031        public function readFormParameters() { 
    4132                parent::readFormParameters(); 
     33        } 
     34         
     35        /** 
     36         * @see Page::readData() 
     37         */ 
     38        public function readData() { 
     39                parent::readData(); 
     40                if (!count($_POST)) { 
     41                // get game 
     42                        $sql = "SELECT  * 
     43                                        FROM            wcf".WCF_N."_gamemenue games 
     44                                        WHERE           menue_id = '".$this->menue_id."'"; 
     45                        $result = WCF::getDB()->getFirstRow($sql); 
     46                        $this->position = $result['position']; 
     47                        $this->name             = $result['name']; 
     48                        $this->text             = $result['text']; 
     49                        $this->link             = $result['link']; 
     50                        $this->bild             = $result['bild']; 
     51                        $this->active   = $result['active']; 
     52                        $this->post             = $result['post']; 
     53                        $this->points   = $result['post']; 
     54                        $this->money    = $result['post']; 
     55                        $this->showhit  = $result['showhit']; 
     56                        $this->target   = $result['target']; 
     57                        $this->extend   = $result['extend']; 
     58                        $this->height   = $result['height']; 
     59                        $this->width    = $result['width']; 
     60                        $this->hit              = $result['hit']; 
     61                        $this->enableSmilies    = $result['enableSmilies']; 
     62                        $this->enableHtml               = $result['enableHtml']; 
     63                        $this->enableBBCodes    = $result['enableBBCodes']; 
     64                        $this->PermissionType   = $result['permission']; 
     65 
     66                        if($this->target || $this->extend) { 
     67                                if($this->target) $this->LinkType = 1; 
     68                                if($this->extend) { 
     69                                        $this->LinkType = 2; 
     70                                        $this->target = 0; 
     71                                } 
     72                        }elseif (!$this->target && !$this->extend){ 
     73                                $this->LinkType = 0; 
     74                        } 
     75                } 
     76        } 
     77 
     78        /** 
     79         * @see Page::assignVariables() 
     80         */ 
     81        public function assignVariables() { 
     82                parent::assignVariables(); 
     83 
     84                WCF::getTPL()->assign(array( 
     85                        'menue_id'      => $this->menue_id, 
     86                        'action'        => 'edit' 
     87                )); 
    4288        } 
    4389         
     
    81127                exit; 
    82128        } 
    83  
    84         /** 
    85          * @see Page::readData() 
    86          */ 
    87         public function readData() { 
    88                 parent::readData(); 
    89                 if (!count($_POST)) { 
    90                 // get game 
    91                         $sql = "SELECT  * 
    92                                         FROM            wcf".WCF_N."_gamemenue games 
    93                                         WHERE           menue_id = '".$this->menue_id."'"; 
    94                         $result = WCF::getDB()->sendQuery($sql); 
    95                         while ($row = WCF::getDB()->fetchArray($result)) { 
    96                                 $this->position = $row['position']; 
    97                                 $this->name             = $row['name']; 
    98                                 $this->text             = $row['text']; 
    99                                 $this->link             = $row['link']; 
    100                                 $this->bild             = $row['bild']; 
    101                                 $this->active   = $row['active']; 
    102                                 $this->post             = $row['post']; 
    103                                 $this->points   = $row['post']; 
    104                                 $this->money    = $row['post']; 
    105                                 $this->showhit  = $row['showhit']; 
    106                                 $this->target   = $row['target']; 
    107                                 $this->extend   = $row['extend']; 
    108                                 $this->height   = $row['height']; 
    109                                 $this->width    = $row['width']; 
    110                                 $this->hit              = $row['hit']; 
    111                                 $this->enableSmilies    = $row['enableSmilies']; 
    112                                 $this->enableHtml               = $row['enableHtml']; 
    113                                 $this->enableBBCodes    = $row['enableBBCodes']; 
    114                                 $this->PermissionType   = $row['permission']; 
    115                         } 
    116                         if($this->target || $this->extend) { 
    117                                 if($this->target) $this->LinkType = 1; 
    118                                 if($this->extend) { 
    119                                         $this->LinkType = 2; 
    120                                         $this->target = 0; 
    121                                 } 
    122                         }elseif (!$this->target && !$this->extend){ 
    123                                 $this->LinkType = 0; 
    124                         } 
    125                 } 
    126         } 
    127  
    128         /** 
    129          * @see Page::assignVariables() 
    130          */ 
    131         public function assignVariables() { 
    132                 parent::assignVariables(); 
    133  
    134                 WCF::getTPL()->assign(array( 
    135                         'menue_id' => $this->menue_id, 
    136                         'action' => 'edit' 
    137                 )); 
    138         } 
    139129} 
    140130?> 
  • de.inside.wcf.gamemenue/de.inside.wcf.gamemenue/install.sql

    r521 r601  
    44  `position` mediumint(3) NOT NULL default '0', 
    55  `name` varchar(100) NOT NULL default '', 
    6   `text` varchar(255) NOT NULL default '', 
     6  `text` mediumtext NOT NULL default '', 
    77  `link` varchar(100) NOT NULL default '0', 
    88  `bild` varchar(100) NOT NULL default '0', 
  • de.inside.wcf.gamemenue/de.inside.wcf.gamemenue/package.xml

    r521 r601  
    99                <isUnique>1</isUnique> 
    1010                <standalone>0</standalone> 
    11                 <version>1.5.0</version> 
     11                <version>1.5.1</version> 
    1212                <date>DATE</date> 
    1313                <plugin>com.woltlab.wcf</plugin> 
     
    2020 
    2121        <requiredpackages> 
    22                 <requiredpackage minversion="1.0.0" file="requirements/com.woltlab.community.acp.wysiwyg.1.0.5.tar.gz">com.woltlab.community.acp.wysiwyg</requiredpackage> 
     22                <requiredpackage minversion="1.0.6" file="requirements/com.woltlab.community.acp.wysiwyg.tar.gz">com.woltlab.community.acp.wysiwyg</requiredpackage> 
    2323        </requiredpackages> 
    2424                                 
     
    3838                <script>acp/gm_install.php</script> 
    3939        </instructions> 
     40        <instructions type="update" fromversion="1.5.0"> 
     41                <files>files.tar</files> 
     42                <acptemplates>acptemplates.tar</acptemplates> 
     43                <templates>templates.tar</templates> 
     44        </instructions> 
    4045</package> 
  • de.inside.wcf.gamemenue/de.inside.wcf.gamemenue/requirements/com.woltlab.community.acp.wysiwyg/files/lib/acp/form/WysiwygCacheloaderForm.class.php

    r521 r601  
    1 <? 
     1<?php 
    22require_once(WCF_DIR.'lib/form/MessageForm.class.php'); 
    33 
  • de.inside.wcf.gamemenue/de.inside.wcf.gamemenue/requirements/com.woltlab.community.acp.wysiwyg/package.xml

    r521 r601  
    1414      <isunique>1</isunique> 
    1515      <plugin>com.woltlab.wcf</plugin> 
    16       <version>1.0.5</version> 
    17       <date>2007-05-19</date> 
     16      <version>1.0.6 pl1</version> 
     17      <date>2007-05-29</date> 
    1818    </packageinformation> 
    1919         
     
    2525    <requiredpackages> 
    2626      <requiredpackage minversion="1.0.6">com.woltlab.wcf</requiredpackage> 
     27          <requiredpackage minversion="1.0.6">com.woltlab.wcf.form.message.wysiwyg</requiredpackage> 
    2728    </requiredpackages> 
    2829         
    2930    <instructions type="install"> 
    30       <!-- languages languagecode="de">de.xml</languages> 
    31           <languages languagecode="de-informal">de.xml</languages> 
    32           <languages languagecode="en">de.xml</languages --> 
    3331          <files>files.tar</files> 
    3432      <acptemplates>acptemplates.tar</acptemplates> 
    3533    </instructions> 
    3634         
     35        <instructions type="update" fromversion="1.0.5"> 
     36      <acptemplates>acptemplates.tar</acptemplates> 
     37          <files>files.tar</files> 
     38    </instructions> 
     39 
     40        <instructions type="update" fromversion="1.0.6"> 
     41      <acptemplates>acptemplates.tar</acptemplates> 
     42          <files>files.tar</files> 
     43    </instructions> 
     44         
    3745  </package> 
  • de.inside.wcf.gamemenue/de.inside.wcf.gamemenue/templates/gameMenue.tpl

    r521 r601  
    11{include file="documentHeader"} 
     2 
    23<head> 
    34        <title>{lang}wcf.gamemenue.title{/lang} - {PAGE_TITLE}</title> 
     5        {include file='headInclude' sandbox=false} 
    46 
    57        <script type="text/javascript" src="{@RELATIVE_WCF_DIR}js/MultiPagesLinks.class.js"></script> 
     
    79                <link rel="stylesheet" type="text/css" media="screen" href="{@RELATIVE_WCF_DIR}style/gameMenue.css" /> 
    810        {/capture} 
    9         {include file='headInclude' sandbox=false} 
    1011        <link rel="alternate" type="application/rss+xml" href="index.php?page=Feed&amp;type=RSS2" title="RSS2" /> 
    1112        <link rel="alternate" type="application/atom+xml" href="index.php?page=Feed&amp;type=Atom" title="Atom" /> 
  • de.inside.wcf.gamemenue/de.inside.wcf.gamemenue/templates/gameMenue_offline.tpl

    r521 r601  
    33<head> 
    44        <title>{lang}wcf.gamemenue.title{/lang} - {PAGE_TITLE}</title> 
     5        {include file='headInclude' sandbox=false} 
     6 
    57        {capture assign=specialStyles} 
    68                <link rel="stylesheet" type="text/css" media="screen" href="{@RELATIVE_WCF_DIR}style/gameMenue.css" /> 
    79        {/capture} 
    8  
    9         {include file='headInclude' sandbox=false} 
    10         <meta name="generator" content="INSIDE GameMenu"> 
     10        <meta name="generator" content="INSIDE GameMenue"> 
    1111</head> 
    1212