Ignore:
Timestamp:
10/29/10 08:21:46 (9 years ago)
Author:
ddtddt
Message:

[extensions] - meta - Add new feature / Ability to customize the meta description for categories and images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/meta/maintain.inc.php

    r4177 r7468  
    3535id SMALLINT( 5 ) UNSIGNED NOT NULL , 
    3636metaKeyimg VARCHAR( 255 ) NOT NULL , 
     37metadesimg VARCHAR( 255 ) NOT NULL , 
    3738PRIMARY KEY (id))DEFAULT CHARSET=utf8;"; 
    3839        $result = pwg_query($query); 
     
    4243id SMALLINT( 5 ) UNSIGNED NOT NULL , 
    4344metaKeycat VARCHAR( 255 ) NOT NULL , 
     45metadescat VARCHAR( 255 ) NOT NULL , 
    4446PRIMARY KEY (id))DEFAULT CHARSET=utf8;"; 
    4547        $result = pwg_query($query); 
    4648 
    47         $majm='meta 2.0.5'; 
    48          
    49         $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("'.$majm.'",1,"MAJ meta");'; 
     49        $majm1='meta 2.0.5'; 
     50        $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("'.$majm1.'",1,"MAJ meta");'; 
     51    pwg_query($query); 
     52 
     53        $majm2='meta 2.1.0'; 
     54        $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("'.$majm2.'",1,"MAJ meta");'; 
    5055    pwg_query($query);   
    5156} 
     
    5459{ 
    5560 
    56         $majm='meta 2.0.5'; 
    57     global $prefixeTable; 
     61        $majm1='meta 2.0.5'; 
     62        $majm2='meta 2.1.0'; 
     63     
     64        global $prefixeTable; 
    5865 
    5966        $q = 'DROP TABLE ' . $prefixeTable . 'meta;'; 
    6067    pwg_query($q); 
    6168 
    62         $q = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="'.$majm.'" LIMIT 1;'; 
     69        $q = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="'.$majm1.'" LIMIT 1;'; 
     70    pwg_query($q); 
     71         
     72        $q = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="'.$majm2.'" LIMIT 1;'; 
    6373    pwg_query($q); 
    6474         
Note: See TracChangeset for help on using the changeset viewer.