Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
58e2f5cb
Commit
58e2f5cb
authored
Aug 11, 2008
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add main index page. Needs more polish.
parent
d2c982b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
11 deletions
+87
-11
web/index.html
web/index.html
+0
-10
web/index.php
web/index.php
+40
-0
web/main.html
web/main.html
+46
-0
web/menulist.html
web/menulist.html
+1
-1
No files found.
web/index.html
deleted
100644 → 0
View file @
d2c982b3
<html>
<head>
<title>
ccan
</title>
</head>
<body>
<META
HTTP-EQUIV=
"Refresh"
CONTENT=
"0; URL=login.php"
>
</body>
</html>
web/index.php
0 → 100644
View file @
58e2f5cb
<?php
session_start
();
include
(
'logo.html'
);
include
(
'menulist.html'
);
include
(
'configuration'
);
include
(
'searchengine.php'
);
include
(
'main.html'
);
if
(
isset
(
$_POST
[
'search'
]))
{
$searchtext
=
$_REQUEST
[
'searchtext'
];
$in
=
$_REQUEST
[
'searchmenu'
];
if
(
trim
(
$searchtext
)
==
''
)
{
echo
'<div align="center"><font color="RED">Please enter some keyword to search</font></div>'
;
exit
();
}
}
else
if
(
$_GET
[
'author'
]
!=
''
)
{
$searchtext
=
$_GET
[
'author'
];
$in
=
"author"
;
}
else
if
(
$_GET
[
'disp'
]
==
'all'
)
{
$searchtext
=
""
;
$in
=
"module"
;
}
else
exit
();
$result
=
searchdb
(
$searchtext
,
$in
,
$db
);
echo
'<table align="left" border="0" cellpadding="8" cellspacing="1">'
;
if
(
$row
=
sqlite3_fetch_array
(
$result
))
echo
"<tr><td><a href=
\"
dispmoduleinfo.php?module="
.
$row
[
'module'
]
.
"
\"
>"
.
$row
[
"module"
]
.
"</a></br>"
.
"<a href=
\"
search.php?author="
.
$row
[
"author"
]
.
"
\"
>"
.
$row
[
"author"
]
.
"</a> : "
.
$row
[
"title"
]
.
" </br> </br></td></tr>"
;
else
echo
'<div align="center"><font color="RED"> No results found</font></div>'
;
while
(
$row
=
sqlite3_fetch_array
(
$result
))
{
echo
"<tr><td><a href=
\"
dispmoduleinfo.php?module="
.
$row
[
'module'
]
.
"
\"
>"
.
$row
[
"module"
]
.
"</a></br>"
.
"<a href=
\"
search.php?author="
.
$row
[
"author"
]
.
"
\"
>"
.
$row
[
"author"
]
.
"</a> : "
.
$row
[
"title"
]
.
" </br> </br></td></tr>"
;
}
echo
'</table>'
;
?>
web/main.html
0 → 100644
View file @
58e2f5cb
<p>
CCAN provides two kinds of useful C
code:
<a
href=
"http://ccan.ozlabs.org/repo/?cmd=inventory;path=junkcode"
>
junkcode
</a>
is a
collection of uploaded code with no particular order, and
<a
href=
"search.php?disp=all"
>
CCAN modules
</a>
are more structured,
with documentation, dependencies and testcases.
</p>
<h2>
Using The Code
</h2>
<p>
You can
<a
href=
"search.php"
>
search
</a>
,
<a
href=
"search.php?disp=all"
>
browse summary pages for all the modules
</a>
or use the
<a
href=
"http://bazaar-vcs.org/"
>
Bazaar
</a>
repository
at
<a
href=
"http://ccan.ozlabs.org/repo"
>
http://ccan.ozlabs.org/repo
</a>
.
</p>
<h2>
Contributing Code
</h2>
<p>
You can
<a
href=
"upload.php"
>
upload a .tar.gz, .tar.bz, .tar or .zip
containing C code
</a>
; if you have not created an account this won't be
visible until the contents have been checked by a human.
</p>
<p>
"GPLv2 or later" and supersets thereof (eg. LGPLv2+ or BSD)
licenses preferred.
</p>
<h2>
Questions?
</h2>
<p>
We have a
<a
href=
"http://ozlabs.org/mailman/listinfo/ccan"
>
low volume
mailing list
</a>
for discussion of CCAN in general, and you're welcome
to join.
</p>
<p>
We also have an IRC channel: #ccan on
<a
href=
"http://freenode.net"
>
Freenode
</a>
.
</p>
<p>
We also have a
<a
href=
"Wiki/"
>
wiki
</a>
; feel free to enhance it.
</p>
web/menulist.html
View file @
58e2f5cb
...
...
@@ -27,4 +27,4 @@ session_start();
Logout
</a>
</td>
</table>
<hr>
\ No newline at end of file
<hr>
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