b374k
m1n1 1.01
Apache
Linux webd001.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
uid=2234(oyaide) gid=100(users) groups=100(users)
server ip : 213.186.33.18 | your ip : 216.73.216.109
safemode OFF
 >  / home / oyaide / www / moycompany.com / piwigo2 / plugins / lightbox /
Filename/home/oyaide/www/moycompany.com/piwigo2/plugins/lightbox/maintain.inc.php
Size979
Permissionrw----r--
Owneroyaide : users
Create time03-Feb-2016 16:41
Last modified16-Jul-2009 18:18
Last accessed16-Jul-2009 18:18
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php

if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');

function plugin_install()
{
include(dirname(__FILE__).'/admin/config_default.inc.php');

$query = '
INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
VALUES ("lightbox" , "'.addslashes(serialize($config_default)).'" , "Lightbox plugin parameters");';
pwg_query($query);

$query = 'SHOW FULL COLUMNS FROM ' . HISTORY_TABLE . ';';
$result = array_from_query($query, 'Field');
if (!in_array('lightbox', $result))
{
pwg_query('ALTER TABLE '.HISTORY_TABLE.' ADD `lightbox` ENUM(\'true\', \'false\') NULL DEFAULT NULL');
}
}

function plugin_uninstall()
{
$query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="lightbox" LIMIT 1;';
pwg_query($query);

$query = 'SHOW FULL COLUMNS FROM ' . HISTORY_TABLE . ';';
$result = array_from_query($query, 'Field');
if (in_array('lightbox', $result))
{
$q = ' ALTER TABLE '.HISTORY_TABLE.' DROP `lightbox`';
pwg_query( $q );
}
}

?>