mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
rename *.inc files to *.inc.php and adjust imports and references
Lukas: Add note to "UPGRADING". Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
023d2a2521
commit
888db089c5
24 changed files with 37 additions and 34 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,6 +2,7 @@
|
||||||
robots.txt
|
robots.txt
|
||||||
*.swp
|
*.swp
|
||||||
web/lib/config.inc
|
web/lib/config.inc
|
||||||
|
web/lib/config.inc.php
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
web/html/xml/*.xml
|
web/html/xml/*.xml
|
||||||
dummy-data.sql*
|
dummy-data.sql*
|
||||||
|
|
|
@ -38,7 +38,7 @@ $ msginit -l <locale> -o <locale>.po -i aur.pot
|
||||||
$ poedit <locale>.po
|
$ poedit <locale>.po
|
||||||
|
|
||||||
5. If you have a working AUR setup, add a line for the new translation in
|
5. If you have a working AUR setup, add a line for the new translation in
|
||||||
"web/lib/config.inc.proto" and test if everything looks right.
|
"web/lib/config.inc.php.proto" and test if everything looks right.
|
||||||
|
|
||||||
6. Upload the newly created ".po" file to Transifex. If you don't like the web
|
6. Upload the newly created ".po" file to Transifex. If you don't like the web
|
||||||
interface, you can also use transifex-client to do that (see below).
|
interface, you can also use transifex-client to do that (see below).
|
||||||
|
|
|
@ -13,7 +13,9 @@ each AUR upgrade by running `make install` in the "po/" directory.
|
||||||
ALTER TABLE Users DROP COLUMN NewPkgNotify;
|
ALTER TABLE Users DROP COLUMN NewPkgNotify;
|
||||||
----
|
----
|
||||||
|
|
||||||
3. Merge "web/lib/config.inc.proto" with "web/lib/config.inc".
|
3. Rename "web/lib/config.inc" to "web/lib/config.inc.php".
|
||||||
|
|
||||||
|
4. Merge "web/lib/config.inc.php.proto" with "web/lib/config.inc.php".
|
||||||
|
|
||||||
From 1.8.1 to 1.8.2
|
From 1.8.1 to 1.8.2
|
||||||
-------------------
|
-------------------
|
||||||
|
|
|
@ -97,9 +97,9 @@ Setup on Arch Linux:
|
||||||
can insert garbage addresses with:
|
can insert garbage addresses with:
|
||||||
mysql> UPDATE Users SET Email = RAND() * RAND();
|
mysql> UPDATE Users SET Email = RAND() * RAND();
|
||||||
|
|
||||||
7) Copy the config.inc.proto file to config.inc. Modify as needed.
|
7) Copy the config.inc.php.proto file to config.inc.php. Modify as needed.
|
||||||
# cd ~/aur/web/lib/
|
# cd ~/aur/web/lib/
|
||||||
# cp config.inc.proto config.inc
|
# cp config.inc.php.proto config.inc.php
|
||||||
|
|
||||||
8) Point your browser to http://aur
|
8) Point your browser to http://aur
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
||||||
|
|
||||||
include_once('aur.inc'); # access AUR common functions
|
include_once('aur.inc.php'); # access AUR common functions
|
||||||
include_once('acctfuncs.inc'); # access Account specific functions
|
include_once('acctfuncs.inc.php'); # access Account specific functions
|
||||||
|
|
||||||
set_lang(); # this sets up the visitor's language
|
set_lang(); # this sets up the visitor's language
|
||||||
check_sid(); # see if they're still logged in
|
check_sid(); # see if they're still logged in
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
||||||
|
|
||||||
include_once("aur.inc");
|
include_once("aur.inc.php");
|
||||||
set_lang();
|
set_lang();
|
||||||
check_sid();
|
check_sid();
|
||||||
html_header();
|
html_header();
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
||||||
|
|
||||||
include_once("aur.inc");
|
include_once("aur.inc.php");
|
||||||
set_lang();
|
set_lang();
|
||||||
check_sid();
|
check_sid();
|
||||||
|
|
||||||
include_once('stats.inc');
|
include_once('stats.inc.php');
|
||||||
|
|
||||||
html_header( __("Home") );
|
html_header( __("Home") );
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
||||||
|
|
||||||
include_once("aur.inc"); # access AUR common functions
|
include_once("aur.inc.php"); # access AUR common functions
|
||||||
include_once("acctfuncs.inc"); # access AUR common functions
|
include_once("acctfuncs.inc.php"); # access AUR common functions
|
||||||
|
|
||||||
|
|
||||||
# if they've got a cookie, log them out - need to do this before
|
# if they've got a cookie, log them out - need to do this before
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
||||||
|
|
||||||
include_once("aur.inc"); # access AUR common functions
|
include_once("aur.inc.php"); # access AUR common functions
|
||||||
set_lang(); # this sets up the visitor's language
|
set_lang(); # this sets up the visitor's language
|
||||||
include_once('pkgfuncs.inc'); # package specific functions
|
include_once('pkgfuncs.inc.php'); # package specific functions
|
||||||
check_sid(); # see if they're still logged in
|
check_sid(); # see if they're still logged in
|
||||||
|
|
||||||
# Set the title to the current query if required
|
# Set the title to the current query if required
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
||||||
|
|
||||||
include_once("aur.inc"); # access AUR common functions
|
include_once("aur.inc.php"); # access AUR common functions
|
||||||
|
|
||||||
set_lang(); # this sets up the visitor's language
|
set_lang(); # this sets up the visitor's language
|
||||||
check_sid(); # see if they're still logged in
|
check_sid(); # see if they're still logged in
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
||||||
include_once("config.inc");
|
include_once("config.inc.php");
|
||||||
|
|
||||||
require_once('Archive/Tar.php');
|
require_once('Archive/Tar.php');
|
||||||
|
|
||||||
include_once("aur.inc"); # access AUR common functions
|
include_once("aur.inc.php"); # access AUR common functions
|
||||||
include_once("pkgfuncs.inc"); # package functions
|
include_once("pkgfuncs.inc.php"); # package functions
|
||||||
|
|
||||||
set_lang(); # this sets up the visitor's language
|
set_lang(); # this sets up the visitor's language
|
||||||
check_sid(); # see if they're still logged in
|
check_sid(); # see if they're still logged in
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang');
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang');
|
||||||
include_once("aur.inc");
|
include_once("aur.inc.php");
|
||||||
include_once("feedcreator.class.php");
|
include_once("feedcreator.class.php");
|
||||||
|
|
||||||
#detect prefix
|
#detect prefix
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
||||||
|
|
||||||
include_once("aur.inc");
|
include_once("aur.inc.php");
|
||||||
set_lang();
|
set_lang();
|
||||||
check_sid();
|
check_sid();
|
||||||
html_header();
|
html_header();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
||||||
include('aur.inc');
|
include('aur.inc.php');
|
||||||
include('pkgfuncs.inc');
|
include('pkgfuncs.inc.php');
|
||||||
|
|
||||||
function getvotes($pkgid) {
|
function getvotes($pkgid) {
|
||||||
$dbh = db_connect();
|
$dbh = db_connect();
|
||||||
|
|
|
@ -7,12 +7,12 @@ header('Pragma: no-cache');
|
||||||
|
|
||||||
date_default_timezone_set('UTC');
|
date_default_timezone_set('UTC');
|
||||||
|
|
||||||
include_once('translator.inc');
|
include_once('translator.inc.php');
|
||||||
set_lang();
|
set_lang();
|
||||||
|
|
||||||
include_once("config.inc");
|
include_once("config.inc.php");
|
||||||
include_once("version.inc");
|
include_once("version.inc.php");
|
||||||
include_once("acctfuncs.inc");
|
include_once("acctfuncs.inc.php");
|
||||||
|
|
||||||
# Check if APC extension is loaded, and set cache prefix if it is.
|
# Check if APC extension is loaded, and set cache prefix if it is.
|
||||||
if (!defined('EXTENSION_LOADED_APC')) {
|
if (!defined('EXTENSION_LOADED_APC')) {
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* This file contains the AurRPC remote handling class
|
* This file contains the AurRPC remote handling class
|
||||||
**/
|
**/
|
||||||
include_once("aur.inc");
|
include_once("aur.inc.php");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class defines a remote interface for fetching data
|
* This class defines a remote interface for fetching data
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
include_once("config.inc");
|
include_once("config.inc.php");
|
||||||
|
|
||||||
# Make sure this visitor can delete the requested package comment
|
# Make sure this visitor can delete the requested package comment
|
||||||
# They can delete if they were the comment submitter, or if they are a TU/Dev
|
# They can delete if they were the comment submitter, or if they are a TU/Dev
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include_once('aur.inc');
|
include_once('aur.inc.php');
|
||||||
|
|
||||||
function updates_table($dbh)
|
function updates_table($dbh)
|
||||||
{
|
{
|
|
@ -12,7 +12,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR
|
||||||
# print __("%s has %s apples.", "Bill", "5");
|
# print __("%s has %s apples.", "Bill", "5");
|
||||||
# print __("This is a %hmajor%h problem!", "<b>", "</b>");
|
# print __("This is a %hmajor%h problem!", "<b>", "</b>");
|
||||||
|
|
||||||
include_once('config.inc');
|
include_once('config.inc.php');
|
||||||
include_once('gettext.php');
|
include_once('gettext.php');
|
||||||
include_once('streams.php');
|
include_once('streams.php');
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?php include_once('pkgfuncs.inc') ?>
|
<?php include_once('pkgfuncs.inc.php') ?>
|
||||||
|
|
||||||
<div class='pgbox'>
|
<div class='pgbox'>
|
||||||
<form action='packages.php' method='get'>
|
<form action='packages.php' method='get'>
|
||||||
|
|
|
@ -4,14 +4,14 @@
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
||||||
|
|
||||||
include("aur.inc"); # access AUR common functions
|
include("aur.inc.php"); # access AUR common functions
|
||||||
set_lang(); # this sets up the visitor's language
|
set_lang(); # this sets up the visitor's language
|
||||||
check_sid(); # see if they're still logged in
|
check_sid(); # see if they're still logged in
|
||||||
html_header(); # print out the HTML header
|
html_header(); # print out the HTML header
|
||||||
|
|
||||||
|
|
||||||
# Any text you print out to the visitor, use the __() function
|
# Any text you print out to the visitor, use the __() function
|
||||||
# for i18n support. See web/lib/translator.inc for more info.
|
# for i18n support. See web/lib/translator.inc.php for more info.
|
||||||
#
|
#
|
||||||
print __("Hi, this is worth reading!")."<br />\n";
|
print __("Hi, this is worth reading!")."<br />\n";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue