Advertisement
Search the Community
Showing results for tags 'PHP'.
-
Well, for some odd reason the IPB api makes all user-info besides their avatars easily accessible, and it was somewhat necessary for a 3rd party app. I was working on. Long story short, the following code snippet will allow you to easily grab a user's avatar location, connect.php <?php $mysql_hostname = '...'; $mysql_user = '...'; $mysql_password = '...'; $mysql_database = '...'; $prefix = ""; $bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die('Could not connect database'); mysql_select_db($mysql_database, $bd) or die('Could not select database'); ?> user.php class User { function avatar($user) { require_once('connect.php'); try { $sql = "SELECT * FROM members WHERE name='$user'"; $query = mysql_query($sql); if(!$query) { exit('Fail'); } $member = mysql_fetch_assoc($query); $id = $member['member_id']; $sql_2 = "SELECT * FROM profile_portal WHERE pp_member_id='$id'"; $query = mysql_query($sql_2); $profile = mysql_fetch_assoc($query); $avatar = $profile['pp_main_photo']; if(!isset($avatar) || $avatar=='') { exit('Fail'); } exit('http://myforum.com/uploads/'.$avatar); } catch(Exception $ex){ exit('Fail'); } } } Usage, <?php $user = new User; $name = 'USERNAME'; $user->avatar($name);
-
Hello to all webflake members ... I have a litle problem and i hope to find some help here .. I decoded an encrypted fille with ioncube , but now when i upload it on server i get some errors.. Please can someone try to solve the php syntax error form this fille ? http://www.senq.org/function.fmt.inc.rar http://www.datafilehost.com/d/54b53cf2 Php syntax error check that i use is : http://www.meandeviation.com/tutorials/learnphp/php-syntax-check/v4/syntax-check.php Thank You verry much PS* First error is on line 541 for example : Parse error: syntax error, unexpected '(', expecting T_STRING or T_VARIABLE or ' in function.fmt.inc.php on line 541
-
Hey guys, REPLACE " ::::: " WITH A NEW LINE (ENTER) This will be a short tutorial on how to IP secure your Admin CP. It is really simple and it only requires a little of PHP. ----------------------------------------------------------------------------------------------------- Requirements : FTP ----------------------------------------------------------------------------------------------------- Difficulty : Medium / Hard But, it will keep everyone out of the ACP login page about 98%. ----------------------------------------------------------------------------------------------------- If you need any help, contact me : Skype : pandaretail AIM : haxorfatal ----------------------------------------------------------------------------------------------------- First, go to the admin folder ----------------------------------------------------------------------------------------------------- Second, Open the index.php file in notepad (view/edit in FTP (right click)) It should look like this : ----------------------------------------------------------------------------------------------------- Third, add " $ip = $_SERVER['REMOTE_ADDR']; ::::: if ($ip == "IP HERE") { " right under " <?php ". Add an " ?> " right under " exit(); " , then add " <?php ::::: }else{ ::::: ?> " IF YOU WANT MORE THAN 1 IP(s) TO BE ABLE TO USE THE ADMIN CP, PUT : " if ($ip == "IP HERE" || $ip == "OTHER IP" || $ip == "OTHER IP") { " AND JUST KEEP ADDING " || $ip == "" " AFTER THE IP BEFORE IT. Should look like this : ----------------------------------------------------------------------------------------------------- Fourth, add you're own HTML code under the "else" statement (whatever you want the people to see if they do NOT have the ip that is put in the PHP code). ----------------------------------------------------------------------------------------------------- Fifth, end it with " <?php ::::: } ::::: ?> " Should look like this : ----------------------------------------------------------------------------------------------------- HOW TO CODE SHOULD FULLY LOOK : WITH 1 IP ONLY : MORE THAN 1 IP :
-
53 downloads
Twitter Timeline gets the latest tweets from a user profile and displays them in a horizontal or vertical timeline. It is PHP server-side based because it offers very fast loading by using a smart configurable caching function. It supports all devices: desktop, touchpads and smartphones. [hr] [b]Features:[/b][list] [*]Uses a custom PHP Library to obtain tweets; [*]Easy to install and configure with minimal HTML knowledge; [*]Smart configurable cache for fast loading; you don’t need to worry about rate limits with caching enabled; [*]Can include retweets and replies in the timeline (configurable); [*]Horizontal and vertical timeline styles that work on fixed layouts as well as on responsive layouts; [*]Cross-browser support; [*]Well documented. [/list]-
- PHP
- Codecanyon
-
(and 3 more)
Tagged with:
-
24 downloads
[size=5][b]About FAQ Manager[/b][/size] A simple PHP FAQ Manager script is designed to allow you to quickly add and manage a collection of frequently asked questions which can be displayed on your website or used in WordPress. It includes a WordPress plugin for easy integration, and instructions for using it with any other PHP Website. [b]Features include:[/b][list] [*]WordPress Plugin included to place on a page in Wordpress (but can go on any PHP website too!) [*]PHP code examples for including into other custom PHP solutions [*]PHP based templates like Wordpress – no confusing template system to learn [*]3 display modes: Accordion, Single-page using anchors, or multi-page (one page per question) [*]Category Hierarchy – Add an unlimited depth of sub-categories [*]Add an unlimited number of questions [*]Easy to use Admin Control Panel – Add, edit and re-order categories and questions with ease [*]Drag & Drop reordering of categories and questions [*]Installation and wordpress plugin and website integration instructions [/list] [b]Live Preview Login:[/b] Username: admin / Password: admin-
- CodeCanyon
- PHP
-
(and 1 more)
Tagged with:
-
39 downloads
[b]Stuff[/b] is a horizontal-oriented website template created mostly for portfolios and blogs. 2 versions included: [b]HTML[/b] [b]version[/b] and [b]PHP[/b] [b]version[/b]. [b]Features[/b][list] [*]12 color schemes [*]12 page templates [*]horizontal design [*]AJAX content loading [*]Fancybox gallery [*]page content in smart columns [*]working ajax contact form [*]Cufón font replacement [*]custom font included [*]custom social media graphics [*]IE6 browser update notification [*]XHTML 1 .0 strict & CSS 3 [*]free updates [*]not bad free support [*]The code is clean and optimized. [/list] Enjoy! [hr] [b]Personal Note:[/b] There are two files due to the package size. The .rar marked (2) contains extra PSD files. The .rar marked (1) contains all of the template files.-
- Themeforest
- HTML
-
(and 2 more)
Tagged with:
-
76 downloads
[b]Quick PHP Password Protection[/b] is a single user PHP login system which is secure, quick to implement, and requires no database. Perfect for small web apps, scripts, and personal pages which only have a single admin using them. [i]Demo is not working atm, but i have used it myself and it's really simple to work with.[/i] [hr] [b]Example Usage[/b] $quickprotect->checkLoginAndDirect(); That’s all it takes! One line of effective code (not counting the class include and init), and you’ve password protected a page! [hr] [b]Features[/b][list] [*]Secure. Tested brute force and SQL Injection proof. [*]Extremely easy implementation. One line of code, and you’re done. [*]No database required. Settings stored in INI file. [/list] [b]Note:[/b] this is a single user system ONLY . Multiple users are not supported. This is designed for small projects, web apps, and personal pages.-
- 1
-
- CodeCanyon
- Quick
-
(and 6 more)
Tagged with:
-