Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Chris-Pettyjohn.cu.cc [Customly Coded]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Leader" data-source="post: 212861" data-attributes="member: 21320"><p># Massive Updates #</p><p>Past week I been updating design to bootstrap, so I can focus more on php and what not for a bit</p><p><img src="http://img43.imageshack.us/img43/7018/4bq.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p> </p><p>Global.php (File For Sources/Ex)</p><p>[CODE]<?php</p><p>/*</p><p>.____ .___ </p><p>| | ____ _____ __| _/___________</p><p>| | _/ __ \\__ \ / __ |/ __ \_ __ \</p><p>| |__\ ___/ / __ \_/ /_/ \ ___/| | \/</p><p>|_______ \___ >____ /\____ |\___ >__| </p><p> \/ \/ \/ \/ \/ </p><p>---------------------------------------------</p><p>*/</p><p>// Important Files</p><p>include 'application/config.php';</p><p>include 'application/database.php';</p><p>// Bootstrap Checker</p><p>if ($theme =='bootstrap');</p><p>echo</p><p>'<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"><script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>';</p><p>?></p><p><html></p><p> <style></p><p> body {</p><p> padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */</p><p> }</p><p> #lefty{</p><p> float:left;</p><p> width:46%;</p><p> margin-left: 5%;</p><p> margin-right: 2%;</p><p> }</p><p> #righty{</p><p> float:right;</p><p> margin-right: 5%;</p><p> width: 36%;</p><p> margin-left: 2%;</p><p> }</p><p> </style></p><p></html>[/CODE]</p><p> </p><p>Config.php </p><p>[CODE]<?php</p><p>/*</p><p>.____ .___ </p><p>| | ____ _____ __| _/___________</p><p>| | _/ __ \\__ \ / __ |/ __ \_ __ \</p><p>| |__\ ___/ / __ \_/ /_/ \ ___/| | \/</p><p>|_______ \___ >____ /\____ |\___ >__| </p><p> \/ \/ \/ \/ \/ </p><p>-------------------------------------------</p><p>Main Configuration File</p><p>*/</p><p> </p><p>/* Database Information */</p><p>$Host = 'localhost';</p><p>$User = 'leader_site';</p><p>$Pass = 'fucku';</p><p>$Data = 'leader_site';</p><p> </p><p>/* Site Information */</p><p>$title = 'Chris Pettyjohn'; // Site Name</p><p>$author = 'Leader'; // Website Admin/Content Creator</p><p>$year = '2013'; // Current Year';</p><p>$url = 'http://www.chris-pettyjohn.cu.cc/index'; // Website url (Do not include a / at the end)</p><p> </p><p>/* Template Locations */</p><p>$path = 'themes'; // Theme Path (Usually /theme)</p><p>$theme = 'bootstrap'; // Current Theme (Located at /themes)</p><p>?>[/CODE]</p><p>Database.php</p><p>[CODE]<?php</p><p>/* Database Connection */</p><p>require 'config.php';</p><p> </p><p>$mysqli = new mysqli($Host, $User, $Pass, $Data); // Connection</p><p> </p><p> </p><p>if (mysqli_connect_errno()) {</p><p> printf("Connect failed: %s\n", mysqli_connect_error()); // Connection Failure Notice//Check</p><p> exit();</p><p>}</p><p>?> [/CODE]</p><p>Index.php</p><p>[CODE]<?php</p><p>/*</p><p>.____ .___ </p><p>| | ____ _____ __| _/___________</p><p>| | _/ __ \\__ \ / __ |/ __ \_ __ \</p><p>| |__\ ___/ / __ \_/ /_/ \ ___/| | \/</p><p>|_______ \___ >____ /\____ |\___ >__| </p><p> \/ \/ \/ \/ \/ </p><p>-------------------------------------------</p><p>*/</p><p>include './../global.php'; // Do Not Remove This Line</p><p>?></p><p><Html></p><p><Title>Chris Pettyjohn</Title></p><p><!-- Content --></p><p><div class="navbar navbar-inverse"></p><p><div class="navbar navbar-fixed-top"></p><p><div class="navbar"></p><p> <div class="navbar-inner"></p><p> <a class="brand" href="#">Chris Pettyjohn</a></p><p> <ul class="nav"></p><p> <li class="active"><a href="#">Home</a></li></p><p> <li><a href="about.php">About Me</a></li></p><p> <li><a href="projects.php">My Projects</a></li></p><p> <li><a href="downloads.php">Downloads</a></li></p><p> <li><a href="services.php">Services</a></li></p><p> </ul></p><p> </div></p><p> </div></p><p> </div></p><p> </p><p> <div class="span3"></p><p> <center><img src="https://minotar.net/avatar/chrispettyjohn/220.png" class="img-polaroid"></center></p><p> <br></p><p> </div></p><p> <div class="offset3"></p><p> <div class="wide"></p><p> <h1>Welcome to my new portfolio! </h1></p><p> <hr></p><p> Hello, and welcome to my personal portfollio of all of my projects ever released to the public! As you may of already know, My name is Chris Pettyjohn. I am a new web designer and developer for the modern world. I am currently practicing some of my skills in php on this site! If you find any bugs feel free to report them!</p><p> </div></p><p> </p><p> <hr></p><p><!-- Content Start --></p><p><div id='lefty'></p><p><div class="alert"></p><p> <a class="close" data-dismiss="alert" href="#">&times;</a></p><p>Version 3.0 (PHP Blogs/Comments/Etc)</p><p></div></p><p><?php</p><p>$query = "SELECT Title, Content FROM Blog ORDER by Id DESC LIMIT 0,10";</p><p> </p><p>if ($result = $mysqli->query($query)) {</p><p> </p><p> /* fetch associative array */</p><p> while ($row = $result->fetch_assoc()) {</p><p> echo '<div class="well">';</p><p> echo '<h4>';</p><p> echo $row['Title'];</p><p> echo '</h4>';</p><p> echo $row['Content'];</p><p> echo '</div>';</p><p> </p><p> }</p><p> </p><p> /* free result set */</p><p> $result->free();</p><p>}</p><p> </p><p>/* close connection */</p><p>$mysqli->close();</p><p>?></p><p></div></p><p><div id='righty'></p><p><div class='well'></p><p><h4> Quick Links </h4></p><p><hr></p><p><a href='http://www.facebook.com/chris.pettyjohn.7' class='btn btn-success'>Find Me On Facebook!</a><br></p><p><a href='http://www.twitter.com/chrsmpettyjohn' class='btn btn-warning'> Follow Me On Twitter!</a><br></p><p><a href='http://www.youtube.com/chrismpettyjohn' class='btn btn-info'>Subsribe To Me On Youtube</a><br></p><p><a href='http://www.twitch.tv/devleader' class='btn'>Watch Me Stream On Twitch</a><br></p><p></div></p><p><div class='well'></p><p><h4> Website Progress </h4></p><p><hr></p><p>Track The Sites Progress Here!</p><p><div class="progress progress-danger progress-striped"></p><p> <div class="bar" style="width: 35%"></div></p><p></div></p><p></div>[/CODE]</p><p> </p><p>Database View</p><p><img src="http://img703.imageshack.us/img703/2756/hvsg.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p> </p><p>ALSO</p><p>All PHP coding for the database (where found)</p><p>Is OOP Style <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p><p> </p><p>And</p><p>If you find any unsecure code, ex please tell me so I can secure it!</p></blockquote><p></p>
[QUOTE="Leader, post: 212861, member: 21320"] # Massive Updates # Past week I been updating design to bootstrap, so I can focus more on php and what not for a bit [IMG]http://img43.imageshack.us/img43/7018/4bq.png[/IMG] Global.php (File For Sources/Ex) [CODE]<?php /* .____ .___ | | ____ _____ __| _/___________ | | _/ __ \\__ \ / __ |/ __ \_ __ \ | |__\ ___/ / __ \_/ /_/ \ ___/| | \/ |_______ \___ >____ /\____ |\___ >__| \/ \/ \/ \/ \/ --------------------------------------------- */ // Important Files include 'application/config.php'; include 'application/database.php'; // Bootstrap Checker if ($theme =='bootstrap'); echo '<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"><script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>'; ?> <html> <style> body { padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */ } #lefty{ float:left; width:46%; margin-left: 5%; margin-right: 2%; } #righty{ float:right; margin-right: 5%; width: 36%; margin-left: 2%; } </style> </html>[/CODE] Config.php [CODE]<?php /* .____ .___ | | ____ _____ __| _/___________ | | _/ __ \\__ \ / __ |/ __ \_ __ \ | |__\ ___/ / __ \_/ /_/ \ ___/| | \/ |_______ \___ >____ /\____ |\___ >__| \/ \/ \/ \/ \/ ------------------------------------------- Main Configuration File */ /* Database Information */ $Host = 'localhost'; $User = 'leader_site'; $Pass = 'fucku'; $Data = 'leader_site'; /* Site Information */ $title = 'Chris Pettyjohn'; // Site Name $author = 'Leader'; // Website Admin/Content Creator $year = '2013'; // Current Year'; $url = 'http://www.chris-pettyjohn.cu.cc/index'; // Website url (Do not include a / at the end) /* Template Locations */ $path = 'themes'; // Theme Path (Usually /theme) $theme = 'bootstrap'; // Current Theme (Located at /themes) ?>[/CODE] Database.php [CODE]<?php /* Database Connection */ require 'config.php'; $mysqli = new mysqli($Host, $User, $Pass, $Data); // Connection if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); // Connection Failure Notice//Check exit(); } ?> [/CODE] Index.php [CODE]<?php /* .____ .___ | | ____ _____ __| _/___________ | | _/ __ \\__ \ / __ |/ __ \_ __ \ | |__\ ___/ / __ \_/ /_/ \ ___/| | \/ |_______ \___ >____ /\____ |\___ >__| \/ \/ \/ \/ \/ ------------------------------------------- */ include './../global.php'; // Do Not Remove This Line ?> <Html> <Title>Chris Pettyjohn</Title> <!-- Content --> <div class="navbar navbar-inverse"> <div class="navbar navbar-fixed-top"> <div class="navbar"> <div class="navbar-inner"> <a class="brand" href="#">Chris Pettyjohn</a> <ul class="nav"> <li class="active"><a href="#">Home</a></li> <li><a href="about.php">About Me</a></li> <li><a href="projects.php">My Projects</a></li> <li><a href="downloads.php">Downloads</a></li> <li><a href="services.php">Services</a></li> </ul> </div> </div> </div> <div class="span3"> <center><img src="https://minotar.net/avatar/chrispettyjohn/220.png" class="img-polaroid"></center> <br> </div> <div class="offset3"> <div class="wide"> <h1>Welcome to my new portfolio! </h1> <hr> Hello, and welcome to my personal portfollio of all of my projects ever released to the public! As you may of already know, My name is Chris Pettyjohn. I am a new web designer and developer for the modern world. I am currently practicing some of my skills in php on this site! If you find any bugs feel free to report them! </div> <hr> <!-- Content Start --> <div id='lefty'> <div class="alert"> <a class="close" data-dismiss="alert" href="#">×</a> Version 3.0 (PHP Blogs/Comments/Etc) </div> <?php $query = "SELECT Title, Content FROM Blog ORDER by Id DESC LIMIT 0,10"; if ($result = $mysqli->query($query)) { /* fetch associative array */ while ($row = $result->fetch_assoc()) { echo '<div class="well">'; echo '<h4>'; echo $row['Title']; echo '</h4>'; echo $row['Content']; echo '</div>'; } /* free result set */ $result->free(); } /* close connection */ $mysqli->close(); ?> </div> <div id='righty'> <div class='well'> <h4> Quick Links </h4> <hr> <a href='http://www.facebook.com/chris.pettyjohn.7' class='btn btn-success'>Find Me On Facebook!</a><br> <a href='http://www.twitter.com/chrsmpettyjohn' class='btn btn-warning'> Follow Me On Twitter!</a><br> <a href='http://www.youtube.com/chrismpettyjohn' class='btn btn-info'>Subsribe To Me On Youtube</a><br> <a href='http://www.twitch.tv/devleader' class='btn'>Watch Me Stream On Twitch</a><br> </div> <div class='well'> <h4> Website Progress </h4> <hr> Track The Sites Progress Here! <div class="progress progress-danger progress-striped"> <div class="bar" style="width: 35%"></div> </div> </div>[/CODE] Database View [IMG]http://img703.imageshack.us/img703/2756/hvsg.png[/IMG] ALSO All PHP coding for the database (where found) Is OOP Style :) And If you find any unsecure code, ex please tell me so I can secure it! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Chris-Pettyjohn.cu.cc [Customly Coded]
Top