Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
domainepublic
alternc
Commits
0349fef0
Commit
0349fef0
authored
Mar 26, 2014
by
Alan Garcia
Browse files
Coding style
parent
eb45d87d
Changes
7
Hide whitespace changes
Inline
Side-by-side
bureau/admin/dom_edit.inc.php
View file @
0349fef0
...
...
@@ -46,6 +46,7 @@ $dom->unlock();
</tr>
<?php
$first_advanced
=
true
;
$lst_advanced
=
array
();
foreach
(
$dom
->
domains_type_lst
()
as
$dt
)
{
// If this type is disabled AND it's not the type in use here, continue
if
(
$dt
[
'enable'
]
==
'NONE'
&&
strtoupper
(
$type
)
!=
strtoupper
(
$dt
[
'name'
]))
continue
;
...
...
bureau/class/class_system_bind.php
View file @
0349fef0
...
...
@@ -37,6 +37,7 @@ class system_bind {
sd.type=dt.name
and sd.enable in ('ENABLE', 'ENABLED')
order by entry ;"
);
$t
=
array
();
while
(
$db
->
next_record
())
{
$t
[
$db
->
f
(
'domaine'
)][]
=
$db
->
f
(
'entry'
);
}
...
...
bureau/class/db_mysql.php
View file @
0349fef0
...
...
@@ -475,6 +475,7 @@ class DB_Sql {
function
table_names
()
{
$this
->
query
(
"SHOW TABLES"
);
$i
=
0
;
$return
=
array
();
while
(
$info
=
mysql_fetch_row
(
$this
->
Query_ID
))
{
$return
[
$i
][
"table_name"
]
=
$info
[
0
];
...
...
bureau/class/m_admin.php
View file @
0349fef0
...
...
@@ -347,6 +347,7 @@ class m_admin {
$db
->
query
(
$request
);
if
(
$db
->
num_rows
())
{
$c
=
array
();
while
(
$db
->
next_record
())
{
$c
[
$db
->
f
(
"uid"
)]
=
$this
->
get
(
$db
->
f
(
"uid"
));
}
...
...
@@ -764,7 +765,7 @@ EOF;
# New way of deleting or backup delted user html folders using action class
$path
=
getuserpath
(
$tt
[
'login'
]);
$action
->
archive
(
$path
);
$action
->
archive
(
$path
);
$hooks
->
invoke
(
"alternc_del_member"
);
$hooks
->
invoke
(
"hook_admin_del_member"
);
...
...
@@ -946,6 +947,7 @@ EOF;
function
listtld
()
{
global
$db
;
$db
->
query
(
"SELECT tld,mode FROM tld ORDER BY tld;"
);
$c
=
array
();
while
(
$db
->
next_record
())
{
$c
[]
=
$db
->
Record
;
}
...
...
@@ -974,6 +976,7 @@ EOF;
}
}
$db
->
query
(
"SELECT m.uid,m.login,d.domaine,d.gesdns,d.gesmx,d.noerase FROM domaines d LEFT JOIN membres m ON m.uid=d.compte ORDER BY domaine;"
);
$c
=
array
();
while
(
$db
->
next_record
())
{
$tmp
=
$db
->
Record
;
if
(
$alsocheck
)
{
...
...
bureau/class/m_bro.php
View file @
0349fef0
...
...
@@ -186,6 +186,7 @@ class m_bro {
$err
->
raise
(
'bro'
,
_
(
"This directory do not exist"
));
return
false
;
}
$c
=
array
();
if
(
$dir
=
@
opendir
(
$absolute
))
{
while
((
$file
=
readdir
(
$dir
))
!==
false
)
{
if
(
$file
!=
"."
&&
$file
!=
".."
)
{
...
...
@@ -194,12 +195,8 @@ class m_bro {
}
closedir
(
$dir
);
}
if
(
isset
(
$c
)
&&
is_array
(
$c
))
{
usort
(
$c
,
array
(
"m_bro"
,
"_sort_filelist_name"
));
return
$c
;
}
else
{
return
array
();
}
usort
(
$c
,
array
(
"m_bro"
,
"_sort_filelist_name"
));
return
$c
;
}
...
...
bureau/class/m_hta.php
View file @
0349fef0
...
...
@@ -127,7 +127,9 @@ class m_hta {
return
false
;
}
$pattern
=
"/^"
.
preg_quote
(
ALTERNC_HTML
,
"/"
)
.
"\/.\/[^\/]*\/(.*)\/\.htpasswd/"
;
for
(
$i
=
0
;
$i
<
count
(
$sortie
);
$i
++
){
$r
=
array
();
for
(
$i
=
0
;
$i
<
count
(
$sortie
);
$i
++
){
preg_match
(
$pattern
,
$sortie
[
$i
],
$matches
);
$tmpm
=
isset
(
$matches
[
1
])
?
'/'
.
$matches
[
1
]
:
''
;
$r
[
$i
]
=
$tmpm
.
"/"
;
...
...
bureau/class/m_piwik.php
View file @
0349fef0
...
...
@@ -306,7 +306,6 @@ class m_piwik {
if
(
$db
->
f
(
'cnt'
)
==
1
)
{
$api_data
=
$this
->
call_privileged_page
(
'API'
,
'SitesManager.deleteSite'
,
array
(
'idSite'
=>
$site_id
));
if
(
$api_data
->
result
==
'success'
)
{
return
$db
->
query
(
"DELETE FROM piwik_sites where uid='
$cuid
' AND piwik_id='
$site_id
' LIMIT 1"
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment