Beispiel #1
0
 def render(self, request):
     activeUser = sessions.manager.getUserId(request)
     html = ''
     html += '<html>'
     html += '<body>'
     html += '<center>'
     html += header.Main(request)
     if activeUser == 0:
         html += '<table>'
         html += '<tr>'
         html += '<td bgcolor="#FF0000">'
         html += 'User only area'
         html += '</td>'
         html += '</tr>'
         html += '</table>'
     else:
         user = usersModule.getInfo(activeUser)
         html += 'Registration date: %s' % settings.convertTimestamp(float(user[3]))
     html += footer.Main()
     html += '</center>'
     html += '</body>'
     html += '</html>'
     return html
Beispiel #2
0
def lookupName(id):
    print "%s%s %s%s" % (settings.color.RED, __name__, inspect.stack()[0][3], settings.color.ENDC)
    user = usersModule.getInfo(id)
    return str(user[1])