diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6289790
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+startup*.png, config-*.php
\ No newline at end of file
diff --git a/admin/checkadminlogin.php b/admin/checkadminlogin.php
new file mode 100644
index 0000000..dc38d3f
--- /dev/null
+++ b/admin/checkadminlogin.php
@@ -0,0 +1,11 @@
+
\ No newline at end of file
diff --git a/admin/index.php b/admin/index.php
new file mode 100644
index 0000000..ee66465
--- /dev/null
+++ b/admin/index.php
@@ -0,0 +1,148 @@
+http://$3$4'", $txt);
+
+$txt = Parsedown::instance()->parse($txt);
+
+if (isset($_FILES["file"])) {
+$allok = 0;
+
+$uploadLocation = "../" . UPLOAD_LOCATION . "";
+$config['max_size'] = "100000000";
+
+$target_path = $uploadLocation;
+$extrl = " ";
+$seperator = "-";
+// $rndno=rand();
+$rndno = substr(md5_file($_FILES['file']['tmp_name']), 0, 7);
+if (move_uploaded_file($_FILES['file']['tmp_name'], $target_path.$rndno.$seperator.$_FILES["file"]["name"])) { //.$_FILES["file"]["name"]
+$fileurl = UPLOAD_LOCATION.$rndno.$seperator.$_FILES['file']['name'];
+$filephp = "image.php?url=".$rndno.$seperator.$_FILES['file']['name'];
+$extrl = '
';
+}
+else{
+die("File upload error");
+}
+
+}
+
+if (isset($_POST["txt"]) && isset($_POST["tim"])) {
+
+include "../connect.php";
+
+$mysql_table = MYSQL_TABLE;
+$qry = "INSERT INTO `$mysql_table` (`id`, `txt`, `tim`) VALUES (NULL, '".mysql_escape_string(nl2br($txt.$extrl))."', '".mysql_escape_string($tim)."')";
+$result = mysql_query($qry);
+
+if (!$result) {
+ die("Error! ".mysql_error());
+} else {
+ $allok = 1;
+}
+mysql_close($link);
+
+}
+?>
+
+
+
+ BLOG DESCRIPTION +
'); + + +define('MBLOG_PULLEY_TEXT', "What's this?"); +define('MBLOG_TOOLTIPS_TEXT', "Tap post to comment and like. :)"); +?> \ No newline at end of file diff --git a/connect.php b/connect.php new file mode 100644 index 0000000..88f7405 --- /dev/null +++ b/connect.php @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/css/LondrinaSolid.ttf b/css/LondrinaSolid.ttf new file mode 100755 index 0000000..6da0bb1 Binary files /dev/null and b/css/LondrinaSolid.ttf differ diff --git a/css/NOTICE.md b/css/NOTICE.md new file mode 100644 index 0000000..5b5b36e --- /dev/null +++ b/css/NOTICE.md @@ -0,0 +1 @@ +back.png is refrenced in script in index.php line 180. \ No newline at end of file diff --git a/css/back.png b/css/back.png new file mode 100644 index 0000000..558e543 Binary files /dev/null and b/css/back.png differ diff --git a/css/bg.gif b/css/bg.gif new file mode 100644 index 0000000..9f1b8b5 Binary files /dev/null and b/css/bg.gif differ diff --git a/css/likebtnstyles.css b/css/likebtnstyles.css new file mode 100644 index 0000000..9989063 --- /dev/null +++ b/css/likebtnstyles.css @@ -0,0 +1,47 @@ +@import url(http://fonts.googleapis.com/css?family=Londrina+Solid); +* { +padding: 0; +margin: 0; +} +body, html { +width: 100%; +background-size: 100px 100px; +font-family: "Londrina Solid"; +font-size: 12px; +text-align: right; +} +.btn, .btnm { +letter-spacing:1px; +font-family: "Londrina Solid"; +background-color: rgba(0, 0, 0, 0.5) ; +border-radius: 5px; +-webkit-border-radius: 5px; +-moz-border-radius: 5px; +-o-border-radius: 5px; +-ms-border-radius: 5px; +border: 0; +padding: 5px 8px; +color: #eee; +margin: 1px; +font-size: 12px; +-webkit-appearance: none; +} +.btn:hover { +background-color: rgba(0, 0, 0, 0.6); +} +.btn:active { +background-color: rgba(0, 0, 0, 0.7); +} +.btnm { +display: inline-block; +border-bottom-left-radius: 20px; +border-top-left-radius: 20px; +-webkit-border-bottom-left-radius: 20px; +-webkit-border-top-left-radius: 20px; +-moz-border-bottom-left-radius: 20px; +-moz-border-top-left-radius: 20px; +-o-border-bottom-left-radius: 20px; +-o-border-top-left-radius: 20px; +-ms-border-bottom-left-radius: 20px; +-ms-border-top-left-radius: 20px; +} \ No newline at end of file diff --git a/css/startupPhone320.png b/css/startupPhone320.png new file mode 100644 index 0000000..a449ad8 Binary files /dev/null and b/css/startupPhone320.png differ diff --git a/css/startupPhone640.png b/css/startupPhone640.png new file mode 100644 index 0000000..b1e2c7e Binary files /dev/null and b/css/startupPhone640.png differ diff --git a/css/styles.css b/css/styles.css new file mode 100644 index 0000000..980eec9 --- /dev/null +++ b/css/styles.css @@ -0,0 +1,372 @@ +@import url(http://fonts.googleapis.com/css?family=Londrina+Solid); +* { +padding: 0; +margin: 0; +-webkit-tap-highlight-color: rgba(50, 205, 102, 0.65); +} +body, html { +width: 100%; +background: #aaa url(bg.gif) repeat center center; +background-size: 100px 100px; +font-family: "Londrina Solid", Helvitica; +font-size: 17px; +color: #444; +font-weight: 300; +height: 100%; +text-align: center; +overflow: hidden; +} +::-moz-selection { +background-color: rgba(50, 205, 102, 0.65); +} +::selection { +background-color: rgba(50, 205, 102, 0.65); +} +ul, ol { +padding: 0; +margin: 0; +padding-left: 20px; +} +li { +padding: 0; +margin: 0; +} +a { +color: inherit; +text-decoration: none; +} +#mbinfo a { +color: #ddf; +text-decoration: none; +} +#mbinfo a:hover { +color: #cce; +text-decoration: underline; +} +#mbinfo a:active { +color: #bbd; +text-decoration: underline; +} +h1 { +font-weight: 300; +padding: 5px 20px 0px 20px; +font-size: 30px; +color: #eee; +} +h2 { +font-weight: 300; +padding: 10px 20px 0px 20px; +font-size: 23px; +color: #eee; +} +div#bio { +padding: 0px 10px 0px 10px; +text-align: center; +width: 100%; +} +div#mbinfo { +width: 100%; +background-color: rgba(0, 0, 0, 0.5) ; +color: #ddd; +padding-bottom: 2px; +overflow: hidden; +transition-duration: 1s; +-moz-transition-duration: 1s; +-webkit-transition-duration: 1s; +-o-transition-duration: 1s; +transition-property: height; +-moz-transition-property: height; +-webkit-transition-property: height; +-o-transition-property: height; +height: 1px; +} +div#pulley { +background-color: rgba(0, 0, 0, 0.5) ; +border-bottom-right-radius: 5px; +border-bottom-left-radius: 5px; +-webkit-border-bottom-right-radius: 5px; +-webkit-border-bottom-left-radius: 5px; +-moz-border-bottom-right-radius: 5px; +-moz-border-bottom-left-radius: 5px; +-o-border-bottom-right-radius: 5px; +-o-border-bottom-left-radius: 5px; +-ms-border-bottom-right-radius: 5px; +-ms-border-bottom-left-radius: 5px; +text-align: center; +color: #ddd; +width: 150px; +padding: 5px; +margin-right: 5px; +margin-left: auto; +} + +#scrollable { +overflow-y: scroll; +overflow-scrolling: touch; +-webkit-overflow-scrolling: touch; +-moz-overflow-scrolling: touch; +-o-overflow-scrolling: touch; +-ms-overflow-scrolling: touch; +position: relative; +height: 100%; +background: #fff; +background: #aaa url(bg.gif) repeat center center; +background-size: 100px 100px; +} +#content { +min-height: 100%; +transform: translateZ(0); +-webkit-transform: translateZ(0); +-moz-transform: translateZ(0); +-o-transform: translateZ(0); +-ms-transform: translateZ(0); +max-width: 720px; +text-align: left; +margin: 0 auto; +text-align: left; +} +#floating { +width: 100%; +position: absolute; +top: 0px; +z-index: 10; +} +.posts { +border-radius: 10px; +-webkit-border-radius: 10px; +-moz-border-radius: 10px; +-o-border-radius: 10px; +-ms-border-radius: 10px; +margin: 20px; +box-shadow: 0 0 5px rgba(0, 0, 0, 0.6); +transition: all 1s; +-webkit-transition: all 1s; +-moz-transition: all 1s; +-o-transition: all 1s; +-ms-transition: all 1s; +display: block; +} +.post { +padding: 10px 10px 11px 10px; +border: 1px solid #333; +border-bottom: none; +background-color: rgba(0, 0, 0, 0.075); +display: block; +width: auto; +transition: 1s background-color; +-webkit-transition: 1s background-color; +-moz-transition: 1s background-color; +-o-transition: 1s background-color; +-ms-transition: 1s background-color; +} +.post:first-child { +border-top-right-radius: 10px; +border-top-left-radius: 10px; +-webkit-top-bottom-right-radius: 10px; +-webkit-top-bottom-left-radius: 10px; +-moz-top-bottom-right-radius: 10px; +-moz-top-bottom-left-radius: 10px; +-o-top-bottom-right-radius: 10px; +-o-top-bottom-left-radius: 10px; +-ms-top-bottom-right-radius: 10px; +-ms-top-bottom-left-radius: 10px; +} +.post:last-child { +border-bottom-right-radius: 10px; +border-bottom-left-radius: 10px; +-webkit-border-bottom-right-radius: 10px; +-webkit-border-bottom-left-radius: 10px; +-moz-border-bottom-right-radius: 10px; +-moz-border-bottom-left-radius: 10px; +-o-border-bottom-right-radius: 10px; +-o-border-bottom-left-radius: 10px; +-ms-border-bottom-right-radius: 10px; +-ms-border-bottom-left-radius: 10px; +border-bottom: 1px solid #333; +} +.post:hover:not(.detail) { +background-color: rgba(0, 0, 0, 0.125); +transition: 1s background-color; +-webkit-transition: 1s background-color; +-moz-transition: 1s background-color; +-o-transition: 1s background-color; +-ms-transition: 1s background-color; +} +.post:active:not(.detail) { +background-color: rgba(0, 0, 0, 0.135); +transition: none; +-webkit-transition: none; +-moz-transition: none; +-o-transition: none; +-ms-transition: none; +} +#spacing { +height: 40px; +width: 100%; +} +.t { +padding: 4px 4px 6px 4px; +display: block; +width: auto; +word-wrap: break-word; +} +.i{ +font-size: 10px; +text-align: right; +} +.tp { +font-size: 22px; +min-height: 50px; +} +.tp a:link { +color: #226; +text-decoration: none; +} +.tp a:hover { +color: #337; +text-decoration: underline; +} +.tp a:active { +color: #448; +text-decoration: underline; +} +.ip { +font-size: 15px; +} +hr.bfo { +border: none; +height: 1px; +background-color: #333; +margin: 10px 10px 7px 10px; +box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.6); +} +hr.aft { +border: none; +height: 1px; +background-color: #333; +margin: 0px 10px 20px 10px; +box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.6); +} +.toptips { +height: auto; +margin: 3px 30px 3px 30px; +padding: 5px; +} +#topbar { +display: block; +} +.backbutton { +height: auto; +padding: 5px 0px 0px 20px; +margin: 0px 30px -6px 30px; +} +.backbutton:hover { +transition: 1s background-color; +-webkit-transition: 1s background-color; +-moz-transition: 1s background-color; +-o-transition: 1s background-color; +-ms-transition: 1s background-color; +background-color: rgba(50, 205, 102, 0.65); +} +.backbutton:active { +transition: 1s background-color; +-webkit-transition: 1s background-color; +-moz-transition: 1s background-color; +-o-transition: 1s background-color; +-ms-transition: 1s background-color; +background-color: rgba(25, 100, 50, 0.70); +} +iframe.like { + height: 30px; + width: 100%; + border: none; +} +.iframeh { + width: auto; + margin: 0px 10px 0px 10px; +} +@keyframes loading { +from { +-webkit-transform: rotate(0deg); +} +to { +-webkit-transform: rotate(360deg); +} +} +@-moz-keyframes loading { +from { +transform: rotate(0deg); +} +to { +transform: rotate(360deg); +} +} +@-webkit-keyframes loading { +from { +-webkit-transform: rotate(0deg); +} +to { +-webkit-transform: rotate(360deg); +} +} +@-o-keyframes loading { +from { +transform: rotate(0deg); +} +to { +transform: rotate(360deg); +} +} +.loadingh { + text-align: right; +} +.loading { + width: 20px; + height: 20px; + background-color: rgba(0, 0, 0, 0.5); + border-radius: 10px; + border-top-right-radius: 0px; + -webkit-border-radius: 10px; + -webkit-border-top-right-radius: 0px; + -moz-border-radius: 10px; + -moz-border-top-right-radius: 0px; + -o-border-radius: 10px; + -o-border-top-right-radius: 0px; + -ms-border-radius: 10px; + -ms-border-top-right-radius: 0px; + animation: loading 1s infinite; + -webkit-animation: loading 1s infinite; + -moz-animation: loading 1s infinite; + -o-animation: loading 1s infinite; + -ms-animation: loading 1s infinite; + display: inline-block; + margin-right: 5px; +} +.statusbarpadd { + display: none; + height: 20px; + width: 100%; +} +#list img.pim { + width: 150px; +} +#det img.pim { + width: 90%; +} +#det { +display: block; +} +#disqus_thread { + padding: 10px 10px 0px 10px; +} + +@media all and (min-width: 750px) { +div#pulley { + margin-right: 100px; +} +} +@media all and (min-width: 950px) { +div#pulley { + margin-right: 200px; +} +} \ No newline at end of file diff --git a/css/tinystyles.css b/css/tinystyles.css new file mode 100644 index 0000000..2a03158 --- /dev/null +++ b/css/tinystyles.css @@ -0,0 +1,141 @@ +@import url(http://fonts.googleapis.com/css?family=Londrina+Solid); +* { +padding: 0; +margin: 0; +} +body, html { +width: 100%; +background: #aaa url(bg.gif) repeat top left; +background-size: 100px 100px; +font-family: "Londrina Solid"; +font-size: 17px; +text-align: center; +} + +form.login { +text-align: left; +width: 250px; +margin: 10px auto 0 -100px; +position: relative; +left: 50%; +} + +h1 { +font-weight: 300; +padding: 5px 20px 0px 20px; +font-size: 30px; +color: #444; +} +input, textarea { +letter-spacing:1px; +font-family: "Londrina Solid"; +background-color: rgba(0, 0, 0, 0.5) ; +border-radius: 5px; +-webkit-border-radius: 5px; +-moz-border-radius: 5px; +-o-border-radius: 5px; +-ms-border-radius: 5px; +border: 0; +padding: 10px; +color: #eee; +margin: 3px 5px 3px 5px; +font-size: 17px; +font-width: 15px; +} +textarea { + width: 90%; + height: 200px; +} +input:focus, textarea:focus { +background-color: rgba(0, 0, 0, 0.6); +} +form { +text-align: center; +width: 100%; +} +#time { + width: 170px; + font-size: 12px; + padding-top: 13px; + padding-bottom: 13px; +} +input[type=submit], input[type=file] { + width: 33%; + -webkit-appearance: none; + -moz-appearance: none; + -o-appearance: none; + -ms-appearance: none; +} +input[type=submit]:hover { +background-color: rgba(0, 0, 0, 0.6); +} +input[type=submit]:active { +background-color: rgba(0, 0, 0, 0.7); +} +input[type=file] { +width: 90%; +padding: 2px 5px; +} +.red { + color: #f00; + font-size: 10px; +} +.statusbarpadd { + display: none; + height: 20px; + width: 100%; +} +@keyframes loading { +from { +-webkit-transform: rotate(0deg); +} +to { +-webkit-transform: rotate(360deg); +} +} +@-moz-keyframes loading { +from { +transform: rotate(0deg); +} +to { +transform: rotate(360deg); +} +} +@-webkit-keyframes loading { +from { +-webkit-transform: rotate(0deg); +} +to { +-webkit-transform: rotate(360deg); +} +} +@-o-keyframes loading { +from { +transform: rotate(0deg); +} +to { +transform: rotate(360deg); +} +} +.loading { + width: 20px; + height: 20px; + background-color: rgba(0, 0, 0, 0.5); + border-radius: 10px; + border-top-right-radius: 0px; + -webkit-border-radius: 10px; + -webkit-border-top-right-radius: 0px; + -moz-border-radius: 10px; + -moz-border-top-right-radius: 0px; + -o-border-radius: 10px; + -o-border-top-right-radius: 0px; + -ms-border-radius: 10px; + -ms-border-top-right-radius: 0px; + animation: loading 1s infinite; + -webkit-animation: loading 1s infinite; + -moz-animation: loading 1s infinite; + -o-animation: loading 1s infinite; + -ms-animation: loading 1s infinite; + display: inline-block; + margin-right: 5px; +} \ No newline at end of file diff --git a/detail.php b/detail.php new file mode 100644 index 0000000..3580956 --- /dev/null +++ b/detail.php @@ -0,0 +1,33 @@ + +'.$text.'
'."\n"; + } + else + { + $markup .= $text; + } + } + else + { + $markup .= ''.$text.'
'."\n"; + } + + break; + + case 'blockquote': + + $text = $this->parse_block_elements($element['lines']); + + $markup .= ''."\n".$text.''."\n"; + + break; + + case 'code_block': + case 'fenced_code_block': + + $text = htmlentities($element['text'], ENT_NOQUOTES); + + strpos($text, "\x1A\\") !== FALSE and $text = strtr($text, $this->escape_sequence_map); + + $markup .= '
'.$text.'
'."\n";
+
+ break;
+
+ case 'h.':
+
+ $text = $this->parse_span_elements($element['text']);
+
+ $markup .= ''.$element_text.'
';
+
+ # encodes element
+
+ $code = "\x1A".'$'.$index;
+
+ $text = str_replace($matches[0], $code, $text);
+
+ $map[$code] = $element;
+
+ $index ++;
+ }
+ }
+
+ # inline link or image
+
+ if (strpos($text, '](') !== FALSE and preg_match_all('/(!?)(\[((?:[^\[\]]|(?2))*)\])\((.*?)\)/', $text, $matches, PREG_SET_ORDER)) # inline
+ {
+ foreach ($matches as $matches)
+ {
+ $url = $matches[4];
+
+ strpos($url, '&') !== FALSE and $url = preg_replace('/&(?!#?\w+;)/', '&', $url);
+
+ if ($matches[1]) # image
+ {
+ $element = '';
+ }
+ else
+ {
+ $element_text = $this->parse_span_elements($matches[3]);
+
+ $element = ''.$element_text.'';
+ }
+
+ # ~
+
+ $code = "\x1A".'$'.$index;
+
+ $text = str_replace($matches[0], $code, $text);
+
+ $map[$code] = $element;
+
+ $index ++;
+ }
+ }
+
+ # reference link or image
+
+ if ($this->reference_map and strpos($text, '[') !== FALSE and preg_match_all('/(!?)\[(.+?)\](?:\n?[ ]?\[(.*?)\])?/ms', $text, $matches, PREG_SET_ORDER))
+ {
+ foreach ($matches as $matches)
+ {
+ $link_definition = isset($matches[3]) && $matches[3]
+ ? $matches[3]
+ : $matches[2]; # implicit
+
+ $link_definition = strtolower($link_definition);
+
+ if (isset($this->reference_map[$link_definition]))
+ {
+ $url = $this->reference_map[$link_definition];
+
+ strpos($url, '&') !== FALSE and $url = preg_replace('/&(?!#?\w+;)/', '&', $url);
+
+ if ($matches[1]) # image
+ {
+ $element = '';
+ }
+ else # anchor
+ {
+ $element_text = $this->parse_span_elements($matches[2]);
+
+ $element = ''.$element_text.'';
+ }
+
+ # ~
+
+ $code = "\x1A".'$'.$index;
+
+ $text = str_replace($matches[0], $code, $text);
+
+ $map[$code] = $element;
+
+ $index ++;
+ }
+ }
+ }
+
+ # automatic link
+
+ if (strpos($text, '<') !== FALSE and preg_match_all('/<((https?|ftp|dict):[^\^\s]+?)>/i', $text, $matches, PREG_SET_ORDER))
+ {
+ foreach ($matches as $matches)
+ {
+ $url = $matches[1];
+
+ strpos($url, '&') !== FALSE and $url = preg_replace('/&(?!#?\w+;)/', '&', $url);
+
+ $element = ':text';
+ $element = str_replace(':text', $url, $element);
+ $element = str_replace(':href', $url, $element);
+
+ # ~
+
+ $code = "\x1A".'$'.$index;
+
+ $text = str_replace($matches[0], $code, $text);
+
+ $map[$code] = $element;
+
+ $index ++;
+ }
+ }
+
+ # ~
+
+ strpos($text, '&') !== FALSE and $text = preg_replace('/&(?!#?\w+;)/', '&', $text);
+ strpos($text, '<') !== FALSE and $text = preg_replace('/<(?!\/?\w.*?>)/', '<', $text);
+
+ # ~
+
+ if (strpos($text, '_') !== FALSE)
+ {
+ $text = preg_replace('/__(?=\S)(.+?)(?<=\S)__(?!_)/s', '$1', $text);
+ $text = preg_replace('/_(?=\S)(.+?)(?<=\S)_/s', '$1', $text);
+ }
+
+ if (strpos($text, '*') !== FALSE)
+ {
+ $text = preg_replace('/\*\*(?=\S)(.+?)(?<=\S)\*\*(?!\*)/s', '$1', $text);
+ $text = preg_replace('/\*(?=\S)(.+?)(?<=\S)\*/s', '$1', $text);
+ }
+
+ $text = strtr($text, $map);
+
+ return $text;
+ }
+}
\ No newline at end of file
diff --git a/sounds/alert.mp3 b/sounds/alert.mp3
new file mode 100644
index 0000000..7ccbed4
Binary files /dev/null and b/sounds/alert.mp3 differ
diff --git a/sounds/alert.ogg b/sounds/alert.ogg
new file mode 100644
index 0000000..55c175c
Binary files /dev/null and b/sounds/alert.ogg differ
diff --git a/sounds/alert.wav b/sounds/alert.wav
new file mode 100644
index 0000000..1533ea8
Binary files /dev/null and b/sounds/alert.wav differ