Changeset 10981


Ignore:
Timestamp:
05/21/11 19:37:43 (9 years ago)
Author:
mistic100
Message:

last commit for first public version

Location:
extensions/Back2Front
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/Back2Front/Back2Front.php

    r10852 r10981  
    159159          pwg_query("DELETE FROM ".IMAGE_CATEGORY_TABLE." 
    160160            WHERE image_id = ".$_GET['image_id'].";"); 
    161           pwg_query("INSERT INTO ".IMAGE_CATEGORY_TABLE." 
    162             VALUES(".$_GET['image_id'].", ".$conf['back2front'][0].", NULL);"); 
     161          pwg_query("INSERT INTO ".IMAGE_CATEGORY_TABLE."(image_id, category_id) 
     162            VALUES(".$_GET['image_id'].", ".$conf['back2front'][0].");"); 
    163163             
    164164          // random representant for each categories 
  • extensions/Back2Front/admin.php

    r10852 r10981  
    99if (isset($_POST['submit'])) 
    1010{ 
    11         $conf['back2front'] = array($conf['back2front'][0], $_POST['switch_mode'], $_POST['transition']); 
    12                          
    13     $query = 'UPDATE ' . CONFIG_TABLE . ' 
    14                 SET value="' . implode (',', $conf['back2front']) . '" 
    15                 WHERE param="back2front"'; 
    16     pwg_query($query); 
     11        $conf['back2front'] = array( 
     12    $conf['back2front'][0],  
     13    $_POST['switch_mode'],  
     14    $_POST['transition'] 
     15  ); 
    1716         
     17  conf_update_param('back2front', implode (',', $conf['back2front'])); 
    1818        array_push($page['infos'], l10n('Information data registered in database')); 
    1919} 
  • extensions/Back2Front/functions.inc.php

    r10852 r10981  
    11<?php 
     2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 
     3 
    24/* $item = array('verso_id', 'categories'); */ 
    35function back2front_restaure_categories($item) 
  • extensions/Back2Front/language/lv_LV/plugin.lang.php

    r10908 r10981  
    11<?php 
    2  
    32 
    43$lang['See back'] = 'Skatīt aizmugures daļu'; 
    54$lang['See front'] = 'Skatīt priekšpusi'; 
    65$lang['Modify backside information'] = 'Modificēt aizmugures daļas informāciju'; 
     6 
     7$lang['Switch mode'] = 'Switch mode'; 
     8$lang['Click'] = 'Click'; 
     9$lang['Mouseover'] = 'Mouseover'; 
     10$lang['Fade'] = 'Fade'; 
    711 
    812$lang['This picture is a backside...'] = 'Šis attēls ir aizmugure...'; 
     
    1317 
    1418$lang['Backside and frontside can\'t be the same picture'] = 'Aizmugure un priekšpuse nevar būt viens un tas pats attēls'; 
    15 $lang['This picture has already a backside : '] = 'Šim attēlam jau ir aizmugure : '; 
    16 $lang['This picture id already a backside : '] = 'Šis attēls jau ir aizmugure : '; 
     19$lang['The picture n°%d has already a backside : %s'] = 'The picture n°%d has already a backside : %s'; 
     20$lang['The picture n°%s is already a backside'] = 'The picture n°%s is already a backside'; 
    1721$lang['This picture is now the backside of the picture n° '] = 'Šis attēls tagad ir attēla n°  aizmugure '; 
    18 $lang['Unknown id for frontside picture : '] = 'Nezināms priekšpuses attēla id : '; 
     22$lang['Unknown id %d for frontside picture'] = 'Unknown id %d for frontside picture'; 
    1923$lang['This picture is no longer a backside'] = '’Šis attēls vairs nav aizmugure'; 
    2024 
Note: See TracChangeset for help on using the changeset viewer.