Changeset 32916
- Timestamp:
- Jan 18, 2023, 8:13:56 AM (16 months ago)
- Location:
- extensions/Photo_add_by
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Photo_add_by/admin.php
r32392 r32916 3 3 // | Photo added by plugin for Piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2012-202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2012-2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 49 49 case 'gestion': 50 50 51 global $conf ;51 global $conf, $pwg_loaded_plugins; 52 52 53 53 $selected = $conf['Photo_add_by']; … … 70 70 )); 71 71 72 $PASPBY = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'see_photos_by_user';")); 73 if($PASPBY['state'] == 'active') 72 if(isset($pwg_loaded_plugins['see_photos_by_user'])) 74 73 { 75 74 $PABS2T = array( … … 98 97 { 99 98 conf_update_param('Photo_add_by', $_POST['infopab']); 100 if( $PASPBY['state'] == 'active')99 if(isset($pwg_loaded_plugins['see_photos_by_user'])) 101 100 { 102 101 conf_update_param('Photo_add_by_show', $_POST['inspabs2']); -
extensions/Photo_add_by/initadmin.php
r32652 r32916 3 3 // | Photo added by plugin for Piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2012-202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2012-2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/Photo_add_by/initpicture.php
r32652 r32916 3 3 // | Photo added by plugin for Piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2012-202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2012-2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 48 48 49 49 function pab(){ 50 global $conf, $page, $template ;50 global $conf, $page, $template,$pwg_loaded_plugins; 51 51 load_language('plugin.lang', PAB_PATH); 52 52 load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) ); … … 63 63 $pab=$row['username']; 64 64 65 $PASPBY = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'see_photos_by_user';"));66 65 $showpab = $conf['Photo_add_by_show']; 67 if($showpab == 1 and $PASPBY['state'] == 'active'){66 if($showpab == 1 and (isset($pwg_loaded_plugins['see_photos_by_user']))){ 68 67 $query2 = 'SELECT UT.id, UT.username, COUNT(DISTINCT(IT.id)) AS PBU 69 68 FROM ' . USERS_TABLE . ' as UT … … 89 88 $userok[] = $row2['username']; 90 89 } 91 if(in_array($pab, $userok) and $showpab == 1 and $PASPBY['state'] == 'active'){90 if(in_array($pab, $userok) and $showpab == 1 and (isset($pwg_loaded_plugins['see_photos_by_user']))){ 92 91 $urlpab = get_root_url().'index.php?/user-'.$userab.'-'.$pab; 93 92 $pab2 ='<a href="'.$urlpab.'">'.$pab.'</a>'; -
extensions/Photo_add_by/language/en_UK/plugin.lang.php
r32392 r32916 3 3 // | Photo added by plugin for Piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2012-202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2012-2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/Photo_add_by/language/fr_FR/plugin.lang.php
r32392 r32916 3 3 // | Photo added by plugin for Piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2012-202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2012-2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/Photo_add_by/main.inc.php
r32442 r32916 13 13 // | Photo added by plugin for Piwigo by TEMMII | 14 14 // +-----------------------------------------------------------------------+ 15 // | Copyright(C) 2012-202 1ddtddt http://temmii.com/piwigo/ |15 // | Copyright(C) 2012-2023 ddtddt http://temmii.com/piwigo/ | 16 16 // +-----------------------------------------------------------------------+ 17 17 // | This program is free software; you can redistribute it and/or modify | -
extensions/Photo_add_by/maintain.class.php
r32182 r32916 3 3 // | Photo added by plugin for Piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2012-202 0ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2012-2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify |
Note: See TracChangeset
for help on using the changeset viewer.