Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37661565
en ru br
ALT Linux repos
S:5.2.1-alt1
5.0: 3.1.1-alt1
4.1: 2.11.8.1-alt0.M41.1
4.0: 2.11.8.1-alt0.M40.1
3.0: 2.5.7-alt2pl1

Group :: System/Servers
RPM: phpMyAdmin

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#!/bin/sh
. /etc/control.d/functions

CONFIG=--dir--/phpMyAdmin.conf

new_subst disabled \
'^#[[:space:]]*Allow from all$' \
's,^\([[:space:]]*Allow from all\)$,#\1,'

new_subst disabled \
'^#[[:space:]]*Allow from 127.0.0.1$' \
's,^\([[:space:]]*Allow from 127.0.0.1\)$,#\1,'

new_subst restricted \
'^#[[:space:]]*Allow from all' \
's,^\([[:space:]]*Allow from all\),#\1,'

new_subst restricted \
'^[[:space:]]*Allow from 127.0.0.1' \
's,^#\([[:space:]]*Allow from 127.0.0.1\),\1,'

new_subst public \
'^[[:space:]]*Allow from all' \
's,^#\([[:space:]]*Allow from all\),\1,'

new_subst public \
'^[[:space:]]*Allow from 127.0.0.1' \
's,^#\([[:space:]]*Allow from 127.0.0.1\),\1,'


new_help disabled 'Disable access for phpMyAdmin'
new_help restricted 'Restriced access for phpMyAdmin '
new_help public 'Public access for phpMyAdmin '

new_summary 'Access for phpMyAdmin'

control_subst "$CONFIG" "$*"
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin