!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/doc/python-gdata/examples/blogger/oauth-appengine/   drwxr-xr-x
Free 129.71 GB of 142.11 GB (91.27%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     main.py (1.72 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
__author__ = 'wiktorgworek@google.com (Wiktor Gworek)'

import wsgiref.handlers

import atom
import os
import cgi
import gdata.blogger.service

from oauth import OAuthDanceHandler, OAuthHandler, requiresOAuth
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template


class MainHandler(OAuthHandler):
  """Main handler. If user is not logged in via OAuth it will display welcome
  page. In other case user's blogs on Blogger will be displayed."""

  def get(self):
    try:
      template_values = {'logged': self.client.has_access_token()}

      if template_values['logged']:
        feed = self.client.blogger.GetBlogFeed()
        blogs = []
        for entry in feed.entry:
          blogs.append({
            'id': entry.GetBlogId(),
            'title': entry.title.text,
            'link': entry.GetHtmlLink().href,
            'published': entry.published.text,
            'updated': entry.updated.text
          })
        template_values['blogs'] = blogs
    except gdata.service.RequestError, error:
      template_values['logged'] = False

    path = os.path.join(os.path.dirname(__file__), 'index.html')
    self.response.out.write(template.render(path, template_values))


class NewPostHandler(OAuthHandler):
  """Handles AJAX POST request to create a new post on a blog."""

  @requiresOAuth
  def post(self):
    entry = atom.Entry(content=atom.Content(text=self.request.get('body')))
    self.client.blogger.AddPost(entry, blog_id=self.request.get('id'))

def main():
  application = webapp.WSGIApplication([
    (r'/oauth/(.*)', OAuthDanceHandler),
    ('/new_post', NewPostHandler),
    ('/', MainHandler),
  ], debug=True)
  wsgiref.handlers.CGIHandler().run(application)

if __name__ == '__main__':
  main()

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0083 ]--