Here is simple example how can
you use this in your page.
Just call function listusers() and print returned array:
1:
<?php 2: require_once('getusers_bot.php'); 3: $rr = listusers(); 4: ?> 5: <p>on the channel #mychan is <?php echo($rr['nr_ops']+$rr['nr_voices']+$rr['nr_others'])?> users! </p> 6: <p>ops (<?php echo $rr['nr_ops']?>) are: <?php echo $rr['ops']?></p> 7: <p>voices (<?php echo $rr['nr_voices']?>) are <?php echo $rr['voices']?></p> 8: <p>others (<?php echo $rr['nr_others']?>) are <?php echo $rr['others']?></p>
|