Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
92a0d43b
Commit
92a0d43b
authored
Jun 02, 2000
by
Kjartan
Browse files
Hopefully this will not break anything *prays*
;)
parent
776dcde4
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.php
View file @
92a0d43b
<?PHP
# Natrak was here!
# Dries was here!
# Natrak was here again!
include
"functions.inc"
;
### Log valid referers:
...
...
@@ -17,7 +13,7 @@
dbconnect
();
if
(
isset
(
$
cookie
[
3
]))
$number
=
$cookie
[
3
]
;
else
$number
=
10
;
if
(
isset
(
$
user
->
storynum
))
$number
=
$user
->
storynum
;
else
$number
=
10
;
$result
=
mysql_query
(
"SELECT * FROM stories ORDER BY sid DESC LIMIT
$number
"
);
...
...
@@ -27,8 +23,8 @@
$morelink
=
"[ "
;
if
(
$story
->
article
)
{
$morelink
.
=
"<A HREF=
\"
article.php?sid=
$story->sid
"
;
if
(
isset
(
$
cookie
[
4
]
))
{
$morelink
.
=
"&mode=
$
cookie[4]
"
;
}
else
{
$morelink
.
=
"&mode=threaded"
;
}
if
(
isset
(
$
cookie
[
5
]
))
{
$morelink
.
=
"&order=
$
cookie[5]
"
;
}
else
{
$morelink
.
=
"&order=0"
;
}
if
(
isset
(
$
user
->
umode
))
{
$morelink
.
=
"&mode=
$
user->umode
"
;
}
else
{
$morelink
.
=
"&mode=threaded"
;
}
if
(
isset
(
$
user
->
uorder
))
{
$morelink
.
=
"&order=
$
user->uorder
"
;
}
else
{
$morelink
.
=
"&order=0"
;
}
$bytes
=
strlen
(
$story
->
article
);
$morelink
.
=
"
\"
><FONT COLOR=
\"
$theme->hlcolor2
\"
><B>read more</B></FONT></A> |
$bytes
bytes in body | "
;
}
...
...
@@ -37,9 +33,9 @@
if
(
!
$query
)
{
$count
=
0
;
}
else
{
$count
=
mysql_num_rows
(
$query
);
}
$morelink
.
=
"<A HREF=
\"
article.php?sid=
$story->sid
"
;
if
(
isset
(
$
cookie
[
4
]
))
{
$morelink
.
=
"&mode=
$
cookie[4]
"
;
}
else
{
$morelink
.
=
"&mode=threaded"
;
}
if
(
isset
(
$
cookie
[
5
]
))
{
$morelink
.
=
"&order=
$
cookie[5]
"
;
}
else
{
$morelink
.
=
"&order=0"
;
}
if
(
isset
(
$
cookie
[
6
]
))
{
$morelink
.
=
"&thold=
$
cookie[6]
"
;
}
else
{
$morelink
.
=
"&thold=0"
;
}
if
(
isset
(
$
user
->
umode
))
{
$morelink
.
=
"&mode=
$
user->umode
"
;
}
else
{
$morelink
.
=
"&mode=threaded"
;
}
if
(
isset
(
$
user
->
uorder
))
{
$morelink
.
=
"&order=
$
user->uorder
"
;
}
else
{
$morelink
.
=
"&order=0"
;
}
if
(
isset
(
$
user
->
thold
))
{
$morelink
.
=
"&thold=
$
user->thold
"
;
}
else
{
$morelink
.
=
"&thold=0"
;
}
$morelink
.
=
"
\"
><FONT COLOR=
\"
$theme->hlcolor2
\"
>
$count
comments</FONT></A> ]"
;
$theme
->
abstract
(
$story
->
aid
,
$story
->
informant
,
$story
->
time
,
stripslashes
(
$story
->
subject
),
stripslashes
(
$story
->
abstract
),
stripslashes
(
$story
->
comments
),
$story
->
category
,
$story
->
department
,
$morelink
);
...
...
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