-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
52 lines (45 loc) · 1.79 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
if(!defined('__ROOT__')){
define('__ROOT__', dirname(__FILE__));
}
require_once(__ROOT__.'/inc/virtualdirectory.php');
require_once(__ROOT__.'/settings.php');
$virtualDirectory = new VirtualDirectory();
$baseUrl = $virtualDirectory->baseurl;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1"><title>
NuGet Private Repository
</title>
<style>
body { font-family: Calibri; }
</style>
</head>
<body>
<div>
<h2>You are running NuGet.PhpServer v<?php echo __PHP_NUGET_VERSION__;?></h2>
<p>
Click <a href="<?php echo $baseUrl;?>nuget/Packages()">here</a> to view your packages.
</p>
<p>
Click <a href="<?php echo $baseUrl;?>admin">here</a> to add/remove packages and users.
</p>
<fieldset style="width:800px">
<legend><strong>Repository URLs</strong></legend>
In the package manager settings, add the following URL to the list of
Package Sources:
<blockquote>
<strong><?php echo $baseUrl;?>nuget</strong>
</blockquote>
To enable pushing packages to this feed using the nuget command line tool (nuget.exe). Set the api key appSetting in web.config.
<blockquote>
<strong>nuget push {package file} -s <?php echo $baseUrl;?> {apikey}</strong>
</blockquote>
</fieldset>
<p style="font-size:1.1em">
To add packages to the feed put package files (.nupkg files) in the folder "phpnuget\Packages".
</p>
</div>
</body>
</html>