Not found yui-moodlesimple-min.css - php

I have a little problem, I want to do accesible my webpage(with Moodle), I used http://jigsaw.w3.org/css-validator/ and I have a lot of errors, the uri is on: theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.css but I don't found it.
I look it the file(yui_combo.php) but I dont found anything, can anyone help me? thanks

Ok this file is generated automatically from files:
--versionyui--/widget-base/assets/skins/sam/widget-base.css
--versionyui--/widget-stack/assets/skins/sam/widget-stack.css
--versionyui--/overlay/assets/skins/sam/overlay.css
--versionyui--/widget-modality/assets/skins/sam/widget-modality.css
--versionyui--/panel/assets/skins/sam/panel.css
At least in my case

Related

Have anybody an useful implementation of rowClone, blockClone from phpWord (https://github.com/PHPOffice/PHPWord)?

Currently I'm having problems with rowClone and blockClone specially. In the documentation they says that if we use rowClone over a table with merged cells, the function (rowClone) will clone the adjacents rows, so I said, ok well, it looks pretty nice. So I made a table as you can see in the image 1, but when I execute the script, the function rowClone doesn't work as I was expecting.
Then reading the documentation deeper, I realized that there is another function called blockClone, but when I tried to use it, surprise, it doesn't work neither.
Finally I started looking for solutions on the Internet, but nothing they proposes help me, so please if you have any advice, hack, anything, please comment. Thanks in advance.
Image 1: template (.docx)
Image 2: result after processing the template
I found the bug in the source code. There is a space in a regular expression that made function preg_match does not match anything. Following I show you how to fix it:
This is the original code:
if (!preg_match('#<w:vMerge/>#', $tmpXmlRow) &&
!preg_match('#<w:vMerge w:val="continue" />#', $tmpXmlRow)) {
break;
}
And this te code fixed.
if (!preg_match('#<w:vMerge/>#', $tmpXmlRow) &&
!preg_match('#<w:vMerge w:val="continue"/>#', $tmpXmlRow)) {
break;
}
The above if is between 298 and 302 in the source code (https://github.com/PHPOffice/PHPWord/blob/develop/src/PhpWord/TemplateProcessor.php)
I have hope it could help you!

Send a $_GET request with special characters in the HTTP header (escaping)

I'm trying to work on my new wordpress plugin, and I encountered an issue.
I'm setting a variable to contain something like this:
esc_html('likeit'.wp_generate_password(4))
And then - I want to call another function via GET, but it's sometimes breaking.
For example if I have: likeitA9&n, it will break at &.
Can you please tell me what's the best (and most secured) but simple way to handle this in my plugin?
Examples would be appreciated!
Thanks a lot!
P.S. - I did try to look at previous posts, but nothing that actually solved this :(
urlencode('likeit'.wp_generate_password(4));
or
rawurlencode('likeit'.wp_generate_password(4));

Get File Headers

I want to get file headers for compare i.e
if (file_header == image)
{
//do something
}
but I can't figure out how to do it...
I was looking mime-content-type, but it is not working for me... then finfo-file doenot work because I have only php 5.2 version... So can anyone help me with my problem?
UPD1 also I can't use fileinfo()
So I solved my problem with deleting one extra check and all is working now!

PHP/HTML: If url is domain.co.uk/?debug then

I know this must be a nooby question and I apologize but I can't find a straight forward answer anywhere!
Basically what I want to do is, if someone visits http://domain.co.uk/?debug then I want it to display additional information such as the code version or any other information I enter.
Again, I am sorry for the question but I really appreciate your help!
Thank you.
if (isset($_GET['debug'])) {
echo "Get the raid! There's bugs!";
}
As Hope4You pointed out, this is bad practice. But somehow this is very useful when deploying our application. One trick is to set up a "in development" flag.
<?php
define('DEVELOPMENT_SERVER', TRUE);
if (DEVELOPMENT_SERVER)
require 'debug_tools.php';
where debug_tools.php contains the code from MarcB and other helper functions.

Error: Class 'Haml' not found... trying to use Haml (Kohaml) with Kohana

Can't for the life of me figure out what I'm doing wrong...
Downloaded Kohaml from http://github.com/transphorm/kohaml
Dropped it into modules/kohaml
# My Bootstrap reference
'kohaml' => MODPATH.'kohaml', // kohaml
Keep getting this error... (snapshot of the error and my modules folder)
http://wellcommentedcode.com/stack_kohaml_question/
Any suggestions on what I might be doing wrong would be highly appreciated... thanks.
It works now. Had to update the filenames like you said. Thanks again for reporting the bug. :)
Apparently a lot of the class files had names that started with a capital letter... went and lowercase them and that fixed the previous error... but all my standard views are now broken with this error.
http://wellcommentedcode.com/stack_kohaml_question/cache.jpg
Any clues?

Categories