'),'Instances','AdmNote','«'.$instrow['URI'].'»'));
if (akeavinn('url',$info['contact_account']))
- $instrow['AdmURL']=nempty(truncs($info['contact_account']['url'],'Instances','AdmURL'));
+ $instrow['AdmURL']=nempty(truncs($info['contact_account']['url'],'Instances','AdmURL','«'.$instrow['URI'].'»'));
if (akeavinn('avatar',$info['contact_account']))
- $instrow['AdmAvatar']=nempty(truncs($info['contact_account']['avatar'],'Instances','AdmAvatar'));
+ $instrow['AdmAvatar']=nempty(truncs($info['contact_account']['avatar'],'Instances','AdmAvatar','«'.$instrow['URI'].'»'));
if (akeavinn('header',$info['contact_account']))
- $instrow['AdmHeader']=nempty(truncs($info['contact_account']['header'],'Instances','AdmHeader'));
+ $instrow['AdmHeader']=nempty(truncs($info['contact_account']['header'],'Instances','AdmHeader','«'.$instrow['URI'].'»'));
}
if (akeavinn('x-nodeinfo',$info)) {
if (akeavinn('software',$info['x-nodeinfo']) && akeavinn('name',$info['x-nodeinfo']['software']))
- $instrow['Software']=nempty(truncs($info['x-nodeinfo']['software']['name'],'Instances','Software'));
+ $instrow['Software']=nempty(truncs($info['x-nodeinfo']['software']['name'],'Instances','Software','«'.$instrow['URI'].'»'));
if (akeavinn('usage',$info['x-nodeinfo']) && akeavinn('users',$info['x-nodeinfo']['usage'])) {
if (akeavinn('activeMonth',$info['x-nodeinfo']['usage']['users']))
- $instrow['ActiveUsersMonth']=truncn($info['x-nodeinfo']['usage']['users']['activeMonth'],'Instances','ActiveUsersMonth');
+ $instrow['ActiveUsersMonth']=truncn($info['x-nodeinfo']['usage']['users']['activeMonth'],'Instances','ActiveUsersMonth','«'.$instrow['URI'].'»');
if (akeavinn('activeHalfyear',$info['x-nodeinfo']['usage']['users']))
- $instrow['ActiveUsersHalfYear']=truncn($info['x-nodeinfo']['usage']['users']['activeHalfyear'],'Instances','ActiveUsersHalfYear');
+ $instrow['ActiveUsersHalfYear']=truncn($info['x-nodeinfo']['usage']['users']['activeHalfyear'],'Instances','ActiveUsersHalfYear','«'.$instrow['URI'].'»');
}
}
@@ -683,7 +698,7 @@ while ($i<$cinsts) {
}
$res=mysqli_query($link,'SELECT * FROM Instances WHERE URI=\''.myesc($link,$instrow['URI']).'\'')
- or mexit(mysqli_error($link).N,3,true);
+ or mexit(mysqli_error($link).N,3);
if (mysqli_num_rows($res)>0) {
lecho('«'.$instrow['URI'].'» è già presente nel DB, la aggiorno...'.N);
@@ -700,9 +715,9 @@ while ($i<$cinsts) {
$instrow['Chosen']=$oldinstrow['Chosen'];
$instrow['Visible']=$oldinstrow['Visible'];
if ($instrow['ShortDesc']!=$oldinstrow['ShortDesc'])
- notify('La «Descrizione breve» dell’istanza «'.$instrow['URI'].'» è cambiata. La vecchia era...
'.$oldinstrow['ShortDesc'].'
La nuova è...
«'.$instrow['ShortDesc'].'
',1);
+ notify('La «Descrizione breve» dell’istanza «'.$instrow['URI'].'» è cambiata. La vecchia era...
'.$oldinstrow['ShortDesc'].'
La nuova è...
'.$instrow['ShortDesc'].'
',1);
if ($instrow['LongDesc']!=$oldinstrow['LongDesc'])
- notify('La «Descrizione lunga» dell’istanza «'.$instrow['URI'].'» è cambiata. La vecchia era...
'.$oldinstrow['LongDesc'].'
La nuove è...
«'.$instrow['LongDesc'].'
',1);
+ notify('La «Descrizione lunga» dell’istanza «'.$instrow['URI'].'» è cambiata. La vecchia era...
'.$oldinstrow['LongDesc'].'
La nuove è...
'.$instrow['LongDesc'].'
',1);
$instrow['OurDesc']=$oldinstrow['OurDesc'];
$instrow['PlaceID']=$oldinstrow['PlaceID'];
$query='UPDATE Instances SET ';
@@ -715,10 +730,10 @@ while ($i<$cinsts) {
$query=substr($query,0,-2).' WHERE Instances.ID='.$instrow['ID'];
lecho('QUERONA DI UPDATE: «'.$query.'».'.N);
mysqli_query($link,$query)
- or mexit(mysqli_error($link).N,3,true);
+ or mexit(mysqli_error($link).N,3);
$res=mysqli_query($link,'SELECT InstID, LangID, Pos, Code FROM InstLangs LEFT JOIN Languages ON Languages.ID=LangID WHERE InstID='.$instrow['ID'].' ORDER BY Pos ASC')
- or mexit(mysqli_error($link).N,3,true);
+ or mexit(mysqli_error($link).N,3);
$oldinstlangs=array();
while ($row=mysqli_fetch_assoc($res))
$oldinstlangs[]=$row;
@@ -726,10 +741,10 @@ while ($i<$cinsts) {
if ($instlangs!=$oldinstlangs) {
notify('La lista delle lingue utilizzate dichiarate dall’istanza «