randprof sorta working
This commit is contained in:
parent
f74bdda0be
commit
59ea4e32a0
6
done
6
done
@ -66,10 +66,10 @@ include/
|
|||||||
= Scrape.php
|
= Scrape.php
|
||||||
+ security.php
|
+ security.php
|
||||||
? session.php
|
? session.php
|
||||||
socgraph.php
|
? socgraph.php
|
||||||
= system_unavailable.php
|
= system_unavailable.php
|
||||||
= template_processor.php
|
= template_processor.php
|
||||||
text.php
|
? text.php
|
||||||
- user.php
|
- user.php
|
||||||
+ zot.php
|
+ zot.php
|
||||||
|
|
||||||
@ -154,7 +154,7 @@ mod/
|
|||||||
+ smilies.php
|
+ smilies.php
|
||||||
+ starred.php
|
+ starred.php
|
||||||
subthread.php
|
subthread.php
|
||||||
suggest.php
|
+ suggest.php
|
||||||
tagger.php
|
tagger.php
|
||||||
tagrm.php
|
tagrm.php
|
||||||
? uexport.php
|
? uexport.php
|
||||||
|
@ -397,8 +397,8 @@ function contact_photo_menu($contact) {
|
|||||||
|
|
||||||
|
|
||||||
function random_profile() {
|
function random_profile() {
|
||||||
$r = q("select xchan_url from xchan where xchan_network = 'zot' order by rand() limit 1");
|
$r = q("select xchan_url from xchan where 1 order by rand() limit 1");
|
||||||
if($r && count($r))
|
if($r)
|
||||||
return $r[0]['xchan_url'];
|
return $r[0]['xchan_url'];
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,6 @@ function randprof_init(&$a) {
|
|||||||
require_once('include/Contact.php');
|
require_once('include/Contact.php');
|
||||||
$x = random_profile();
|
$x = random_profile();
|
||||||
if($x)
|
if($x)
|
||||||
goaway(zid($x));
|
goaway(chanlink_url($x));
|
||||||
goaway($a->get_baseurl() . '/profile');
|
goaway($a->get_baseurl() . '/profile');
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
2013-03-05.243
|
2013-03-06.244
|
||||||
|
Reference in New Issue
Block a user