cbox
-
Posts
6582 -
Joined
-
Last visited
-
Days Won
139
Content Type
Profiles
Forums
Downloads
Gaming News
Everything posted by iBotPeaches
-
test test test test test To see you must either click refresh a lot of times on your browser, or do a hard refresh.
-
iBotFiles is my tiny upload area. I'm not going to mess with its source, it works the way it is and thats fine with me. My php.ini is maxed at 5MB of which my hoster limits, it just loops if larger because of a php timeout.
-
I've been using that exact script on iBotFiles forever and had no problems, so don't entirely know what the problem is. If its not broken, why fix it lol?
-
Buy it. Don't crack fellow modders programs.
-
I played Fable 1 on normal xbox, hated that boring junk. Played Fable 2 on the 360, had about 10 minutes of fun. Just don't see a point in the game.
-
upload.php <?php // Configuration $allowed_filetypes = array('.rar','.zip','.sppf','.ppf','.serenity','.txt', '.png','.jpg', '.bmp'); $max_filesize = 1310720; $upload_path = './files/'; $filename = $_FILES['userfile']['name']; $ext = substr($filename, strpos($filename,'.'), strlen($filename)-1); if(!in_array($ext,$allowed_filetypes)) die('The file you attempted to upload is not allowed.'); if(filesize($_FILES['userfile']['tmp_name']) > $max_filesize) die('The file you attempted to upload is too large, our limit is 10MB.'); if(!is_writable($upload_path)) die('You cannot upload to the specified directory, please CHMOD it to 777.'); // Upload the file to your specified path. if(move_uploaded_file($_FILES['userfile']['tmp_name'],$upload_path . $filename)) echo 'Your file upload was successful, view the file <a href="' . $upload_path . $filename . '" title="Your File">here</a>'; else echo 'There was an error during the file upload. Please try again.'; // It failed . ?> Page with upload (Like index.html) <form action="./upload.php" method="post" enctype="multipart/form-data"> <label for="file"></label> <div align="center"><input name="userfile" id="file" type="file" /> <br /> <button>Upload File</button> The most basic there is.
-
I'll check. No guarantees. Locked for the upcoming flames.
-
Thanks to everybody for editing and optimizing this code. I will update the main post and source after I add my own little snippets too.
-
[BUG] Can't See (Self) Member Rank
iBotPeaches replied to Dark Slipstream's topic in Problems / Suggestions
Lots of people are missing them it seems. I forgot there was a setting for it. I thought I just did the file edits and they showed. Adding support for the rest of the groups now. -
Yeah I grabbed your "login name" instead of your display name. The display name though is stored as all lowercased then re-parsed with correct uppercase and what not. I'll fix the code to save your display name. The guest problem on my side should be fixed. It will just display nothing in between [user*] for a guest. @Curtis. That error is a permission error. You don't have permission to use the API of Internet Explorer. Nothing really I can fix about that.
-
Which skin are your referring to? NXE I haven't started that, since its WIP. That might help me test.
-
Yeah that stupid example program. I just wanted people to get an idea from the screenshots and source code then implement their own idea. That example app was merely an example, however I will be fixing the numerous bugs with it in the next day or two and update the main download.
-
Let me tell you from personal experience. After buying pre-built computers for awhile, and switching to a custom built it feels a lot better and works better. The prices are cheap but the specs are amazing for those computers because they buy sub-par parts from foreign countries. If you buy known named brand pieces and build your own computer it could have 1.5gb of RAM and run better than 4gb of that HP ram. If building computers is out of your league or just don't want to do it, I guess HP (since its better than Dell). I just thought I'd voice an opinion.
-
I'm re-coding my side of the application to display something different if they aren't signed in or haven't registered. Updates to follow. @Dakote. ibmAUTH.rar
-
I'll destroy my login info, and then try that. I must have missed a check somewhere then.
-
Shoutbox Ajax "Loading..." Placement
iBotPeaches replied to Dark Slipstream's topic in Problems / Suggestions
I'm just messing with it. I might put it at the bottom instead, I just hate it at the top constantly refreshing. -
No. Put all the clean maps in the "clean" maps folder. Run the Serenity v3 Autopatcher, then watch as the "Modified" maps folder fills up. Batch resign all those maps, then transfer.
-
It uses my custom made hook Non of that RPC-API junk, thats too confusing.
-
Please stop bumping 1-2 year old topics, just to say "Downloading now..."
-
For Killtrocity v2 Go Here: http://ibotmodz.net/content/h2modz/mappacks/h2killtrocitymappackv2.html Just dump all the clean maps that you get from your halo 2 disc or xboxgamefiles, then start the patcher. Next time use Help Desk
-
For awhile I've wanted to implement a system that forces users to login to programs released on iBotModz. Entering actual login info seemed to risky to code for the database info would have been attached to every program. I then saw the system used on TheBotNet. You don't ever have to login to any program, but it somehow knows who you are. That system is now on iBotModz. This system logs your username, post count, rep and group ID. Program makers then can use this to limit their applications to only VIP or only to users above 10 REP and 100 posts. The possibilities are endless. The system takes your IP and uses it to match towards an account which then is sent back to your program. So you can create dynamic programs sayings "Hello $username. If anyone decides to use this they can implement it via a button click, or forced on form load. This example gives an intro with no post count requirement. This is before you do anything. On a real example, it might say "200 Posts and 10 Rep needed" Then you click "Authorize" and wait a few seconds. Now it has grabbed my post count, username and rep. Now you can do simple if statements to determine if that user is allowed to your program. Now for some source code. /* * Allowed User Groups to post, edit this yourself * Remove the ones that you DONT want to use your program * For this demo, all the groups are there * * The ones that are missing are Bots, * Guests and some old usergroups that are hidden */ ArrayList aug = new ArrayList(); aug.Add(1); //Validating aug.Add(3); //Members aug.Add(4); //Owner aug.Add(5); //Banned aug.Add(7); //Sub Admins aug.Add(; //VIP aug.Add(9); //Global Mods aug.Add(10); //GFX Team aug.Add(12); //Retired Staff aug.Add(14); //Members+ aug.Add(15); //Donors aug.Add(16); //Donors+ //These are the the levels of which you want for posts and REP int minPosts = 0; int minRep = 0; //The client to download the string, which contains all login info WebClient client = new WebClient(); string info = client.DownloadString("http://www.ibotmodz.net/index.php/prog/api"); client.Dispose(); //Check if website online or not if (String.IsNullOrEmpty(info)) MessageBox.Show("iBotModz is offline"); //Gathering the 4 variables string user = info.Substring((info.IndexOf("[user]") + 6), ((info.IndexOf("[/user]") - (info.IndexOf("[user]") + 6)))); //Check if guest if (String.IsNullOrEmpty(user)) { MessageBox.Show("Please become a member on iBotModz.net." + Environment.NewLine + Environment.NewLine + "If you are a member....Make a post" + Environment.NewLine + "Without using the quick reply "); Environment.Exit(0); } int posts = Convert.ToInt32(info.Substring((info.IndexOf("[posts]") + 7), ((info.IndexOf("[/posts]") - (info.IndexOf("[posts]") + 7))))); int rep = Convert.ToInt32(info.Substring((info.IndexOf("[rep]") + 5), ((info.IndexOf("[/rep]") - (info.IndexOf("[rep]") + 5))))); int groupID = Convert.ToInt32(info.Substring((info.IndexOf("[groupid]") + 9), ((info.IndexOf("[/groupid]") - (info.IndexOf("[groupid]") + 9))))); //Check for posts if (minPosts > posts) { MessageBox.Show("You need more posts to use this program."); this.Close(); } //Check for REP level if (minRep > rep) { MessageBox.Show("You need more REP to use this program."); this.Close(); } //Check for memberID if (groupID == 0) MessageBox.Show("Sorry, you don't have a usergroup."); int flag = 0; // ((0 = failed)) ((1 = passed)) //This will go through each allowed ID, so lets hope we are in here foreach (int i in aug) { if (groupID == i) { //Yes we found it //Debug.WriteLine(groupID + " passed becuase it was equal to " + i); flag = 1; break; } else { //so far theres nothing, keep going flag = 0; //Debug.WriteLine(groupID + " failed becuase it was equal to " + i); } } //Check if passed or not switch (flag) { case 1: //Login passed break; case 0: //Login Failed this.Close(); break; } Its commented, so I'm not going to explain it. You may download the full source ibmAuthSource.rar The example program. ibmAuth.exe Or the AUTH image. If you need to post to generate your record, and don't want to spam some random topic, use this topic. Otherwise post normally. http://www.ibotmodz.net/forum/index.php?/topic/15948-login-system-test/page__pid__103350__st__20entry103350test/page__pid__103350__st__20entry103350
-
Same weapons, different skins and tiny changes.
-
Regex. Its hella confusing to learn, start the google
×
- Create New...