Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Marcus Andersson
aurweb
Commits
610733ea
Commit
610733ea
authored
Jun 25, 2009
by
Loui Chang
Browse files
Remove excess whitespace.
Signed-off-by:
Loui Chang
<
louipc.ist@gmail.com
>
parent
928945bd
Changes
8
Hide whitespace changes
Inline
Side-by-side
web/html/index.php
View file @
610733ea
...
...
@@ -23,7 +23,7 @@ $dbh = db_connect();
<div
class=
"frontpgboxbody"
>
<p>
<?php
<?php
echo
__
(
'Welcome to the AUR! Please read the %hAUR User Guidelines%h and %hAUR TU Guidelines%h for more information.'
,
'<a href="http://wiki.archlinux.org/index.php/AUR_User_Guidelines">'
,
...
...
web/html/pkgsubmit.php
View file @
610733ea
...
...
@@ -133,15 +133,15 @@ if ($_COOKIE["AURSID"]):
# array parens and any quoting, except in pkgdesc
# for pkgdesc, only remove start/end pairs of " or '
if
(
$lparts
[
0
]
==
"pkgdesc"
)
{
if
(
$lparts
[
1
]{
0
}
==
'"'
&&
if
(
$lparts
[
1
]{
0
}
==
'"'
&&
$lparts
[
1
]{
strlen
(
$lparts
[
1
])
-
1
}
==
'"'
)
{
$pkgbuild
[
$lparts
[
0
]]
=
substr
(
$lparts
[
1
],
1
,
-
1
);
}
elseif
(
$lparts
[
1
]{
0
}
==
"'"
&&
elseif
(
$lparts
[
1
]{
0
}
==
"'"
&&
$lparts
[
1
]{
strlen
(
$lparts
[
1
])
-
1
}
==
"'"
)
{
$pkgbuild
[
$lparts
[
0
]]
=
substr
(
$lparts
[
1
],
1
,
-
1
);
}
else
{
}
else
{
$pkgbuild
[
$lparts
[
0
]]
=
$lparts
[
1
];
}
}
else
{
...
...
@@ -158,7 +158,7 @@ if ($_COOKIE["AURSID"]):
}
# some error checking on PKGBUILD contents - just make sure each
# variable has a value.
This does not do any validity checking
# variable has a value.
This does not do any validity checking
# on the values, or attempts to fix line continuation/wrapping.
#
if
(
!
$seen_build_function
)
{
...
...
@@ -180,7 +180,7 @@ if ($_COOKIE["AURSID"]):
#
# Check for http:// or other protocol in url
#
#
if
(
!
$error
)
{
$parsed_url
=
parse_url
(
$pkgbuild
[
'url'
]);
if
(
!
$parsed_url
[
'scheme'
])
{
...
...
web/html/rpc.php
View file @
610733ea
...
...
@@ -10,7 +10,7 @@ if ( $_SERVER['REQUEST_METHOD'] == 'GET' ) {
if
(
isset
(
$_GET
[
'type'
])
)
{
echo
$rpc_o
->
handle
(
$_GET
);
}
else
{
else
{
// dump a simple usage output for people to use.
// this could be moved to an api doc in the future, or generated from
// the AurJSON class directly with phpdoc. For now though, just putting it here.
...
...
web/html/rss2.php
View file @
610733ea
...
...
@@ -53,4 +53,3 @@ while ($row = mysql_fetch_assoc($result)) {
#save it so that useCached() can find it
$rss
->
saveFeed
(
"RSS2.0"
,
"xml/newestpkg.xml"
,
true
);
?>
web/lib/acctfuncs.inc
View file @
610733ea
...
...
@@ -176,7 +176,7 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="",
global
$SUPPORTED_LANGS
;
if
(
isset
(
$_COOKIE
[
'AURSID'
]))
$editor_user
=
uid_from_sid
(
$_COOKIE
[
'AURSID'
]);
$editor_user
=
uid_from_sid
(
$_COOKIE
[
'AURSID'
]);
else
$editor_user
=
null
;
...
...
@@ -237,7 +237,7 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="",
$row
=
mysql_fetch_array
(
$result
);
if
(
$row
[
0
])
{
$error
=
__
(
"The username, %h%s%h, is already in use."
,
"<b>"
,
$U
,
"</b>"
);
"<b>"
,
$U
,
"</b>"
);
}
}
}
...
...
@@ -607,7 +607,7 @@ function display_account_info($U="",$T="",
* SID of 0 means login failed.
*/
function
try_login
()
{
$login_error
=
""
;
$login_error
=
""
;
$new_sid
=
""
;
$userID
=
null
;
...
...
web/lib/aurjson.class.php
View file @
610733ea
<?php
/**
* AurJSON
*
*
* This file contains the AurRPC remote handling class
**/
if
(
!
extension_loaded
(
'json'
))
...
...
web/lib/config.inc.proto
View file @
610733ea
...
...
@@ -3,7 +3,7 @@
#
define
(
"AUR_db_host"
,
"localhost:/tmp/mysql.sock"
);
define
(
"AUR_db_name"
,
"AUR"
);
define
(
"AUR_db_user"
,
"aur"
);
define
(
"AUR_db_user"
,
"aur"
);
define
(
"AUR_db_pass"
,
"aur"
);
#
Configuration
of
directories
where
things
live
...
...
web/lib/translator.inc
View file @
610733ea
...
...
@@ -61,7 +61,7 @@ function __() {
}
}
$translated
=
htmlspecialchars
(
$translated
,
ENT_QUOTES
);
$translated
=
htmlspecialchars
(
$translated
,
ENT_QUOTES
);
# This condition is to reorganise the arguments in case of
# deprecated usage. __("string", array("string","string"))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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