here the fix:
create file 500fix.php then upload to your openx folder then run it from browser
the fix will cmod the folder openx market back from 777 to 755 and file from 777 to 644 which is corect
Code
[font=monospace][b][color=#000000]<?php[/color][/b]
[color=#990000]error_reporting[/color][color=#009900]([/color][b][color=#009900]E_ALL[/color][/b][color=#009900])[/color][color=#339933];[/color]
[color=#B1B100]require_once[/color] [color=#0000FF]'init.php'[/color][color=#339933];[/color]
[b][color=#000000]function[/color][/b] oxMarketChmod[color=#009900]([/color][color=#000088]$path[/color][color=#339933],[/color] [color=#000088]$filePerm[/color][color=#339933]=[/color][color=#208080]0644[/color][color=#339933],[/color] [color=#000088]$dirPerm[/color][color=#339933]=[/color][color=#208080]0755[/color][color=#009900])[/color] [color=#009900]{[/color]
[i][color=#666666]// Check if the path exists[/color][/i]
[color=#B1B100]if[/color][color=#009900]([/color][color=#339933]![/color][color=#990000]file_exists[/color][color=#009900]([/color][color=#000088]$path[/color][color=#009900])[/color][color=#009900])[/color]
[color=#009900]{[/color]
[color=#B1B100]return[/color][color=#009900]([/color][b][color=#009900]FALSE[/color][/b][color=#009900])[/color][color=#339933];[/color]
[color=#009900]}[/color]
[i][color=#666666]// See whether this is a file[/color][/i]
[color=#B1B100]if[/color][color=#009900]([/color][color=#990000]is_file[/color][color=#009900]([/color][color=#000088]$path[/color][color=#009900])[/color][color=#009900])[/color]
[color=#009900]{[/color]
[i][color=#666666]// Chmod the file with our given permissions[/color][/i]
[color=#990000]chmod[/color][color=#009900]([/color][color=#000088]$path[/color][color=#339933],[/color] [color=#000088]$filePerm[/color][color=#009900])[/color][color=#339933];[/color]
[i][color=#666666]// If this is a directory...[/color][/i]
[color=#009900]}[/color]
[color=#B1B100]elseif[/color][color=#009900]([/color][color=#990000]is_dir[/color][color=#009900]([/color][color=#000088]$path[/color][color=#009900])[/color][color=#009900])[/color]
[color=#009900]{[/color]
[i][color=#666666]// Then get an array of the contents[/color][/i]
[color=#000088]$foldersAndFiles[/color] [color=#339933]=[/color] [color=#990000]scandir[/color][color=#009900]([/color][color=#000088]$path[/color][color=#009900])[/color][color=#339933];[/color]
[i][color=#666666]// Remove "." and ".." from the list[/color][/i]
[color=#000088]$entries[/color] [color=#339933]=[/color] [color=#990000]array_slice[/color][color=#009900]([/color][color=#000088]$foldersAndFiles[/color][color=#339933],[/color] [color=#CC66CC]2[/color][color=#009900])[/color][color=#339933];[/color]
[i][color=#666666]// Parse every result...[/color][/i]
[color=#B1B100]foreach[/color][color=#009900]([/color][color=#000088]$entries[/color] [color=#B1B100]as[/color] [color=#000088]$entry[/color][color=#009900])[/color]
[color=#009900]{[/color]
[i][color=#666666]// And call this function again recursively, with the same permissions[/color][/i]
oxMarketChmod[color=#009900]([/color][color=#000088]$path[/color][color=#339933].[/color][color=#0000FF]"/"[/color][color=#339933].[/color][color=#000088]$entry[/color][color=#339933],[/color] [color=#000088]$filePerm[/color][color=#339933],[/color] [color=#000088]$dirPerm[/color][color=#009900])[/color][color=#339933];[/color]
[color=#009900]}[/color]
[i][color=#666666]// When we are done with the contents of the directory, we chmod the directory itself[/color][/i]
[color=#990000]chmod[/color][color=#009900]([/color][color=#000088]$path[/color][color=#339933],[/color] [color=#000088]$dirPerm[/color][color=#009900])[/color][color=#339933];[/color]
[color=#009900]}[/color]
[i][color=#666666]// Everything seemed to work out well, return TRUE[/color][/i]
[color=#B1B100]return[/color][color=#009900]([/color][b][color=#009900]TRUE[/color][/b][color=#009900])[/color][color=#339933];[/color]
[color=#009900]}[/color]
[color=#000088]$plugins[/color] [color=#339933]=[/color] oxMarketChmod[color=#009900]([/color]MAX_PATH[color=#339933].[/color][color=#0000FF]'/plugins/etc/oxMarket'[/color][color=#009900])[/color][color=#339933];[/color]
[color=#000088]$admin[/color] [color=#339933]=[/color] oxMarketChmod[color=#009900]([/color]MAX_PATH[color=#339933].[/color][color=#0000FF]'/www/admin/plugins/oxMarket'[/color][color=#009900])[/color][color=#339933];[/color]
?>
[color=#B1B100]if[/color] [color=#009900]([/color][color=#000088]$admin[/color] [color=#339933]==[/color] [color=#000088]$plugins[/color][color=#009900])[/color][color=#009900]{[/color]
[color=#B1B100]echo[/color] [color=#0000FF]"All Done, you can <a href='www/admin/'>login</a> now"[/color][color=#339933];[/color]
[color=#009900]}[/color]
[color=#B1B100]else[/color] [color=#009900]{[/color]
[color=#B1B100]echo[/color] [color=#0000FF]'Something has gone wrong... Perhaps oxMarket dosent exist?'[/color][color=#339933];[/color]
[color=#009900]}[/color][b][color=#000000]?>[/color][/b][/font]
credit of btdsoft
==
have fun with my site:
thoi trang
----------------------- rao vat mien phi
bong da
Choi game vui
|