ahzulfi
-
Posts
54 -
Joined
-
Last visited
Never
Posts posted by ahzulfi
-
-
Hello guys
there are many scripts like youtube - so called Youtube Clone and clipbucket is one of them or ClipBucket was one of them.
now, i decided not to continue the Youtube Clone, i decided to create something more flexible, more extendible , more usable and more customizable.
ClipBucket v2 - its still in its pre alpha stage and havent released its code so yo have to wait till i release the it code for online use.
my main concern is now what you people think about Youtube clones & social networks, their demand and what things a developer need to make any code customize their own way.
i just want to know, is Word press like plugin system is best for developer ?? i used the same thing for ClipBucket v2
also, what are your opinions about ClipBucket - not as a use but as a developer
thanks
Arslan
-
thanks, i cannot aces my root admin, i have asked my hosting company to help me in finding this, and i will post it as soon as i get the detail.
Arslan
-
??? Anybody Home....
-
Hello,
i have make a script named ClipBucket, and it cause overload after i convert it to SEO friendly, i know its not the prefferable Category for this post but i think it also related with PHP atmost.
here is my .httacess code
<FilesMatch "\.(db|inc|html|tmpl|h|ihtml|sql|ini|configuration|config|class|bin|spd|theme|module|cfg|cpl|tmp|log|err|inc.php)$">order allow,deny
satisfy all
</FilesMatch>
########## Begin - Rewrite rules to block out some common exploits
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
########## Begin - Rewrite rules For SEO urls ######################
rewriteEngine On
#
#
#
#URL Rewriting for Videos
RewriteRule ^videos videos.php [nc]
RewriteRule ^video/([a-zA-Z0-9].+)/(.*) watch_video.php?v=$1 [nc]
RewriteRule ^user/videos/([a-zA-Z0-9].+) user_videos.php?user=$1 [nc]
#
#
#
#Signup Login & Logout URL Rewriting
RewriteRule ^signup/ signup.php [nc]
RewriteRule ^login/success login_success.php [nc]
RewriteRule ^welcome/success signup_success.php [nc]
#
#
#
#Messeges
RewriteRule ^messege/sent sent.php [nc]
RewriteRule ^messege/inbox inbox.php [nc]
RewriteRule ^messege/compose compose.php [nc]
#
#
#
#Users, Channel & Management
#
RewriteRule ^members/ /channels.php [nc]
RewriteRule ^users/ /channels.php [nc]
RewriteRule ^channels/ /channels.php [nc]
#
RewriteRule ^user/ /channels.php [nc]
RewriteRule ^user/([a-zA-Z0-9].+) view_channel.php?user=$1 [nc]
RewriteRule ^channel/([a-zA-Z0-9].+) view_channel.php?user=$1 [nc]
RewriteRule ^user/contacts/([a-zA-Z0-9].+) user_contacts.php?user=$1 [nc]
RewriteRule ^user/videos/([a-zA-Z0-9].+) user_videos.php?user=$1 [nc]
RewriteRule ^user/favourites/([a-zA-Z0-9].+) user_fav_videos.php?user=$1 [nc]
#
RewriteRule ^myaccount myaccount.php [nc]
RewriteRule ^manage/videos/ manage_videos.php [nc]
RewriteRule ^manage/favourites/ manage_favourites.php [nc]
RewriteRule ^manage/contacts/ manage_contacts.php [nc]
RewriteRule ^manage/subscriptions/ manage_subscriptions.php [nc]
RewriteRule ^manage/account user_account.php [nc]
RewriteRule ^manage/video/edit edit_video.php [nc]
#
#
#
#Pages
RewriteRule ^pages/help help.php [nc]
RewriteRule ^pages/privacy privacy.php [nc]
RewriteRule ^pages/termsofuse termsofuse.php [nc]
RewriteRule ^pages/contactus contactus.php [nc]
RewriteRule ^pages/aboutus aboutus.php [nc]
RewriteRule ^pages/faqs faqs.php [nc]
#
#
#
#Miscellenous
RewriteRule ^subscriptions manage_subscriptions.php [nc]
RewriteRule ^search/result search_result.php [nc]
RewriteRule ^upload upload.php [nc]
#
#
#Group Section
RewriteRule ^group/leave/([a-zA-Z0-9].+) leave_group.php?url=$1 [nc]
RewriteRule ^manage/group/videos/([a-zA-Z0-9].+) manage_group_videos.php?url=$1 [nc]
RewriteRule ^manage/group/videos/([a-zA-Z0-9].+) manage_group_videos.php?url=$1 [nc]
RewriteRule ^manage/group/addvideos/([a-zA-Z0-9].+) add_group_videos.php?url=$1 [nc]
RewriteRule ^manage/group/members/([a-zA-Z0-9].+) manage_group_members.php?url=$1 [nc]
RewriteRule ^manage/group manage_groups.php
RewriteRule ^group/topic/([a-zA-Z0-9].+) view_topic.php?tid=$1 [nc]
RewriteRule ^group/view/([a-zA-Z0-9].+) view_group.php?url=$1 [nc]
RewriteRule ^group/videos/([a-zA-Z0-9].+) view_group_videos.php?url=$1 [nc]
RewriteRule ^group/members/([a-zA-Z0-9].+) view_group_members.php?url=$1 [nc]
RewriteRule ^group/invite/([a-zA-Z0-9].+) invite_group.php?url=$1 [nc]
RewriteRule ^manage/group/edit/([a-zA-Z0-9]) edit_group.php?url=$1 [nc]
RewriteRule ^group/create/ create_group.php [nc]
RewriteRule ^group/join/([a-zA-Z0-9].+) join_group.php?url=$1 [nc]
RewriteRule ^community groups.php [nc]
RewriteRule ^group/delete delete_group.php [nc]
########## End - Rewrite rules For SEO urls ######################
I have used some loops in 3 ~ 4 four pages maximum of 25 times and i dont think it can cause server overload.
so please tell me if the server load is caused by the above gived .httacess.
if not then what could be the possible reasons i mean, what are the common mistakes that make server overload.
Please advice.
Thanks
ArslanHassan
-
Hello,
i got a wierd trailing slash problem with my URLS
if i use http://myurl.com/somethin
it works however http://myurl.com/somethin/ will give me 404 error
i have tried everything but nothing worked please help me how i can redirect those URL having TRAILING Slash to without Trailing Slash
Thanks & Regards
ArslanHassan
-
just echo it out inside of the javascript. the jsvariable could then be used in file.js if you want.
<script type="text/javascript"> var jsvariable = "<?php echo $phpvariable; ?>"; </script> <script type='javascript' src ='file.js'></script>
:D :D WORKED ;D THANKS ALOT
-
Hello,
i want to get $variable = 'sometext'; from PHP to javascript.
i have declared $variable in PHP
i m calling javascript as
<script type='javascript' src ='file.js'> in my page, but dont know how to send $variable to javascript so that i can use it in javascript.
hope you got what i m asking.
Urgently needed.
Thanks
ArslanHassan
-
Hello, hope this will helps you
- index.php (Where Box Has to be appea)
- edit.php (Where You Edit The box)
-Create Table iN Database
table_name
--field1(TEXT)
INDEX.PHP - PUT THIS CODE WHERE YOU WANT TO SHOW YOUR BOX
<?php
//After Connectin to database
$query=mysql_query("SELECT * FROM table_name");
$data = mysql_fetch_array($query);
echo $data['field1'];
?>
EDIT.PHP
<?php
//After Connection to Database
if(isset($_POST['submit'])){
$box = $_POST['text_box'];
$query = mysql_query("INSERT INTO table_name(field1)VALUES('".$box."')");
echo "Data Has Been Added";
}
$query=mysql_query("SELECT * FROM table_name");
$data = mysql_fetch_array($query);
?>
<form name="form1" method="post" action="">
<label>
<textarea name="text_box" cols="45" rows="5" id="text_box">echo $data['field1'];</textarea>
<br>
</label>
<label>
<input name="submit" type="submit" id="submit" value="Submit">
</label>
</form>
-
now i got another problem, i have passed a value to the image field ie
<input type='image' value='value1' name='image'>
<input type='image' value='value2' name='image'>
i want to get value from $_POST['image'] , when one the image field is pressed it will passed the value ie if second one is pressed it will pass the value 'value2' but in IE m not getting its value due to which i m having too much problem.
i have 10+ customers with each 3 Templates = 30 Pages i have to change if i have to set a hidden field, this would be a nice idea but please tell me if there is any other way to get rid of this problem
-
Yes, i think thats the only way :-\
-
you mean, there is no chance to overcome this problem ???
-
:o
Man i sort this problem out and it seems to be a very strange one
the problem is that
the image field of form like
<input type='image' value ='somevalue' name='test'>
in all browsers, except IE , value of $_POST['test'] will be 'somevalue' bu IE shows nothing
instead its shows the value using x-y coordinates
$_POST['test_x'] & $_POST['test_y]
This seems to be very strange for me....
how can this be fixed......
-
Thanks , i check it
-
Hello,
i have made Video Sharing Script called ClipBucket its Live Demo is here
http://clip-bucket.com/livedemo
use
usename : demo
password : demo
for demo login
the problem m getting is on this page
http://clip-bucket.com/livedemo/watch_video.php?v=315c27e5a3c50d0
When i use FireFox and Click On "Add To Favoutires" the Form Submits and value is then called in PHP using $_POST['form_field'] and then Video added to the favourites
but
when i use Internet Explorer 6~7 and Click on "Add To Favoutires" the Form Sumits but the value doesnt pass to $_POST and hence Video doesnt add to favourites.
here is the code that i use for sumission in HTML
<form method="post"> <input name="add_to_fav" type="image" value="add_video" src="{$imageurl}/fav_icon.png" alt="Add This Video To Favourites" title="Add This Video To Favourites"/> </form>
Here is the code which check the FORM_FIELD value
//Adding Video To Favourite
if(isset($_POST['add_to_fav'])){
$userquery->logincheck();
$msg=$myquery->AddToFavourite($_COOKIE['userid'],$videos['videoid']);
}
Dont know, Why internet Explorer is Causing this problem ???
Please Help Me :-\
Thanks
ArslanHassan
-
Hello,
i have made some templates for my script,all are designed well but i need tabless templates using DIV tags , it makes the template more flexible (i think )
please help me how to make templates using DIV easily...
thank you
Arslan
-
thank you for your comments , i dont want to copy youtube template, but our customers demand that thing.....
thank you all for viewing my script
regards
Arslan
-
shooted
please test it........again
-
Hello,
there are many video sharing scripts available, but i have tried to make a lil bit unque video sharing script
http://clip-bucket.com/livedemo
for User
username :demo
password : demo
for admin
Username : admindemo
passowrd : admin1232
i have also made some themes, one is like Youtube
please tell me if you want my script to look more better, any suggestion will be appreciatable..
thanks & regards
Arslanhassan
-
please tell me how to Shoot this problem ???
-
thanx for cheking, problem has been solved ...long time ago
-
Hello,
i have removed every path disclosure and sql dumb etc....
please retest it for the last time.....
thanx
Arslan Hassan
-
Hello, i have tried my best to remove all kind of vulnerabilities, please retest my script,
http://livedemo.clip-bucket.com/
also Comment on it
Thanx And Regards
ArslanHassan
-
but it can be DeZended and Decoded by paying just $5 for a single file , thats why i m giving the whole source code, so that no one can decode it, but put my license CHECKER or DOMAIN VALIDATOR on some secret places where even i sometimes not able to find , so , is that a good idea or not
-
Hello,
i have made a video sharing script, now i m stuck on how to make the script so that only such domain which is allowed and have it license to run the script can run the script rather then those who dont have license, i want to give complete source code to the user so that they can make addon and do adjustments they want but i also want my script not to leak, please help me how to firgure this problem out.
Thankx in Advance
ClipBucket
in Applications
Posted
sorry if i posted in wrong forum