mirror of
https://github.com/YGGverse/Yo.git
synced 2025-02-05 11:24:20 +00:00
make paths relative
This commit is contained in:
parent
24904f667e
commit
880764aa49
@ -23,10 +23,6 @@
|
|||||||
},
|
},
|
||||||
"webui":
|
"webui":
|
||||||
{
|
{
|
||||||
"url":
|
|
||||||
{
|
|
||||||
"base":"http://127.0.0.1"
|
|
||||||
},
|
|
||||||
"pagination":
|
"pagination":
|
||||||
{
|
{
|
||||||
"limit":20
|
"limit":20
|
||||||
|
@ -300,8 +300,8 @@ foreach ($config->snap->storage->remote->ftp as $i => $ftp)
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<form name="search" method="GET" action="<?php echo $config->webui->url->base; ?>/search.php">
|
<form name="search" method="GET" action="search.php">
|
||||||
<h1><a href="<?php echo $config->webui->url->base; ?>"><?php echo _('Yo!') ?></a></h1>
|
<h1><a href="./"><?php echo _('Yo!') ?></a></h1>
|
||||||
<input type="text" name="q" placeholder="<?php echo $placeholder ?>" value="" />
|
<input type="text" name="q" placeholder="<?php echo $placeholder ?>" value="" />
|
||||||
<button type="submit">
|
<button type="submit">
|
||||||
<sub>
|
<sub>
|
||||||
@ -377,7 +377,7 @@ foreach ($config->snap->storage->remote->ftp as $i => $ftp)
|
|||||||
<ul>
|
<ul>
|
||||||
<?php foreach ($snap as $file) { ?>
|
<?php foreach ($snap as $file) { ?>
|
||||||
<li>
|
<li>
|
||||||
<a rel="nofollow" href="<?php echo $config->webui->url->base; ?>/api.php?action=snap&method=download&source=<?php echo $file->source ?>&md5url=<?php echo $file->md5url ?>&time=<?php echo $file->time ?>">
|
<a rel="nofollow" href="api.php?action=snap&method=download&source=<?php echo $file->source ?>&md5url=<?php echo $file->md5url ?>&time=<?php echo $file->time ?>">
|
||||||
<?php echo sprintf('%s (tar.gz / %s bytes)', date('c', $file->time), number_format($file->size)) ?>
|
<?php echo sprintf('%s (tar.gz / %s bytes)', date('c', $file->time), number_format($file->size)) ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -272,7 +272,7 @@ $placeholder = sprintf(
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<form name="search" method="GET" action="<?php echo $config->webui->url->base; ?>/search.php">
|
<form name="search" method="GET" action="search.php">
|
||||||
<h1><?php echo _('Yo!') ?></h1>
|
<h1><?php echo _('Yo!') ?></h1>
|
||||||
<input type="text" name="q" placeholder="<?php echo $placeholder ?>" value="" />
|
<input type="text" name="q" placeholder="<?php echo $placeholder ?>" value="" />
|
||||||
<button type="submit">
|
<button type="submit">
|
||||||
|
@ -305,8 +305,8 @@ $results = $query->offset($p * $config->webui->pagination->limit - $config->webu
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<form name="search" method="GET" action="<?php echo $config->webui->url->base; ?>/search.php">
|
<form name="search" method="GET" action="search.php">
|
||||||
<h1><a href="<?php echo $config->webui->url->base; ?>"><?php echo _('Yo!') ?></a></h1>
|
<h1><a href="./"><?php echo _('Yo!') ?></a></h1>
|
||||||
<input type="text" name="q" placeholder="<?php echo $placeholder ?>" value="<?php echo htmlentities($q) ?>" />
|
<input type="text" name="q" placeholder="<?php echo $placeholder ?>" value="<?php echo htmlentities($q) ?>" />
|
||||||
<button type="submit">
|
<button type="submit">
|
||||||
<sub>
|
<sub>
|
||||||
@ -366,14 +366,14 @@ $results = $query->offset($p * $config->webui->pagination->limit - $config->webu
|
|||||||
<div>
|
<div>
|
||||||
<a href="<?php echo $result->url ?>"><?php echo htmlentities(urldecode($result->url)) ?></a>
|
<a href="<?php echo $result->url ?>"><?php echo htmlentities(urldecode($result->url)) ?></a>
|
||||||
<small>•</small>
|
<small>•</small>
|
||||||
<a rel="nofollow" href="<?php echo $config->webui->url->base; ?>/explore.php?i=<?php echo $result->getId() ?>"><?php echo _('explore') ?></a>
|
<a rel="nofollow" href="explore.php?i=<?php echo $result->getId() ?>"><?php echo _('explore') ?></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ($p * $config->webui->pagination->limit <= $results->getTotal()) { ?>
|
<?php if ($p * $config->webui->pagination->limit <= $results->getTotal()) { ?>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<a href="<?php echo $config->webui->url->base; ?>/search.php?q=<?php echo urlencode(htmlentities($q)) ?>&p=<?php echo $p + 1 ?>">
|
<a href="search.php?q=<?php echo urlencode(htmlentities($q)) ?>&p=<?php echo $p + 1 ?>">
|
||||||
<?php echo _('More') ?>
|
<?php echo _('More') ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user