Changeset 10981
- Timestamp:
- May 21, 2011, 7:37:43 PM (13 years ago)
- Location:
- extensions/Back2Front
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Back2Front/Back2Front.php
r10852 r10981 159 159 pwg_query("DELETE FROM ".IMAGE_CATEGORY_TABLE." 160 160 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].");"); 163 163 164 164 // random representant for each categories -
extensions/Back2Front/admin.php
r10852 r10981 9 9 if (isset($_POST['submit'])) 10 10 { 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 ); 17 16 17 conf_update_param('back2front', implode (',', $conf['back2front'])); 18 18 array_push($page['infos'], l10n('Information data registered in database')); 19 19 } -
extensions/Back2Front/functions.inc.php
r10852 r10981 1 1 <?php 2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 3 2 4 /* $item = array('verso_id', 'categories'); */ 3 5 function back2front_restaure_categories($item) -
extensions/Back2Front/language/lv_LV/plugin.lang.php
r10908 r10981 1 1 <?php 2 3 2 4 3 $lang['See back'] = 'Skatīt aizmugures daļu'; 5 4 $lang['See front'] = 'Skatīt priekšpusi'; 6 5 $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'; 7 11 8 12 $lang['This picture is a backside...'] = 'Šis attēls ir aizmugure...'; … … 13 17 14 18 $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['Th is picture has already a backside : '] = 'Šim attēlam jau ir aizmugure :';16 $lang['Th is 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'; 17 21 $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'; 19 23 $lang['This picture is no longer a backside'] = '’Šis attēls vairs nav aizmugure'; 20 24
Note: See TracChangeset
for help on using the changeset viewer.